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: ensure no-await-in-loop reports the correct node (fixes #9992) #9993

Merged
merged 1 commit into from Feb 20, 2018

Conversation

not-an-aardvark
Copy link
Member

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

[x] Bug fix (#9992)

What changes did you make? (Give an overview)

This fixes a regression in f012b8c where no-await-in-loop started reporting the surrounding loop node rather than the AwaitExpression node. As a result, some eslint-disable comments broke and caused more errors because they were on the wrong line.

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

Nothing in particular

@not-an-aardvark not-an-aardvark added bug ESLint is working incorrectly rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion regression Something broke patch candidate This issue may necessitate a patch release in the next few days labels Feb 20, 2018
@kaicataldo kaicataldo merged commit f417506 into master Feb 20, 2018
@kaicataldo
Copy link
Member

LGTM. Thanks for contributing!

@ilyavolodin ilyavolodin deleted the no-await-in-loop-report-location branch February 20, 2018 21:06
taneliang added a commit to nusmodifications/nusmods that referenced this pull request Feb 25, 2018
Revert
f424811
as upstream bug was fixed (see
eslint/eslint#9993)
This was referenced Mar 19, 2018
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Aug 21, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Aug 21, 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 patch candidate This issue may necessitate a patch release in the next few days regression Something broke rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants