[no-unused-vars] False positive with template string type argument #2495
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Minimal repo: arimah/typescript-eslint-no-unused-vars-issue-1
Expected Result
No lint error: the type is used as a template string type argument.
Actual Result
Additional Info
False positive only occurs with
"sourceType": "module"
. With that option unset, I can't reproduce the bug, even if I introduce an explicitexport
orimport
into the code.Versions
@typescript-eslint/eslint-plugin
4.0.1
@typescript-eslint/parser
4.0.1
TypeScript
4.0.2
ESLint
7.8.1
node
12.16.1
The text was updated successfully, but these errors were encountered: