Skip to content

Commit c2134c9

Browse files
committed
Set up lint-staged after husky and lint-staged upgrade
1 parent fd76bcb commit c2134c9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm test
1+
lint-staged && npm test

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@
4747
]
4848
},
4949
"lint-staged": {
50-
"*.js": [
51-
"eslint --fix",
52-
"git add"
53-
]
50+
"*.js": "eslint --fix"
5451
},
5552
"eslintConfig": {
5653
"extends": "airbnb-base",

0 commit comments

Comments
 (0)