-
Notifications
You must be signed in to change notification settings - Fork 65
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
Rule for disallowing chaining #82
Comments
Hi, and thanks for taking the time to open the issue! |
[eslint-plugin-lodash-fp]((https://github.com/jfmengels/eslint-plugin-lodash-fp/) is opinionated on this matter, and thus has a no-chain. It's not appropriate if you use vanilla Lodash, but it should be fine until the rule is added here. I agree with @ganimomer that a |
Thanks for the quick feedback! I tend to agree that a general However, the existing In my case, I would like to be able to forbid nesting and chaining. If we remove I should also apologize for wording this issue rather directly. When we decide on an approach, I might have some time to take a look at implementing at this in the next few weeks (unless we want to deliberately do #80 first). |
Hi, |
So following my previous statement - |
Chaining (in any of its forms) is problematic for users seeking to produce an optimized build of lodash.
This plugin should provide a rule that disallows
_.chain()
,_()
, etc.The text was updated successfully, but these errors were encountered: