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

fix: prevent eslint errors from blocking build #506

Merged
merged 1 commit into from Jun 7, 2021

Conversation

kwajiehao
Copy link
Contributor

@kwajiehao kwajiehao commented Jun 7, 2021

Overview

Currently, when we attempt to start our react app, create-react-app fails to compile when there are any eslint or prettier errors. The reason for this is documented in this github issue: facebook/create-react-app#9887 (comment)

This issue is fixed with react-scripts v4.0.2 with the use of an ESLINT_NO_DEV_ERRORS env var (this is documented under Create React App's advanced configuration here: https://create-react-app.dev/docs/advanced-configuration/)

This commit adds the ESLINT_NO_DEV_ERRORS env var to our env-example file. We will need to separately add it to our production and staging environments too.

To-dos

  • Add ESLINT_NO_DEV_ERRORS env var to production and staging CMS frontend before merging into develop

Currently, when we attempt to start our react app, create-react-app
fails to compile when there are any eslint or prettier errors. The
reason for this is documented in this github issue: facebook/create-react-app#9887 (comment)

This issue is fixed with react-scripts v4.0.2 with the use of an
ESLINT_NO_DEV_ERRORS env var (this is documented under advanced
configuration here: https://create-react-app.dev/docs/advanced-configuration/)

This commit adds the ESLINT_NO_DEV_ERRORS env var to our env-example
file. We will need to separately add it to our production and staging
environments too.
Copy link
Contributor

@prestonlimlianjie prestonlimlianjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@kwajiehao kwajiehao merged commit 16ee279 into develop Jun 7, 2021
@kwajiehao kwajiehao deleted the fix/prevent-eslint-errors-block-build branch June 7, 2021 10:41
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 this pull request may close these issues.

None yet

2 participants