Skip to content
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

Fix: require-atomic-updates false positive across await (fixes #11954) #13915

Merged
merged 1 commit into from Dec 18, 2020

Conversation

buhichan
Copy link
Contributor

@buhichan buhichan commented Dec 9, 2020

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[x] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

make require-atomic-updates work in the case described by issue #11954

Is there anything you'd like reviewers to focus on?

I am new to eslint contribution, so sorry if this looks bad.

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Dec 9, 2020
@btmills btmills 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 and removed triage An ESLint team member will look at this issue soon labels Dec 18, 2020
Copy link
Member

@btmills btmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to ESLint, @buhichan! 👋 Thank you for tackling #11954. It'll be nice to close that after it's been open for so long. I had one suggestion to narrow the test case a bit. Once that's done, this looks good to me 👍 I'll give the rest of the team a chance to look at it in case they see any edge cases that we haven't spotted yet.

tests/lib/rules/require-atomic-updates.js Show resolved Hide resolved
Copy link
Member

@btmills btmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this because getting it into today's release is more important! We can reduce the test in a follow-up. Thanks @buhichan!

@btmills btmills merged commit f85b4c7 into eslint:master Dec 18, 2020
@buhichan
Copy link
Contributor Author

Thanks

@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Jun 17, 2021
@eslint-github-bot 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 Jun 17, 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 rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants