Files
vue-ts-example-2025/.husky/pre-commit
严浩 61e86e731d
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 2m1s
CI/CD Pipeline / build-and-deploy (push) Successful in 3m17s
chore(husky): 移除时间命令以简化 commit-msg、post-merge 和 pre-commit 钩子
2025-11-06 13:39:02 +08:00

7 lines
250 B
Plaintext

# 此钩子在执行 git commit 命令时,在创建提交之前运行。
echo "🧹 [Pre-commit] 正在运行 lint-staged..."
pnpm exec lint-staged
pnpm run lint:vue-i18n-extract
# pnpm run type-check
echo "🧹 [Pre-commit] lint-staged 完成!"