-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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 environment variable DISABLE_ESLINT #7961
Conversation
Hi giuband! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
I've changed it to |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Hi team, any updates on this one? |
I think this will likely be a config flag, we've been talking about adding a config file in the next major release of CRA. Does anyone else in the team have thoughts? @ianmcnally or @ianschmitz perhaps? |
Just my 2¢, but I think it would be awesome if a CRA project could have a |
@michaelsbradleyjr That's on the cards for v4 at this stage. |
I don't care about CRAs eslint rules for two reasons. First one, I have own rule set, which I use through multiple projects. And the second, I don't want that eslint slows me down while development. Therefore a big +1 for this PR. |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
further activity occurs |
Thanks, @giuband! This is a great thing to have supported natively, since it's so frustrating having the build break on you while you're actively coding, so now you have to stop, add a disable comment, etc. It just breaks the flow. Please, let me know if I can be of any help! |
It's very useful for this issue: #8096 |
any update on this? |
@mrmckeb @ianmcnally any updates on this one? Is it still under the radar to offer more flexibility regarding running or not eslint? |
The idea behind this new environment DISABLE_ESLINT_DEV variable is to:
At the moment 2) is pretty hard, because depending on your ESLint config you might not even able to have a
console.log
or an unused variable in your code without seeing your dev build failing, making the experience pretty frustrating.Open for feedback. I am actually uncertain whether we should have instead just a
DISABLE_ESLINT
setting that would disable ESLint for both environments.Related issues: