feat: 添加 knip 冗余代码检查工具

配置 knip.json 检测未使用的文件、exports、依赖等。
新增 check:unused script,运行 knip-bun 扫描死代码。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-01 04:57:34 +08:00
parent 17ec716dbf
commit c587a64320
3 changed files with 26 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
## 工程化能力
- [x] 代码格式化与校验
- [ ] 冗余代码检查
- [x] 冗余代码检查
- [x] git hook 的配置
- [ ] 代码健康度检查
- [x] 单元测试基础设施搭建 (test runner 配置)