Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Fix eslint with lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Apr 9, 2024
1 parent 13da18b commit 9be9672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -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",
};

0 comments on commit 9be9672

Please sign in to comment.