Skip to content

Commit

Permalink
chore: improve husky hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Jun 30, 2021
1 parent 6cf9e20 commit 9b3234f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --config commitlint.config.cjs --edit "$1"
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
pnpm format && pnpm lint && pnpm test
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm format && pnpm lint && pnpm build && pnpm test

0 comments on commit 9b3234f

Please sign in to comment.