Skip to content

ts/strict

Patches tsconfig.json with four compiler options for maximum type safety:

{
"compilerOptions": {
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"verbatimModuleSyntax": true
}
}
Option Purpose
strict: true Enables all strict type-checking options
noUnusedLocals: true Error on unused local variables
noUnusedParameters: true Error on unused function parameters
verbatimModuleSyntax: true Enforce import type for type-only imports

Each option is checked independently. If any option already exists with a different value (e.g. strict: false), the task returns conflict rather than overwriting it. This prevents accidental loosening of intentional configurations.

Property Value
Task ID ts/strict
Group TypeScript
Applicable When TypeScript detected
Config Target tsconfig.json