Skip to content

Commit 98ae794

Browse files
committed
chore(package): upgrade husky, move config to its own key
1 parent a3bbe42 commit 98ae794

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"author": "Mehdi Lahlou <mehdi.lahlou@free.fr>",
88
"repository": "https://github.com/medfreeman/nuxt-netlify-cms-module.git",
99
"scripts": {
10-
"#<git hooks>": "handled by husky",
11-
"precommit": "lint-staged",
12-
"#</git hooks>": "handled by husky",
1310
"lint": "eslint --ignore-path .gitignore --fix \"**/*.js\"",
1411
"test": "cross-env NODE_ENV=test DEBUG=nuxt:netlify-cms jest --runInBand --forceExit",
1512
"pretest": "yarn lint",
@@ -60,6 +57,11 @@
6057
"request-promise-native": "^1.0.4",
6158
"standard-version": "^4.2.0"
6259
},
60+
"husky": {
61+
"hooks": {
62+
"precommit": "lint-staged"
63+
}
64+
},
6365
"lint-staged": {
6466
"*.js": [
6567
"git-exec-and-restage prettier --write --"

0 commit comments

Comments
 (0)