Skip to content

Commit 4b6ae7a

Browse files
authored
chore: update husky hooks (#552)
1 parent 17979f4 commit 4b6ae7a

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.husky/commit-msg

+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 commitlint --edit $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": [
@@ -68,7 +68,7 @@
6868
"eslint": "^8.57.0",
6969
"eslint-config-prettier": "^9.1.0",
7070
"eslint-plugin-import": "^2.29.1",
71-
"husky": "^8.0.3",
71+
"husky": "^9.1.3",
7272
"jest": "^29.7.0",
7373
"less": "^4.2.0",
7474
"less-plugin-glob": "^3.0.0",

0 commit comments

Comments
 (0)