Skip to content

Commit 9ae6fc8

Browse files
committed
Updated husky hooks config
1 parent 585daf0 commit 9ae6fc8

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
@@ -18,8 +18,7 @@
1818
"prepublish": "npm run lint && npm run clean && npm run build:prod && npm run transpile",
1919
"prettier": "npx prettier --write src/**/*.js example/**/*.js *.js",
2020
"lint": "npx eslint --fix --ext js .",
21-
"format": "npm run prettier && npm run lint",
22-
"precommit": "lint-staged"
21+
"format": "npm run prettier && npm run lint"
2322
},
2423
"lint-staged": {
2524
"*.js": [
@@ -82,5 +81,10 @@
8281
"webpack-bundle-analyzer": "^3.0.3",
8382
"webpack-cli": "^3.1.2",
8483
"webpack-dev-server": "^3.1.9"
84+
},
85+
"husky": {
86+
"hooks": {
87+
"pre-commit": "lint-staged"
88+
}
8589
}
8690
}

0 commit comments

Comments
 (0)