False positive of no-shadow rule with ENUMs #2483
Labels
fix: user error
issue was fixed by correcting the configuration / correcting the code
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The ENUM should not state that it is declared in the upper scope
Actual Result
The following error message is received;
error 'Direction' is already declared in the upper scope no-shadow
Additional Info
Versions
@typescript-eslint/parser
4.0.1
TypeScript
4.0.2
ESLint
7.8.1
node
12.16.3
Basically, it looks like the latest version of the parser fails to read ENUMs properly.
Downgrading
@typescript-eslint/parser
tov3.10.1
with the following.eslintrc
file works and does not report ENUMs being declared in the upper scope.The text was updated successfully, but these errors were encountered: