chore: 🛠️ git hooks

This commit is contained in:
bubkoo 2021-09-21 11:00:45 +08:00
parent ce7da9bd04
commit e36d3331b9
5 changed files with 17 additions and 0 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

5
.husky/commit-msg Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn commitlint --edit "$1"

1
.husky/common.sh Normal file
View File

@ -0,0 +1 @@
echo

5
.husky/pre-commit Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn lint-staged

5
.husky/prepare-commit-msg Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn devmoji -e --lint