Skip to content

Commit 11bc53c

Browse files
authored
chore: update husky hooks (#242)
1 parent a672399 commit 11bc53c

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
commitlint --edit $1

.husky/pre-commit

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx --no-install lint-staged
1+
lint-staged

package-lock.json

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
3535
"pretest": "npm run lint",
3636
"test": "npm run test:coverage",
37-
"prepare": "husky install && npm run build",
37+
"prepare": "husky && npm run build",
3838
"release": "standard-version"
3939
},
4040
"files": [
@@ -62,7 +62,7 @@
6262
"eslint": "^8.50.0",
6363
"eslint-config-prettier": "^9.1.0",
6464
"eslint-plugin-import": "^2.28.1",
65-
"husky": "^8.0.3",
65+
"husky": "^9.1.3",
6666
"jest": "^29.7.0",
6767
"lint-staged": "^15.2.7",
6868
"memfs": "^4.9.3",

0 commit comments

Comments
 (0)