storybookjs/storybook

[Bug]: eslint-plugin-storybook not compatible with eslint 10+

已关闭

#35,097 创建于 2026年6月8日

 (4 条评论) (0 个反应) (0 位负责人)TypeScript (10,058 个派生)batch import
bugeslint-pluginhelp wantedsev:S3

仓库指标

星标
 (89,909 个星标)
PR 合并指标
 (平均合并 7天 22小时) (30 天内合并 184 个 PR)

描述

Describe the bug

Oops! Something went wrong! :(

ESLint: 10.4.1

TypeError: Failed to load plugin 'storybook' declared in '': Class extends value undefined is not a constructor or null Referenced from:

Reproduction link

https://github.com/trussworks/react-uswds/actions/runs/27157429433/job/80163799906?pr=3494

Reproduction steps

The above link demonstrates the failure where the eslint dependency has been updated, and the eslint-plugin-storybook version is what is currently marked as latest

System

│  Storybook Environment Info:
│

│  System:
│  OS: macOS 26.5
│  CPU: (10) arm64 Apple M1 Max
│  Shell: 5.9 - /bin/zsh
│  Binaries:
│  Node: 24.11.0 -
│  /Users/brandonlenz/.local/share/mise/installs/node/24.11.0/bin/node
│  Yarn: 3.8.7 - /usr/local/bin/yarn <----- active
│  npm: 11.6.1 - /Users/brandonlenz/.local/share/mise/installs/node/24.11.0/bin/npm
│  Browsers:
│  Safari: 26.5
│  npmPackages:
│  @storybook/addon-a11y: ^10.0.5 => 10.4.2
│  @storybook/addon-docs: ^10.0.5 => 10.4.2
│  @storybook/addon-links: ^10.0.5 => 10.4.2
│  @storybook/react: ^10.0.5 => 10.4.2
│  @storybook/react-vite: ^10.0.5 => 10.4.2
│  eslint-plugin-storybook: ^10.4.2 => 10.4.2
│  happo-plugin-storybook: ^5.0.4 => 5.0.4
│  storybook: ^10.0.5 => 10.4.2

Additional context

The compatibility docs likely also need updating for eslint 10+

贡献者指南