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

Feature request: could the prefer-lodash-method rule be configured to report the opposite ? #201

Open
Lucas-C opened this issue May 13, 2019 · 1 comment

Comments

@Lucas-C
Copy link

Lucas-C commented May 13, 2019

Hi.

On our project we would like to limit the use of lodash JS functions and use the native .forEach / .map / .filter as much as possible.

I totally understand the rationale behind this rule, which is explained in details here : #98 (comment)

Though, do you think it could be possible to add a configuration option to report the opposite, that is to forbid the use of lodash methods when not used with a shorthand ?

@serhalp
Copy link
Contributor

serhalp commented Oct 15, 2019

There are various reasons why one might want a never option for this rule, to forbid the use of unchained lodash methods that have native equivalents. I don't think this plugin should be opinionated about this.

If there is demand for this feature, it's worth accepting a PR for it, right? I could take a stab at this if the maintainers indicate they'd be open to merging it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants