[no-unused-vars] false positive when imported type used inside a function with parameter with the same name #1918
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No linting issue is raised
Actual Result
Linter raises an error: 'myType' is defined but never used. eslint(@typescript-eslint/no-unused-vars) [1, 10]
Additional Info
Versions
@typescript-eslint/eslint-plugin
2.28.1-alpha.0
@typescript-eslint/parser
2.28.0
TypeScript
3.8.3
ESLint
6.8.0
node
10.15.3
npm
6.4.1
The text was updated successfully, but these errors were encountered: