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
[require-atomic-updates]: False positive on reused loop variable name #14208
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
repro:yes
rule
Relates to ESLint's core rules
Projects
Comments
eslint-github-bot
bot
added
the
triage
An ESLint team member will look at this issue soon
label
Mar 12, 2021
Hi @fluggo, thanks for the issue! I can reproduce this is our online demo, looks like a bug.. |
mdjermanovic
added
accepted
There is consensus among the team that this change meets the criteria for inclusion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
repro:yes
and removed
triage
An ESLint team member will look at this issue soon
labels
Mar 15, 2021
I am currently working on a potential fix. I hope to create a PR within the next two days |
patriscus
added a commit
to patriscus/eslint
that referenced
this issue
Mar 31, 2021
patriscus
added a commit
to patriscus/eslint
that referenced
this issue
Mar 31, 2021
1 task
patriscus
added a commit
to patriscus/eslint
that referenced
this issue
Apr 3, 2021
patriscus
added a commit
to patriscus/eslint
that referenced
this issue
Apr 10, 2021
patriscus
added a commit
to patriscus/eslint
that referenced
this issue
May 1, 2021
btmills
pushed a commit
that referenced
this issue
May 8, 2021
eslint-github-bot
bot
added
the
archived due to age
This issue has been archived; please open a new issue for any further discussion
label
Nov 5, 2021
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
repro:yes
rule
Relates to ESLint's core rules
Tell us about your environment
Environment Info:
Node version: v14.15.4
npm version: v7.5.3
Local ESLint version: v7.21.0 (Currently used)
Global ESLint version: Not found
Parser:
@typescript-eslint/parser
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.
Command:
npx eslint scripts/sample-require-atomic-updates.ts
What did you expect to happen?
Did not expect any errors because the
entry
variables in the two loops are independent.What actually happened? Please include the actual, raw output from ESLint.
ESLint seems to think that the variable captured in the second loop's arrow function closure is the
entry
variable from the first loop, and flags an error.The text was updated successfully, but these errors were encountered: