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

Add findBy to find autofixer for no-array-prototype-extensions rule #1614

Merged
merged 3 commits into from
Oct 7, 2022

Conversation

tgvrssanthosh
Copy link
Contributor

Summary

Added auto-fixer for no-array-prototype-extensions which replaces findBy with find.

Description

Recently, the proposal to deprecate array prototype extensions has been approved and got merged. The plan is to add autoFixers to replace ember array prototype extensions with the native array methods. In this PR, an auto fixer has been added which will replace the ember array method findBy with the native array method find.

Testing

Modified test case to check if the right output is generated after the fix.

@tgvrssanthosh
Copy link
Contributor Author

@bmish Can you please review this PR as well? Thank you!

@bmish bmish changed the title Add findBy to find auto-fixer for no-array-prototype-extensions rule Add findBy to find autofixer for no-array-prototype-extensions rule Oct 7, 2022
@bmish
Copy link
Member

bmish commented Oct 7, 2022

Can you also merge master in? There were some dependency updates merged recently.

@tgvrssanthosh
Copy link
Contributor Author

Can you also merge master in? There were some dependency updates merged recently.

Just rebased the changes.

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks!

@bmish bmish merged commit eb45a86 into ember-cli:master Oct 7, 2022
@tgvrssanthosh tgvrssanthosh deleted the autoFix-findBy branch October 7, 2022 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants