[no-unused-vars] Variables used in an ambient declaration are not detected #2026
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No ESLint problems are detected.
Actual Result
An error for
@typescript-eslint/no-unused-vars
shows up: "'Octokit' is defined but never used". If theOctokit
type is used elsewhere other than in an ambient declaration, the error goes away.Additional Info
This might be a case covered in the meta-issue #1856, but I don't know enough about the internals of typescript-eslint to know for sure.
Versions
@typescript-eslint/eslint-plugin
2.33.0
@typescript-eslint/parser
2.33.0
TypeScript
3.9.2
ESLint
7.0.0
node
12.16.3
npm
6.14.4
The text was updated successfully, but these errors were encountered: