-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Turn some of the linter messages into errors #498
Comments
Are there any lint warnings in CRA that you don’t pay attention to? |
Yes, no-unused-vars for example. It is pretty useful but doesn't prevent my code running so I don't bother fixing it while prototyping. Of course I still want it to be reported as I want to fix it before commit, for example. |
Can you compile a list of which warnings you’d rather see as errors? |
Probably just no-undef for now as I validated it through my workflow. Not sure about others for now. |
Send a PR please? |
This should be fixed in 0.4.2. |
Works well, thanks! Btw. love how it is easy to upgrade to the new version—just |
🍰 |
I think it would be useful to have some of the linter messages to be errors instead of warnings.
For example:
Sometimes I don't pay attention to lint warnings and then only see errors when they happen at runtime.
We could also format lint errors in a similar fashion babel loader reports, including code frame with location.
The text was updated successfully, but these errors were encountered: