Skip to content

Commit 5920141

Browse files
authored
chore: update husky hooks (#125)
1 parent 115a218 commit 5920141

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
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: 10 additions & 9 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=\"dist/**/*.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": [
@@ -64,7 +64,7 @@
6464
"eslint-config-prettier": "^9.1.0",
6565
"eslint-plugin-import": "^2.29.1",
6666
"html-loader": "^5.0.0",
67-
"husky": "^8.0.3",
67+
"husky": "^9.1.3",
6868
"jest": "^29.7.0",
6969
"jest-light-runner": "^0.6.0",
7070
"lint-staged": "^15.2.7",

0 commit comments

Comments
 (0)