Detect and support Oxlint usage for Storybook upgrade CLI #35532
connorshea
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
My project uses Oxlint at work, when upgrading Storybook we do not get any prompting to add the Storybook plugin to Oxlint. I would like to be offered that if Oxlint is detected in the project.
Describe the solution you'd like
Oxlint supports JS Plugins with an ESLint-compatible API (and also has eslint-plugin-storybook in its conformance suite to ensure it works), so it'd be possible for the upgrade CLI to detect an Oxlint config file and offer to amend it with the Storybook plugin like it does for ESLint config files.
This code would need to be updated accordingly:
storybook/code/core/src/cli/eslintPlugin.ts
Line 217 in 7b2b288
Describe alternatives you've considered
Ignoring the lack of this feature entirely, just manually adding the plugin (which would be fine, just a less smooth UX).
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
If desired, I can potentially help with introducing the detection of oxlint packages/config files, and also the implementation here.
All reactions