no-shadow rule Broken When Using Enum #13044
Labels
3rd party integration
This is an issue related to a 3rd party consumer
archived due to age
This issue has been archived; please open a new issue for any further discussion
works as intended
The behavior described in this issue is working correctly
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
"@typescript-eslint/parser": "^2.23.0"
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
I don't think a
no-shadow
error should be occurring becauseLayer
is a part of theLayerGroupRole
enum.What actually happened? Please include the actual, raw output from ESLint.
LayerGroupRole.Layer
is considered a shadowed variable name.28:3 error 'Layer' is already declared in the upper scope no-shadow
Are you willing to submit a pull request to fix this bug?
The text was updated successfully, but these errors were encountered: