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 Jun 26, 2022
1 parent 3c7033c commit 8cb5c99
Show file tree
Hide file tree
Showing 5 changed files with 3,325 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 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "sample hook"
Loading

0 comments on commit 8cb5c99

Please sign in to comment.