From 9be96723a38cd784938313b846984d723f2cccdd Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Tue, 9 Apr 2024 16:25:57 +0800 Subject: [PATCH] Fix eslint with lint-staged --- .lintstagedrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index a24c0ca47..18d979e78 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,9 +1,9 @@ const path = require("path"); const buildAppsEslintCommand = (filenames) => - `npm run lint -w apps -- --fix --file ${filenames.map((f) => path.relative("packages/apps", f)).join(" --file ")}`; + `npm run lint -- --fix --file ${filenames.map((f) => path.relative("./", f)).join(" --file ")}`; module.exports = { - "packages/apps/src/**/*.{js,jsx,ts,tsx}": [buildAppsEslintCommand], + "src/**/*.{js,jsx,ts,tsx}": [buildAppsEslintCommand], "**/*.{js,jsx,ts,tsx,json}": "prettier --write", };