Skip to content

Update: Improve report location for rest-spread-spacing (refs #12334)#13313

Merged
kaicataldo merged 1 commit intomasterfrom
restspreadspacing-loc
May 20, 2020
Merged

Update: Improve report location for rest-spread-spacing (refs #12334)#13313
kaicataldo merged 1 commit intomasterfrom
restspreadspacing-loc

Conversation

@mdjermanovic
Copy link
Copy Markdown
Member

Prerequisites checklist

  • I have read the contributing guidelines.
  • The team has reached consensus on the changes proposed in this pull request. If not, I understand that the evaluation process will begin with this pull request and won't be merged until the team has reached consensus.

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

[X] Other, please explain:

refs #12334

Change reported location in the rest-spread-spacing rule.

What changes did you make? (Give an overview)

For "always", the rule will now report the full location of the rest/spread operator, instead of only its end location.

For "never", the rule will now report range between the rest/spread operator and the following token, instead of only the end location of the rest/spread operator.

"always" before this change:

image

"always" after this change:

image

"never" before this change:

image

"never" after this change:

image

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

@mdjermanovic mdjermanovic added enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion labels May 17, 2020
Copy link
Copy Markdown
Member

@yeonjuan yeonjuan left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@kaicataldo kaicataldo merged commit b0a6b81 into master May 20, 2020
@kaicataldo kaicataldo deleted the restspreadspacing-loc branch May 20, 2020 17:19
@kaicataldo
Copy link
Copy Markdown
Member

Thanks for contributing!

@eslint-deprecated eslint-deprecated Bot locked and limited conversation to collaborators Nov 17, 2020
@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 Nov 17, 2020
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 enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants