Skip to content

Commit 4826aa7

Browse files
author
Kadi Kraman
committed
Update husky config
1 parent 5df646d commit 4826aa7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"types": "index.d.ts",
77
"scripts": {
88
"test": "jest",
9-
"lint": "eslint .",
10-
"precommit": "lint-staged"
9+
"lint": "eslint ."
1110
},
1211
"lint-staged": {
1312
"*.js": [
@@ -69,5 +68,10 @@
6968
},
7069
"jest": {
7170
"preset": "react-native"
71+
},
72+
"husky": {
73+
"hooks": {
74+
"pre-commit": "lint-staged"
75+
}
7276
}
7377
}

0 commit comments

Comments
 (0)