-
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 proposal: forbid use of blacklisted lodash methods #221
Comments
Similar intent to #201 ? |
Would like to rekindle this conversation. I'm working on a codebase that's old enough that we were using the I would love a rule like this, e.g. @serhalp you mentioned in #201 you may take as tab at a PR, did you ever solve for this? Got a fork lying around or something I could use for a onetime conversion, even if it's incomplete and not ready for merge? |
@TSMMark Sorry, unfortunately no, I never got around to drafting this, since I got no feedback from the maintainers. I only see two PRs merged in the last 16 months in this repo, so I'm a little wary about investing time in a PR that won't get merged. 🤷🏼♂️ |
I like this idea since in my own project I would rather use |
@keverw feel free to try out using my branch https://github.com/wix/eslint-plugin-lodash/pull/335/files#diff-628fae3b7c19f17b44e6e61fe7bb21259a3e218e865baeb01809290acbe2559eR27-R33 You'd only have to change |
forbid-methods
This rule forbids the use of a configured set of lodash methods.
Rule Details
This rule takes one argument:
The following patterns are considered warnings:
The following patterns are not considered warnings:
When Not To Use It
If you do not want to forbid the use of any lodash methods, then you can disable this rule.
The text was updated successfully, but these errors were encountered: