Skip to content

ts/strict

Patches tsconfig.json with four options:

Option Purpose
strict Enable all strict type-checking options
noUnusedLocals Error on unused local variables
noUnusedParameters Error on unused function parameters
verbatimModuleSyntax Require import type for type-only imports

Each option is checked independently. An existing option with a different value is reported as a conflict instead of being overwritten, so intentional settings are never loosened.

Use --skip ts/strict to leave this task out; the other TypeScript tasks still apply.