build: 添加 git hook,提交前格式化代码并执行单元测试。
This commit is contained in:
5
.husky/pre-commit
Executable file
5
.husky/pre-commit
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
||||
npm test
|
Reference in New Issue
Block a user