-
Notifications
You must be signed in to change notification settings - Fork 823
eslint: Add eslint-plugin-you-dont-need-lodash-underscore #44301
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
eslint: Add eslint-plugin-you-dont-need-lodash-underscore #44301
Conversation
Now that the things the plugin detects have been cleaned up, enable the plugin. We skip `throttle` though, as it's more complex than what the plugin's docs claim. The docs only consider the case where `trailing: false`, which isn't even the default.
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Hmm. I missed a bunch using a |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
#44305 for the stuff using the |
…u-dont-need-lodash-underscore
Should be good to review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I was going to ask about fixupPluginRules()
, but found you-dont-need/You-Dont-Need-Lodash-Underscore#396, which is fixed by you in you-dont-need/You-Dont-Need-Lodash-Underscore#408. 😄
Closes MONOREP-11
Proposed changes:
Now that the things the plugin detects have been cleaned up, enable the plugin.
We skip
throttle
though, as it's more complex than what the plugin's docs claim. The docs only consider the case wheretrailing: false
, which isn't even the default.Other information:
Jetpack product discussion
pdWQjU-1jP-p2
Does this pull request change what data or activity we track or use?
No
Testing instructions: