Skip to content

Commit

Permalink
chore(root): update husky
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg authored and jd239 committed Aug 9, 2024
1 parent 17f815f commit 0897200
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 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"
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash
. "$(dirname "$0")/_/husky.sh"

bash "$(dirname "$0")/email-check.sh"

npm run test-cypress:headless
Expand Down
3 changes: 0 additions & 3 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if [ "$2" != "message" ];then
exec < /dev/tty && npx cz --hook "$1" "$2" "$3" || true
fi
19 changes: 10 additions & 9 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 @@ -46,7 +46,7 @@
"audit": "npm run audit-expiry && audit-ci -m --config audit-ci.json && lerna run audit",
"audit:bypass-expiry": "audit-ci -m --config audit-ci.json && lerna run audit",
"audit-expiry": "node check-audit-expiry.js",
"prepare": "husky install",
"prepare": "husky",
"prettier": "lerna run prettier",
"prettier:fix": "lerna run prettier:fix",
"lint": "lerna run lint",
Expand Down Expand Up @@ -75,7 +75,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-sonarjs": "^0.19.0",
"husky": "^7.0.4",
"husky": "^9.1.3",
"lerna": "^6.0.3",
"lerna-audit": "^1.3.3",
"ncp": "^2.0.0",
Expand Down

0 comments on commit 0897200

Please sign in to comment.