-
Notifications
You must be signed in to change notification settings - Fork 565
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
Build: stop failing the build on eslint errors #1594
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I have this commented out on my build right now.
Related #1596 |
This is on my list of wants. Seems like an easy GitHub Action. I will follow up with a precommit hook as I've written that code a number of times. Probably won't get to the server check for a while. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linters should provide helpful information but generally stay out of the way 👍
enforce: 'pre', | ||
use: [ | ||
{ | ||
loader: 'eslint-loader', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely a dependency that can be removed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'll update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed dependency in 065321e
`eslint` provides helpful warnings that prevent bugs in our software. However by running it as a precondition for the build we introduce artificial obstacles to quick testing and iteration. For instance, we will fail to build the app if we have an unused variable even though there's no reason it would break the build. In this change we're removing the precondition for passing `eslint` before building the app. This should allow us to more rapidly made small debugging/testing adjustments while working on fixing or altering the app. `eslint` still belongs in the process and we might follow-up on this PR by introducing it as a `git` hook on `precommit`, a more appropriate place for the safety check. For now though I am foregoing that work in order to remove what has been a persistent frustration while working on the app.
c30225b
to
065321e
Compare
|
eslint
provides helpful warnings that prevent bugs in our software.However by running it as a precondition for the build we introduce
artificial obstacles to quick testing and iteration. For instance, we
will fail to build the app if we have an unused variable even though
there's no reason it would break the build.
In this change we're removing the precondition for passing
eslint
before building the app. This should allow us to more rapidly made small
debugging/testing adjustments while working on fixing or altering the
app.
eslint
still belongs in the process and we might follow-up on this PRby introducing it as a
git
hook onprecommit
, a more appropriateplace for the safety check. For now though I am foregoing that work in
order to remove what has been a persistent frustration while working on
the app.
This should have no visual or functional change on the app. This should
only impact the build of the application while developing and debugging.