Closed JReinhold closed 3 weeks ago
The root cause of this issue is that eslint-plugin-storybook doesn't actually support ESLint v9, only ESLint v8 which is EOL beginning next week (!).
There is an old PR to support ESLint v9, but there's been no updates in a while: https://github.com/storybookjs/eslint-plugin-storybook/pull/156
Also, when installing npx storybook@latest init
, the script looks for .eslintrc
, the legacy config format. While still supported in ESLint v9, this config format is deprecated and will be removed in ESLint v10. So this also needs to be fixed.
We merged this PR now! https://github.com/storybookjs/eslint-plugin-storybook/pull/171
Describe the bug
When initting Storybook in a fresh Vite+React project with npm, it ends with this from npm, and never continues:
Indicating that the
init
failed, but it's "just" npm that never installs any dependencies.To summarize:
eslint-plugin-storybook
->@typescript-eslint/utils@"^5.62.0
-> peereslint@"^6.0.0 || ^7.0.0 || ^8.0.0"
eslint@9.11.1
in projectI'd expect this to be a problem in any project that uses eslint v9, not just Vite+React.
Reproduction link
see steps below
Reproduction steps
npm create vite test-sb-init -- --template react-ts
cd test-sb-init
npm install
npx storybook@latest init
System
Additional context
No response