Skip to content

Commit 3f3fc11

Browse files
committed
chore(package): upgrade husky, move config to its own key
1 parent 40389d1 commit 3f3fc11

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"author": "Mehdi Lahlou <[email protected]>",
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": "^5.0.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)