Skip to content

Commit 3082fb7

Browse files
committed
chore: update lint-staged config
1 parent d97222b commit 3082fb7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.lintstagedrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
'*.{js,jsx,ts,tsx}': 'eslint --fix --quiet',
3+
'*.{js,jsx,ts,tsx,css,scss,json,html,md,mdx}': 'prettier --write',
4+
'*.{ts,tsx}': () => 'tsc --noEmit --skipLibCheck',
5+
};

package.json

-4
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,5 @@
6868
"lint-staged": "^12.4.1",
6969
"prettier": "^2.6.2",
7070
"typescript": "^4.6.4"
71-
},
72-
"lint-staged": {
73-
"*.js": "eslint --fix --quiet",
74-
"*.{js,md}": "prettier --write"
7571
}
7672
}

0 commit comments

Comments
 (0)