TypeScript linter warning: no-unused-variable is deprecated; but I'm not using this config TypeScript linter warning: no-unused-variable is deprecated; but I'm not using this config typescript typescript

TypeScript linter warning: no-unused-variable is deprecated; but I'm not using this config


no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.

  1. Remove deprecated no-unused-variable from your or dependencytslint.jsonfile.

  2. Specify the following compiler options in yourtsconfig.jsonfile.

"compilerOptions": {  "noUnusedLocals": true,                /* Report errors on unused locals. */  "noUnusedParameters": true             /* Report errors on unused parameters. */}


As it says, tslint deprecated that rule (more info here https://github.com/palantir/tslint/pull/3919)

Check your tslint.json, and remove the rule and the warning should disappear.


Not only support for no-unused-variable rule, but the whole TSLint has been deprecated in favor of typescript-eslint.

Consider migration to new linter.