localhost_oa_based/.husky/pre-commit

8 lines
159 B
Plaintext
Raw Permalink Normal View History

2024-10-16 11:30:51 +08:00
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#推送之前运行eslint检查
npx lint-staged
##推送之前运行单元测试检查
#npm run test:unit