add husky

This commit is contained in:
ray_wuhao 2023-01-27 18:14:32 +08:00
parent 61fdc3ff95
commit b132da6c5d
2 changed files with 8 additions and 0 deletions

4
.husky/commit-msg Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged --allow-empty "$1"

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged --allow-empty "$1"