-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add enable option #8
Comments
How about using plugins: [
isProd() && pluginGoogleAnalytics({ id: getGoogleTagID() }),
], |
Well, that's not better either, it produces |
The plugins array can accept false |
I'm open to adding an enable option and welcome PR |
I think it's important to keep all your plugins consistent. So that they all have the same pattern. Enable/Disable, depending on the environment. (I'm a family father and for doing a PR, I'd have to examine code for which I do not have the time right now) |
Thanks! |
That's the code I have now, and don't like it:
Creates an empty element in the plugin array. Could you add a new option
enabled
, similar like your other eslint plugin?That would solve it elegantly. Thanks.
The text was updated successfully, but these errors were encountered: