-
-
Notifications
You must be signed in to change notification settings - Fork 466
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(linter): no-else-return
fixer fails when else
has no trailing whitespace
#6348
fix(linter): no-else-return
fixer fails when else
has no trailing whitespace
#6348
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
CodSpeed Performance ReportMerging #6348 will not alter performanceComparing Summary
|
no_else_return
fixer fails when else
has no trailing whitespaceno-else-return
fixer fails when else
has no trailing whitespace
Merge activity
|
… whitespace (#6348) Fixes a bug in `eslint/no_else_return`'s fixer where fixes were not being property applied when `else` had no whitespace immediately after it. For example: ```js if(x){ return x }else{ return y } ``` I also refactored the rule's fixer to avoid string allocations as much as possible.
1ade3c3
to
71ad5d3
Compare
Fixes a bug in
eslint/no_else_return
's fixer where fixes were not beingproperty applied when
else
had no whitespace immediately after it. Forexample:
I also refactored the rule's fixer to avoid string allocations as much as
possible.