Skip to content

Commit d83ed8b

Browse files
chore: fix Husky (#246)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 85376c9 commit d83ed8b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dist/*.{js,ts}"
88
],
99
"scripts": {
10+
"prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/",
1011
"prepublishOnly": "npm ci && run-s build test",
1112
"test": "jest",
1213
"build": "tsc",
@@ -24,12 +25,6 @@
2425
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{src,tests,.github}/**/*.{ts,js,html}\" \"*.{ts,js,html}\" \".*.{ts,js,html}\"",
2526
"prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tests,.github}/**/*.{ts,js,md,yml,json,html}\" \"*.{ts,js,yml,json,html}\" \".*.{ts,js,yml,json,html}\" \"!package-lock.json\""
2627
},
27-
"husky": {
28-
"hooks": {
29-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
30-
"pre-push": "npm run format"
31-
}
32-
},
3328
"keywords": [
3429
"github",
3530
"release",
@@ -44,6 +39,7 @@
4439
"@netlify/eslint-config-node": "^4.1.3",
4540
"@types/jest": "^27.0.0",
4641
"@types/node": "^16.0.0",
42+
"husky": "^7.0.4",
4743
"jest": "^27.0.0",
4844
"ts-jest": "^27.0.0",
4945
"typescript": "^4.0.0"

0 commit comments

Comments
 (0)