Skip to content

Commit 3eaa4f3

Browse files
staged test
1 parent 8da5347 commit 3eaa4f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ module.exports = {
22
// Run type-check on changes to TypeScript files
33
'**/*.ts?(x)': () => 'yarn tsc',
44
// Run ESLint on changes to JavaScript/TypeScript files
5-
'**/*.(ts|js)?(x)': (filenames) => `yarn lint ${filenames.join(' ')}`,
5+
'**/*.(ts)?(x)': (filenames) => `yarn lint ${filenames.join(' ')}`,
66
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"tsc": "tsc --project tsconfig.json --pretty --noEmit",
10-
"lint": "tsc && eslint . --ext .ts,.tsx",
10+
"lint": "eslint --ext ts,tsx --fix",
1111
"pretti": "prettier --config ./.prettierrc.js -w ./src",
1212
"postinstall": "husky install"
1313
},

0 commit comments

Comments
 (0)