[@typescript-eslint/no-unused-vars] Unused import. #3092
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
appRoutes
is used in@Inject(...)
.Actual Result
Claims
appRoutes
(on import) as unused.Additional Info
Note: The variable in import is not grayed out (indicator for unused in vscode). TypeScript detects it as in-use.
Generally unused imports are grayed out (opacity about 0.5) and marked as unused, even from TypeScript. So this should be reported from the linter. Or is there something wrong?
Current workaround:
Versions
Updated to the latest version for this issue. (Initial version was
^4.2.0
)@typescript-eslint/eslint-plugin
4.15.1
@typescript-eslint/parser
4.15.1
TypeScript
4.0.5
ESLint
7.20.0
node
14.15.1
The text was updated successfully, but these errors were encountered: