Skip to content

Commit

Permalink
chore(.husky): migrate hooks to v9 style
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jan 26, 2024
1 parent ce62a47 commit d12a911
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
npx --no-install 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 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint:licenses && npm test
npm run lint:licenses && npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"lint:licenses": "node scripts/license-checker.js",
"lint:prettier": "prettier . -c -u",
"lint:prettier:fix": "prettier . -w -u",
"prepare": "husky install",
"prepare": "husky",
"test": "npm run lint && npm run lint:prettier && npm run jest"
},
"commitlint": {
Expand Down

0 comments on commit d12a911

Please sign in to comment.