-
-
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
Check ESLint warnings and errors in npm run build #471
Conversation
Thanks! I’m currently on a little hiatus so I will review this in bulk before cutting 0.3.0. |
(In the meantime please make sure Travis doesn't fail.) |
Travis build fixed. Should I squash the commits or is it ok to keep them separate? |
Keeping separate is OK, GitHub will squash them on merge. |
Here is what I see on a lint warning: Instead of npm cryptic crash, I would like the regular build output at the end. It should still build the project successfully if only warnings were encountered. Let’s also change the error output in the error case (I mean actual build error) to make it more like |
In this discussion, we agreed that ESLint warnings should fail the build :) |
Haha, sorry :P. I now think it might make more sense to do three things:
Does this make sense? Sorry for the churn. |
Yeah, makes sense, I'll try to update this soon 👍 |
Hi, do you think you’ll have time to finish it? |
Yes, but I don't know when exactly :) |
Okay, no worries for now, but please let us know if you can’t pick it up within a couple of weeks. |
I’m closing as this is outdated and the PR has been open for more than a month. |
Hi ! I'm building a chrome extension using create-react-app, and due to this change, I can't use {
"extends": "react-app",
"globals": {
"chrome": true
}
} This doesn't seem to be working. Can you guide me a bit on how to extend eslint rules. I learned about "extends" from #808 For now I've just used global comment (which works) as all chrome related calls reside in one file in my case. /* global chrome */ |
That's the intended solution. Alternatively you can probably read |
Fixes #440
Test plan:
Expected output:
followed by npm errors.
Should not show "Compiled successfully." message.
Also, when running
npm start
and there are warnings, but the server is still started, this should appear after the warnings: