chore(ui): add pre-commit

This commit is contained in:
robin 2022-11-21 18:14:38 +08:00
parent 8f68fc252b
commit b271d4de45
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -20,6 +20,5 @@
Thumbs*.db
tmp
vendor/
.husky
/answer-data/
/answer

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cd ui && npm run pre-commit