mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 21:46:49 +00:00
83d807781e
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.
12 lines
452 B
JSON
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
|
|
}
|
|
}
|