Status: blocked
Waits for: VB-382
Priority: 3
Size: S
Arch: yardstick
Phase: implement
Design ref: none (code structure). docs/typescript-plan.md (P12); the survey in backlog/VB-055.md.
Goal: Add tsconfig.strict.json (strict, plus noUncheckedIndexedAccess to be decided) over all modules and a script that counts its errors by file and compares them with tests/tsc-baseline.json, which holds each file’s count at the start and only falls (as the lint’s baselines; --update lowers). A file new after this task starts at zero. The error count is not known today (not checked: nothing is annotated, so the answer is the number of implicit anys); the task records it by file and by kind of error, and splits VB-385 and VB-386 if the largest layers hold more than about 300 errors each.
Acceptance criteria:
tests/tsc-strict.js in npm test: fails if a file’s count rises or a new file has any; prints the total, as a ratchet.AGENTS.md (Commands): a line on the ratchet beside the lint’s and the ownership’s.docs/typescript-plan.md, where this task is P12): waits for Kim’s answers to QUESTIONS.md, “VB-055: the move to TypeScript” (the formatter, the bundler, the hook, the width measures, when, the page and the tests, strict), which may change its criteria; the three rules common to these tasks are at the top of the plan.