chore: 使用 lint-staged 配置提交前校验
Made-with: Cursor
This commit is contained in:
6
.husky/pre-commit
Normal file → Executable file
6
.husky/pre-commit
Normal file → Executable file
@@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn lint
|
||||
yarn format:check
|
||||
set -e
|
||||
yarn lint-staged
|
||||
|
||||
Reference in New Issue
Block a user