Skip to content

Commit

Permalink
chore: update husky hooks (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 authored Jul 28, 2024
1 parent a442c5c commit 2d6f13c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
commitlint --edit $1
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
lint-staged
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
"pretest": "npm run lint",
"test": "npm run test:coverage",
"prepare": "husky install && npm run build",
"prepare": "husky && npm run build",
"release": "standard-version"
},
"files": [
Expand Down Expand Up @@ -74,7 +74,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"husky": "^9.1.3",
"jest": "^29.7.0",
"less": "^4.2.0",
"less-loader": "^12.2.0",
Expand Down

0 comments on commit 2d6f13c

Please sign in to comment.