eslint-plugin-lodash
eslint-plugin-lodash copied to clipboard
Feature request: could the prefer-lodash-method rule be configured to report the opposite ?
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 : https://github.com/wix/eslint-plugin-lodash/issues/98#issuecomment-244117441
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 ?
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!