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

CLI: Add safe check for eslint overrides #13717

Merged
merged 1 commit into from
Feb 15, 2021
Merged

CLI: Add safe check for eslint overrides #13717

merged 1 commit into from
Feb 15, 2021

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Jan 23, 2021

Issue:
When running npx sb@next init in a CRA project and the project does not contain eslintConfig.overrides in package.json, the CLI throws an error:
image

What I did

Add a safe check so that won't happen again

How to test

  • Checkout this branch
  • Create a project without eslintConfig.overrides
  • Run local cli

Copy link
Contributor

@phated phated left a comment

Choose a reason for hiding this comment

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

We should land this. @shilman any objects?

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM!

@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Feb 15, 2021
@shilman shilman changed the title fix(cli): add safe check for eslint overrides CLI: Add safe check for eslint overrides Feb 15, 2021
@shilman shilman merged commit 7bad43b into next Feb 15, 2021
@shilman shilman deleted the fix/cli-eslint-error branch February 15, 2021 00:26
@shilman shilman removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants