Skip to content

Commit

Permalink
chore: configure husky for git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
maintainer authored Oct 20, 2021
1 parent a942168 commit df4d96f
Show file tree
Hide file tree
Showing 5 changed files with 3,059 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# https://github.com/typicode/husky/issues/861
npx -c --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "sample hook"
Loading

0 comments on commit df4d96f

Please sign in to comment.