[no-unused-vars] warning for used vars #171
Labels
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
package: parser
Issues related to @typescript-eslint/parser
Repro
I get many alerts from eslint because I have supposedly unused variables. For Example in this File.
Expected Result
no eslint warnings, scince all variables are used at some point.
Actual Result
4:8 warning 'style' is defined but never used @typescript-eslint/no-unused-vars
17:5 warning 'saveTodo' is defined but never used @typescript-eslint/no-unused-vars
18:5 warning 'removeTodo' is defined but never used @typescript-eslint/no-unused-vars
19:5 warning 'isLoading' is defined but never used @typescript-eslint/no-unused-vars
30:11 warning 'addNewTodo' is assigned a value but never used @typescript-eslint/no-unused-vars
35:36 warning 'todo' is defined but never used @typescript-eslint/no-unused-vars
Additional Info
I just migrated from https://www.npmjs.com/package/eslint-plugin-typescript. While using that package, there was no warnings.
Versions
@typescript-eslint/eslint-plugin
1.1.1
@typescript-eslint/parser
1.1.1
TypeScript
3.2.4
ESLint
5.12.1
node
10.14.1
npm
6.5.0
The text was updated successfully, but these errors were encountered: