Commit Graph

2 Commits

Author SHA1 Message Date
SpecialX
6f68f9722e fix: pre-push hook 在 go 不可用时跳过
Git Bash 环境可能未将 go 加入 PATH,导致 hook 失败阻塞推送。
改为 command -v 检测,不可用时跳过(CI 会做完整检查)。
2026-07-08 13:10:16 +08:00
SpecialX
f554011af5 chore: 修复 lint-staged 与 husky 配置适配当前工具链
- lint-staged: TS 暂移除 eslint(ESLint 9 flat config 缺失)
- lint-staged: Go 暂移除 golangci-lint(未安装)
- lint-staged: gofmt 仅处理 .go(不处理 .mod/.sum)
- husky: 去除 commit-msg/pre-commit 的 UTF-8 BOM
- husky: 新增 pre-push hook(Go 编译检查)
2026-07-08 12:49:18 +08:00