You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How is "no implicit any" checked with strict off? #231
The main-process spec required no implicit any on its files but left the compiler flag off and relied on review. For about 8,000 lines of page code, is that checked by a script in CI (for example a --noImplicitAny run filtered to converted files) or by review again?
Checked by a script in CI, plus two lint rules. Not by review alone.
Measured on master at b0d2729: tsc --noImplicitAny reports 451 diagnostics against 26 without the flag. 440 of the extra ones are in the still-JavaScript in-scope files, 9 in JavaScript tests, and 2 in a TypeScript file. No .ts or .tsx production file contains a written any.
Decisions
The rule: every .ts and .tsx file under src has zero diagnostics under --noImplicitAny. The file extension is the ratchet: a JavaScript file is exempt until its leaf renames it. No hand-kept list.
Where: a second tsc pass inside yarn typecheck:baseline (scripts/typecheck-baseline.js). One command, one CI step. tsconfig.json is unchanged; noImplicitAny stays off there.
No allowlist. The two existing slips are fixed in the leaf that adds the check. Both are in src/main/modelSelection.ts and share one cause: parse-filepath ships no types (TS7016, and a knock-on TS2345 at line 79). The fix is a module declaration, types only.
Written any is banned by lint: @typescript-eslint/no-explicit-any for all .ts and .tsx. It passes on every existing file today.
One lint rule set: the "full typing" block in .eslintrc.cjs (explicit-module-boundary-types, annotated catch) widens from src/main and src/common to all TypeScript under src. The same leaf fixes the 4 existing violations, in src/app/components/CodeHighlight.tsx, ErrorBoundary.tsx (2) and ModifiedDialog.tsx.
When: its own leaf, landing before any conversion leaf.
For the spec: this leaf amends the Checks section of docs/agents/issue-tracker.md and the lint comment that names the main-process spec.
Left to the slicing ticket: lodash and d3-array ship no types (see the inventory), so the first converted file importing either will fail the new check with TS7016. Which leaf adds their types, and whether as @types/* packages or module declarations, is not decided here.
Activity
jtklein-agents commentedon Nov 16, 2026
Resolution
Checked by a script in CI, plus two lint rules. Not by review alone.
Measured on
masteratb0d2729:tsc --noImplicitAnyreports 451 diagnostics against 26 without the flag. 440 of the extra ones are in the still-JavaScript in-scope files, 9 in JavaScript tests, and 2 in a TypeScript file. No.tsor.tsxproduction file contains a writtenany.Decisions
.tsand.tsxfile undersrchas zero diagnostics under--noImplicitAny. The file extension is the ratchet: a JavaScript file is exempt until its leaf renames it. No hand-kept list.tscpass insideyarn typecheck:baseline(scripts/typecheck-baseline.js). One command, one CI step.tsconfig.jsonis unchanged;noImplicitAnystays off there.src/main/modelSelection.tsand share one cause:parse-filepathships no types (TS7016, and a knock-onTS2345at line 79). The fix is a module declaration, types only.anyis banned by lint:@typescript-eslint/no-explicit-anyfor all.tsand.tsx. It passes on every existing file today..eslintrc.cjs(explicit-module-boundary-types, annotatedcatch) widens fromsrc/mainandsrc/commonto all TypeScript undersrc. The same leaf fixes the 4 existing violations, insrc/app/components/CodeHighlight.tsx,ErrorBoundary.tsx(2) andModifiedDialog.tsx.For the spec: this leaf amends the Checks section of
docs/agents/issue-tracker.mdand the lint comment that names the main-process spec.Left to the slicing ticket:
lodashandd3-arrayship no types (see the inventory), so the first converted file importing either will fail the new check withTS7016. Which leaf adds their types, and whether as@types/*packages or module declarations, is not decided here.