-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Description
Describe the bug
When running create-storybook, my eslint.config.m?js gets an import storybook from "eslint-plugin-storybook" import added but the plugin doesn't get added within the extends section.
To enable the plugin, one also has to add the following to the extends array in eslint.config.m?js:
storybook.configs['flat/recommended'],
It would be nice if that would happen automatically.
Reproduction link
Simply use create-storybook.
Reproduction steps
- Run
pnpm create storybook@latest - Verify that
storybook.configs['flat/recommended'],is missing from theextendssection ineslint.config.m?js.
System
│ System:
│ OS: Linux 6.18 openSUSE Tumbleweed 20251204
│ CPU: (16) x64 AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
│ Shell: 5.3.8 - /bin/bash
│ Binaries:
│ Node: 22.21.1 - /usr/bin/node
│ Yarn: 1.22.22 - /usr/bin/yarn
│ npm: 10.9.4 - /usr/bin/npm <----- active
│ pnpm: 10.23.0 - /usr/bin/pnpm
│ Browsers:
│ Chrome: 143.0.7499.40
│ Firefox: 145.0.2
│ npmPackages:
│ @storybook/addon-a11y: ^10.1.4 => 10.1.4
│ @storybook/addon-docs: ^10.1.4 => 10.1.4
│ @storybook/addon-onboarding: ^10.1.4 => 10.1.4
│ @storybook/addon-vitest: ^10.1.4 => 10.1.4
│ @storybook/react-vite: ^10.1.4 => 10.1.4
│ eslint-plugin-storybook: ^10.1.4 => 10.1.4
│ storybook: ^10.1.4 => 10.1.4Additional context
No response
dosubot