Skip to content

CLI: Skip prompting for eslint plugin with --yes flag#22651

Merged
JReinhold merged 1 commit into
nextfrom
fix/sandbox-init-command
May 20, 2023
Merged

CLI: Skip prompting for eslint plugin with --yes flag#22651
JReinhold merged 1 commit into
nextfrom
fix/sandbox-init-command

Conversation

@yannbf
Copy link
Copy Markdown
Member

@yannbf yannbf commented May 20, 2023

Closes #

What I did

The sandbox commands were hanging locally because the ESlint check would get prompted but the logs were hidden. Cryptic!
This PR fixes that issue (which would also be applicable for users that run storybook init --yes

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

@yannbf yannbf added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch labels May 20, 2023
Copy link
Copy Markdown
Contributor

@JReinhold JReinhold left a comment

Choose a reason for hiding this comment

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

💪

@JReinhold JReinhold merged commit ec5de1a into next May 20, 2023
@JReinhold JReinhold deleted the fix/sandbox-init-command branch May 20, 2023 07:26
if (hasEslint && !isStorybookPluginInstalled) {
const shouldInstallESLintPlugin = await suggestESLintPlugin();
if (shouldInstallESLintPlugin) {
if (skipPrompts || (await suggestESLintPlugin())) {
Copy link
Copy Markdown
Contributor

@chakAs3 chakAs3 May 20, 2023

Choose a reason for hiding this comment

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

that is almost what i did. to bpass the prompts, however we agreed, we still need to fix this issue.

@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 22, 2023
shilman pushed a commit that referenced this pull request May 22, 2023
CLI: Skip prompting for eslint plugin with --yes flag
@shilman shilman mentioned this pull request May 22, 2023
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug cli patch:done Patch/release PRs already cherry-picked to main/release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants