Skip to content

Commit 2d6f13c

Browse files
authored
chore: update husky hooks (#694)
1 parent a442c5c commit 2d6f13c

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
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

Lines changed: 1 addition & 4 deletions
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

Lines changed: 7 additions & 6 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 & 2 deletions
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": [
@@ -74,7 +74,7 @@
7474
"eslint": "^8.57.0",
7575
"eslint-config-prettier": "^9.1.0",
7676
"eslint-plugin-import": "^2.29.1",
77-
"husky": "^8.0.3",
77+
"husky": "^9.1.3",
7878
"jest": "^29.7.0",
7979
"less": "^4.2.0",
8080
"less-loader": "^12.2.0",

0 commit comments

Comments
 (0)