Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
Part of #236.
PR base
Open the pull request against spec/236-page-typescript (cut from master), not master. When that branch is missing, create it from origin/master and push it first.
What to build
CI fails on any implicit any in a TypeScript file under the source tree, and lint rejects a written any there. The check is a second tsc --noImplicitAny pass inside the existing yarn typecheck:baseline command: one command, one CI step, no allowlist and no hand-kept file list. The file extension is the ratchet, so a JavaScript file is exempt until its own leaf renames it. The baseline mechanism stays and learns to pass on an empty baseline file.
Acceptance criteria
-
yarn typecheck:baselineruns a second pass and fails when any.tsor.tsxfile under the source tree has a diagnostic under--noImplicitAny; JavaScript files are exempt - The second pass has no allowlist and no list of files
- The baseline check passes when the baseline file is empty, with no placeholder line
- The two existing slips, both in the main-process model-selection module and both caused by
parse-filepathshipping no types, are fixed by a types-only module declaration -
@typescript-eslint/no-explicit-anyapplies to all TypeScript under the source tree - The "full typing" lint rule block (explicit module boundary types, annotated
catch) covers all TypeScript under the source tree, not only the main process and shared folder; the lint comment that names the main-process spec is amended - The four existing violations of that block in the already-TypeScript page components are fixed
- New Jest cases beside the existing baseline helper test cover the second pass and the empty-baseline case
- The Checks section of the tracker conventions describes the second pass and the empty-baseline rule
-
yarn lint,yarn typecheck:baselineandyarn react-testpass;tsconfig.jsonis unchanged (strictandnoImplicitAnyoff,allowJson)
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity