You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CRA v4 build with CI=true fails when eslint warnings are present #10062
After upgrade to v4 of react scripts our CI builds fail due to eslint warnings. In versions 3.x same build passed.
This is problematic for large codebases where there are many pre-existing warnings and we still want to flag them in builds and IDEs to allow engineers to clean them up gradually without blowing up CI builds. We do not want to turn off the rules because the new code they keep us from creating more tech debt. For pre-existing code, it is not feasible to fix all warnings before upgrade to v4.
@gone-skiing The linting rules changed with 4.0 and that is likely the source of new warnings that will fail a CI build. We noticed a few in our apps for the new rule import/no-anonymous-default-export (which is a good change for dev tooling purposes as I understand it)
This has been the behavior of our lint warnings for a few years now. You may just be noticing that we respect your eslint configuration now which is new in 4.0
Activity
9jaGuy commentedon Nov 13, 2020
this behavior is pre v4
gone-skiing commentedon Nov 13, 2020
@9jaboy checking... It looks like you are correct. There is also this discussion from years ago on the topic #3657
We are definitely seeing builds break after upgrade to v4 that passed on v3.4.1 but it could be something different on our end.
timrbula commentedon Nov 13, 2020
@gone-skiing The linting rules changed with 4.0 and that is likely the source of new warnings that will fail a CI build. We noticed a few in our apps for the new rule
import/no-anonymous-default-export(which is a good change for dev tooling purposes as I understand it)See the breaking changes section in the release notes: https://github.com/facebook/create-react-app/releases/tag/v4.0.0
Lulololu commentedon Nov 17, 2020
Hola,
This #9887 seems to be related to this issue.
ianschmitz commentedon Nov 26, 2020
This has been the behavior of our lint warnings for a few years now. You may just be noticing that we respect your eslint configuration now which is new in 4.0
gone-skiing commentedon Nov 30, 2020
@ianschmitz gotcha, that makes sense - we were trying to figure out what changed.
henryruhs commentedon Dec 9, 2020
@ianmcnally This issue is still present in 4.0.1 - respecting our eslint configuration or not does not change the fact that it fails on warnings...
simpsonphile commentedon Jul 21, 2021
any update?
Failed to compile on dev with ESLINT_NO_DEV_ERRORS=true