Files
vue-ts-example/.husky/pre-commit
严浩 ecd82d30a4
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 2m47s
/ lint-build-and-check (push) Successful in 4m36s
/ surge (push) Successful in 2m44s
/ playwright (push) Failing after 11m36s
fix: 更新 lint-staged 配置,支持 .tsx 文件格式
2025-04-03 15:26:27 +08:00

14 lines
470 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo "🔧 正在运行 pre-commit 钩子..."
pnpm exec lint-staged
echo "✅ pnpm 已安装,正在执行 lint-staged..."
# if command -v pnpm >/dev/null 2>&1; then
# # 如果 pnpm 可用,直接使用它
# pnpm exec lint-staged
# else
# # 如果 pnpm 不可用,使用 $HOME/.local/bin/pnpm
# # ln -s $(which pnpm) $HOME/.local/bin/pnpm
# echo "找不到 pnpm使用 $HOME/.local/bin/pnpm"
# "$HOME"/.local/bin/pnpm exec lint-staged
# fi