diff options
| author | Larvan2 <[email protected]> | 2026-06-21 12:53:36 +0800 |
|---|---|---|
| committer | Larvan2 <[email protected]> | 2026-06-21 12:53:36 +0800 |
| commit | b02e1e1fee7485c1ac81f2aaf9070f7deba140e2 (patch) | |
| tree | 0d6df294e34620585ac700779f129613caa8ec3f | |
| parent | a855774bfe9ca8c15887f9208f87579d3ebaac2f (diff) | |
chore: enable TypeScript strict mode (minus the two heavy flags)
Turn on `strict: true`, which enables strictFunctionTypes,
strictBindCallApply, strictPropertyInitialization, noImplicitThis,
useUnknownInCatchVariables and alwaysStrict — all already satisfied (0
errors). noImplicitAny (~180) and strictNullChecks (~87) are kept off
explicitly and left as incremental follow-ups.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
| -rw-r--r-- | tsconfig.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tsconfig.json b/tsconfig.json index a78fa5a..c5b1545 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,9 @@ "moduleResolution": "Bundler", "resolveJsonModule": true, "isolatedModules": true, - "strict": false, + "strict": true, + // 渐进开启 strict:strict 家族中除以下两项外均已满足并启用。 + // 这两个重型检查留作后续增量修复(noImplicitAny ~180 处、strictNullChecks ~87 处)。 "noImplicitAny": false, "strictNullChecks": false, "noUncheckedSideEffectImports": false, |
