We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ea96d commit 1aa3d4bCopy full SHA for 1aa3d4b
lint-staged.config.js
@@ -1,5 +1,9 @@
1
/* eslint-disable unicorn/filename-case */
2
/* eslint-disable @typescript-eslint/naming-convention */
3
module.exports = {
4
- "**/*.{js,jsx,ts,tsx}": () => ["npm run check-types", "npm run fix-eslint:staged", "npm run check-format:staged"],
+ "**/*.{js,jsx,ts,tsx}": (filenames) => [
5
+ "npm run check-types",
6
+ `npm run lint -- ${filenames.join(" ")}`,
7
+ `prettier --check ${filenames.join(" ")}`,
8
+ ],
9
};
0 commit comments