We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da5347 commit 3eaa4f3Copy full SHA for 3eaa4f3
lint-staged.config.js
@@ -2,5 +2,5 @@ module.exports = {
2
// Run type-check on changes to TypeScript files
3
'**/*.ts?(x)': () => 'yarn tsc',
4
// Run ESLint on changes to JavaScript/TypeScript files
5
- '**/*.(ts|js)?(x)': (filenames) => `yarn lint ${filenames.join(' ')}`,
+ '**/*.(ts)?(x)': (filenames) => `yarn lint ${filenames.join(' ')}`,
6
};
package.json
@@ -7,7 +7,7 @@
7
"build": "next build",
8
"start": "next start",
9
"tsc": "tsc --project tsconfig.json --pretty --noEmit",
10
- "lint": "tsc && eslint . --ext .ts,.tsx",
+ "lint": "eslint --ext ts,tsx --fix",
11
"pretti": "prettier --config ./.prettierrc.js -w ./src",
12
"postinstall": "husky install"
13
},
0 commit comments