Skip to content
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

[CI] Build fails because of warnings #50

Closed
bjornstar opened this issue Jun 5, 2021 · 2 comments · Fixed by #51
Closed

[CI] Build fails because of warnings #50

bjornstar opened this issue Jun 5, 2021 · 2 comments · Fixed by #51

Comments

@bjornstar
Copy link
Member

From the build phase:

Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.

Changing the rules in .eslintrc.json to warn causes the builds to fail. If we want to fix the warnings we can, but it would be nice to revert that change in the meantime.

@drcmda
Copy link
Member

drcmda commented Jun 5, 2021

I can't work with eslint in error mode as it actively gets in the way. Want to comment out a thing to try something real quick, nope, no unused variables, need to remove every trace of it down to the very Imports. I think it should check before publish imo that's the only place where it makes sense.

@bjornstar
Copy link
Member Author

Yes, I agree. I don't think eslint belongs in the development build process. Typically it's only run locally as a pre-commit hook where it's not in the way of getting work done, but helps ensure committed code is formatted consistently.

The changes made however were to turn some ignored rules into warnings which is causing the build to fail. I'll look into how we can get eslint out of the build phase. How attached to react-scripts are you?

bjornstar added a commit to bjornstar/racing-game that referenced this issue Jun 5, 2021
@drcmda drcmda closed this as completed in #51 Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants