diff --git a/code/lib/cli/src/generators/baseGenerator.ts b/code/lib/cli/src/generators/baseGenerator.ts index 75d12dc01499..707cd0b78904 100644 --- a/code/lib/cli/src/generators/baseGenerator.ts +++ b/code/lib/cli/src/generators/baseGenerator.ts @@ -13,11 +13,7 @@ import { getPackageDetails } from '../js-package-manager'; import { getBabelPresets, writeBabelConfigFile } from '../babel-config'; import packageVersions from '../versions'; import type { FrameworkOptions, GeneratorOptions } from './types'; -import { - configureEslintPlugin, - extractEslintInfo, - suggestESLintPlugin, -} from '../automigrate/helpers/eslintPlugin'; +import { configureEslintPlugin, extractEslintInfo } from '../automigrate/helpers/eslintPlugin'; import { detectBuilder } from '../detect'; const logger = console; @@ -175,14 +171,7 @@ const hasFrameworkTemplates = (framework?: SupportedFrameworks) => export async function baseGenerator( packageManager: JsPackageManager, npmOptions: NpmOptions, - { - language, - builder, - pnp, - frameworkPreviewParts, - yes: skipPrompts, - projectType, - }: GeneratorOptions, + { language, builder, pnp, frameworkPreviewParts, projectType }: GeneratorOptions, renderer: SupportedRenderers, options: FrameworkOptions = defaultOptions, framework?: SupportedFrameworks @@ -360,10 +349,8 @@ export async function baseGenerator( ); if (hasEslint && !isStorybookPluginInstalled) { - if (skipPrompts || (await suggestESLintPlugin())) { - depsToInstall.push('eslint-plugin-storybook'); - await configureEslintPlugin(eslintConfigFile ?? undefined, packageManager); - } + depsToInstall.push('eslint-plugin-storybook'); + await configureEslintPlugin(eslintConfigFile ?? undefined, packageManager); } } } catch (err) {