ts-ide-overrides
This plugin allows you to override a subset of TypeScript compilerOptions
when editing files in an IDE. (Specifically strict
and its 8 associated options: alwaysStrict
, strictNullChecks
, strictBindCallApply
, strictFunctionTypes
, strictPropertyInitialization
, noImplicitAny
, noImplicitThis
, useUnknownInCatchVariables
.)
The purpose of the plugin is to support gradual adoption of strict rules, without breaking pre-existing build and validation processes.
Configuration
Add plugin to tsconfig.json
:
{
"compilerOptions": {
"plugins": [
{
"name": "ts-ide-overrides",
"overrides": {
"strictNullChecks": true,
"noImplicitAny": true
}
}
]
}
}
The plugin supports code comments to toggle any of the 9 options for the current file: