26 lines
978 B
JSON
26 lines
978 B
JSON
// 渐进类型检查(2026-11-07)
|
||
//
|
||
// 范围:只检查 src/*.js(纯 JS 库层)。**不包含 app.js** —— 它是 8400 行的
|
||
// IIFE + React 巨型装配文件,checkJs 会产出 248 条结构性噪声(属性动态挂载、
|
||
// 大量内联对象形状),收益远低于维护成本,暂不纳入。
|
||
//
|
||
// 为什么从 src 开始:实测 65 个模块里 **52 个本来就是零错误**,
|
||
// 剩下 13 个的错误主要集中在"动态全局属性"与 Node 侧 Buffer —— 用
|
||
// types/iwb-globals.d.ts 声明后基本清掉。也就是说这条路**几乎免费**。
|
||
{
|
||
"compilerOptions": {
|
||
"allowJs": true,
|
||
"checkJs": true,
|
||
"noEmit": true,
|
||
"target": "ES2020",
|
||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||
"module": "none",
|
||
"moduleDetection": "auto",
|
||
"strict": false,
|
||
"noImplicitAny": false,
|
||
"skipLibCheck": true,
|
||
"forceConsistentCasingInFileNames": true
|
||
},
|
||
"include": ["src/**/*.js", "types/**/*.d.ts"]
|
||
}
|