chore: 使用 lint-staged 配置提交前校验

Made-with: Cursor
This commit is contained in:
2026-04-03 20:30:47 +08:00
parent 5594ab0b8c
commit 1ffe2fa39e
2 changed files with 9 additions and 4 deletions

6
.husky/pre-commit Normal file → Executable file
View File

@@ -1,5 +1,3 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
yarn lint
yarn format:check
set -e
yarn lint-staged