Files
TREK/client/tsconfig.strict.json
Maurice 83d807781e ci(client): hold strict null check errors per file to a baseline that only shrinks
The client compiles with strict: false, so nullable contract fields arrive as
if always present and implicit anys stay invisible. tsconfig.strict.json is the
same program with strictNullChecks and noImplicitAny, and lint:strict
(scripts/strict-lint.mjs) counts its errors per file against
scripts/strict-baseline.json: a file may not gain one, a new file has to be
clean, and an entry above its count fails until --update lowers it. Nothing is
converted here; today's 534 errors in 165 files are frozen. allowJs stays: the
tests import the .mjs scripts and read their JSDoc types through it.
The todo MSW handler maps a cleared priority to its default so the test
helper written in this branch starts at zero. The check runs after the
typecheck in client-quality.
2026-10-10 21:32:59 +02:00

12 lines
452 B
JSON

{
// The strict-ratchet view of the client (npm run lint:strict, scripts/strict-lint.mjs):
// the same program as tsconfig.json with strictNullChecks and noImplicitAny on.
// Errors per file may only go down against scripts/strict-baseline.json; a file
// without an entry, every new one included, has to compile cleanly here.
"extends": "./tsconfig.json",
"compilerOptions": {
"strictNullChecks": true,
"noImplicitAny": true
}
}