-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-shadow does not catch shadowing when the shadowing is inside if statement #2294
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Comments
As of now I dont think this rule takes into consideration |
btmills
added
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
labels
Apr 13, 2015
nzakas
added
the
accepted
There is consensus among the team that this change meets the criteria for inclusion
label
Apr 13, 2015
Can you try upgrading to 0.19.0 and see if there's a difference? |
Yep, I've upgraded to 0.19.0 and there is no difference. |
Okay thanks, we'll take a look. |
Working on this. |
Not working on this anymore. Free for someone else to pick up. |
Working on this. |
jrvidal
added a commit
to jrvidal/eslint
that referenced
this issue
May 13, 2015
nzakas
added a commit
that referenced
this issue
May 14, 2015
Fix: forced no-shadow to check all scopes (fixes #2294)
eslint-deprecated
bot
added
the
archived due to age
This issue has been archived; please open a new issue for any further discussion
label
Feb 7, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
The following pattern is caught:
But this is not caught:
These are both equivalent examples of shadowing and should thus both be flagged by the rule.
ESLint version: v0.18.0
The text was updated successfully, but these errors were encountered: