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 dependency
    tslint.json
    file.

  2. Specify the following compiler options in your
    tsconfig.json
    file.

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

Leave a Comment

tech