docs(q1): 更新 ROADMAP/TDD/PROJECT_EVALUATION 记录 Q1 类型安全进展
- ROADMAP Q1: 记录 src/api 清零里程碑, any 1076→937 - TDD_PLAN Q1: 补充 U8 通过标准 (src/api any 清零) - PROJECT_EVALUATION: 技术债 any 标记 in_progress
This commit is contained in:
1 parent
b553c7956d
commit
4ae215f4c9
3 files changed
+13
-5
No files matched your search
+6
-1
@@ -25,7 +25,12 @@
|
||||
|
||||
### Q1: 前端类型安全治理 [in_progress]
|
||||
|
||||
**问题**: ~~1026 处 `any` 类型 + 218 处未使用变量~~ → 当前 any=1041(含 Q1 迁移回退), unused=0, console=0, tsc -b=0 errors
|
||||
**问题**: ~~1026 处 `any` 类型 + 218 处未使用变量~~ → 当前 any=937(ESLint), unused≈3, console=0, tsc -b=0 errors
|
||||
|
||||
**已完成里程碑 (2026-06-26)**:
|
||||
- ✅ **整个 `src/api/` 目录 any 清零** — monitor/deploy/cloud/agent/server/auth/automation 等子目录所有 create/update 入参与返回值对接具体接口类型/mock 桩对接 Trace/GrafanaDashboard 标准类型
|
||||
- ✅ `types/monitor.ts` 扩展 ~150 行接口:ZabbixDatasource / AlertSilence / 7 个输入 DTO + Trace/Span/ServiceMetrics + GrafanaDashboard/Panel + HealthProbeInput
|
||||
- ✅ ESLint `no-explicit-any` 1076 → 937(API 服务层 + 类型库贡献)
|
||||
|
||||
**方案**:
|
||||
1. 建立 `frontend/src/types/` 后端响应类型定义库(当前仅 375 行,覆盖率极低)
|
||||
|
||||
Reference in new issue
Block a user