[no-unused-vars] global never used #2558
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Updating
@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
from 3.10.0 to 4.1.0 the linter is showing the next message:Our code is the next:
And we solved the problem thanks to the next rule:
Our current rules for the project: https://github.com/IBMResearch/eslint-config-ibmresearch
Expected Result
How in this case the
global
reserved word references to the global scope, this message should not be shown as a warning.Actual Result
The plugin is showing
global
as an unused variable.Versions
@typescript-eslint/eslint-plugin
4.1.0
@typescript-eslint/parser
4.1.0
TypeScript
4.0.2
ESLint
7.9.0
node
14.10.1
The text was updated successfully, but these errors were encountered: