"strict": false,
That line showed up in the shared compiler config of demo.miguelcarino.com, my demo site for this blog, when the workspace moved to TypeScript 6. The demo is a monorepo of 13 projects (apps and libraries) that all inherit from one file, tsconfig.base.json. Strict mode switched off at the root of all 13 was worth a closer look at the diff.
Nothing had loosened. TypeScript 6 changed the default: a project that doesn't mention strict now gets it on. Before, leaving it out meant off. The upgrade wrote false into the base, which keeps any project that never set it compiling exactly as before. Every one of the 13 sets "strict": true in its own tsconfig.json, so for this repo the line changes nothing.
So I checked what each flag in those files buys, starting with strict and then the ones past it.
Know what strict turns on
In TypeScript 6, "strict": true turns on eight checks:
noImplicitAnynoImplicitThisstrictNullChecksstrictFunctionTypesstrictBindCallApplystrictPropertyInitializationstrictBuiltinIteratorReturnuseUnknownInCatchVariables
alwaysStrict, which used to be on that list, is now separate. TypeScript 6 assumes JavaScript's strict mode for all code and deprecates turning it off.
The one doing the most work is strictNullChecks. Without it, null and undefined fit into every type, so user.name.length compiles whether or not there's a user. The rest close smaller gaps: a parameter with no type silently becoming any, a class field that's never assigned, a catch (e) that pretends e is an Error. With strict on, that last one is an unknown you have to check before you read e.message.
If you're starting a project now, you get all of this by default. The question is what to add.
Add the four cheap checks
The demo's main app, the dashboard, turns on four more. Its tsconfig.json, trimmed to the checking flags and the line that silences TypeScript 6's deprecation warnings:
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"ignoreDeprecations": "6.0"
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
},
None of the four is in the strict family, and each catches one specific mistake. Here they are against a few lines that strict alone accepts, written for this post:
class Base { save(): void {} }
class Child extends Base { save(): void {} }
const env: { [key: string]: string } = {};
const mode = env.mode;
function label(n: number): string | undefined { if (n > 0) { return 'pos'; } }
function kind(k: 'a' | 'b'): number {
let x = 0;
switch (k) { case 'a': x = 1; case 'b': x = 2; }
return x;
}
With the four flags on, the TypeScript compiler reports, with file names trimmed:
error TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Base'.
error TS4111: Property 'mode' comes from an index signature, so it must be accessed with ['mode'].
error TS7030: Not all code paths return a value.
error TS7029: Fallthrough case in switch.
noImplicitOverride is the one I'd fight for. It makes every override say so. If someone renames save() in the base class, the child's override save() fails to compile, where before it would have become a new, unrelated method that nothing calls.
noPropertyAccessFromIndexSignature makes a guessed key look like a guess. env.mode reads like a declared property. env['mode'] reads like what it is, a lookup that may find nothing.
noImplicitReturns and noFallthroughCasesInSwitch catch a forgotten return and a forgotten break. Both are rare. Both are miserable to find by hand, and the flags cost nothing in code that's already right.
Let Angular check the templates
The last three lines in that config belong to the Angular compiler, which checks what TypeScript can't see.
strictTemplates type-checks templates the way TypeScript checks code: a binding has to fit the input it's bound to, $event gets its real type and a local reference to an <input> is an HTMLInputElement. Angular now turns it on by default, so the line only states it.
strictInjectionParameters turns a warning into an error when Angular can't tell what to inject for a constructor parameter. Without it, the build passes with a warning, and the class fails when Angular first tries to create it.
strictInputAccessModifiers stops a template from binding to an input that's private, protected or readonly. It stays off by default even under strictTemplates, so it has to be named.
You can see these flags read live from the demo's own config files, with both files in a "View source" panel, in the strict TypeScript section of the demo.
Weigh the two that are off
Two well-known flags sit outside strict, and the demo leaves both off. I turned each on against the dashboard to see what it would cost.
noUncheckedIndexedAccess adds undefined to every read by index, so scores[0] becomes number | undefined even when you just checked the length. On the dashboard and the libraries it compiles, it reported 17 errors in seven files.
Most were reads the code already knew were safe. In the contrast checker, hex[1] reads the first capture group of a regular expression that just matched, so the group can't be missing. Elsewhere it was the first item of a list that's never empty. Each of those would need a ! or a guard that never runs. A few were holes worth closing. The clearest: a helper called pick() returns items[i] from a list, and given an empty list it would return undefined while its type promised a value. Nothing calls it with an empty list today. The flag would have made that impossible to forget.
That's the trade. The flag finds the rare real hole by making you answer for every safe index too. On a codebase that indexes arrays all day, the noise teaches people to type ! without thinking, which is worse than the flag being off. On a new library that parses outside data, I'd turn it on from the first commit, when the cost is lowest.
exactOptionalPropertyTypes makes a missing property and a property set to undefined different things. It reported one error on the same code: the toast service copies heading: toast.heading into an object whose heading is optional, and toast.heading might be undefined. Nothing reads the difference, so the fix would be ceremony. It matters in code that checks whether a key exists, with in or Object.keys(), where a missing key and a key set to undefined behave differently.
Where the strict line could live
The demo turns strict off in the base and on in every project. Putting "strict": true in the base alone would be simpler, with one place to read and no chance of a new project missing it. I'd do that in a new repo. Keeping it per project here means each project's file states its own rules, and the base only holds what all of them share.
Turning on every flag at once is the other end. It's honest about intent and painful in practice, because the two expensive flags bury the cheap ones' findings in noise.
Leaving TypeScript at its new defaults is reasonable for a small app. It just skips the four checks that catch the most for the least.
Make the Compiler Say No Early
Strict is where TypeScript starts now. The checks past it are worth the same test I gave these: turn one on, count what it finds and read a few. If most findings are real, keep it. If most are noise, the flag is for a different codebase. Leaving it off is a decision too, and the config is where it gets recorded.



