Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

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 b5627d0 commit 66d137d
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 @@ -29,7 +29,7 @@
"lint:lockfile": "lockfile-lint -p package-lock.json -t npm -a npm -s -i",
"lint:prettier": "prettier . -c -u",
"lint:prettier:fix": "prettier . -w -u",
"prepare": "husky install && npx playwright install firefox --with-deps",
"prepare": "husky && npx playwright install firefox --with-deps",
"start": "node .",
"start:dev": "nodemon src/app.js | pino-pretty",
"test": "npm run lint && npm run lint:prettier && npm run jest"
Expand Down

0 comments on commit 66d137d

Please sign in to comment.