-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for the new FlatConfig format #135
Comments
The most obvious thing that needs to happen is to publish TypeScript typings for the package, so that you can programmatically import and use this ESLint plugin with type safety when your // @ts-check
// Currently `any` :(
// Even worse, it's actually a TypeScript error if `compilerOptions.moduleResolution`
// is configured to `bundler` instead of `nodenext`, about there being no default export.
import eslintPluginStorybook from "eslint-plugin-storybook"; |
Hey there! Thanks for opening this issue. Are you willing to contribute to make this happen? I'm happy to guide in the process if needed! |
@yannbf I'm interested in helping with this. I don't think it'll be too complicated. Would the approach be a major version bump and go all in on the change, or do we somehow offer support for both formats and make it opt-in for projects using flag configs? |
I would love to contribute but i also have my hands-full with OSS projects right now. |
Hey @AndreaPontrandolfo @waldemarfm contributions are definitely welcome. If this change can be done in a backwards compatible way, that'd be definitely preferred! If you know what are the steps to support this format, describing those would already be quite helpful as well! |
Some more information: Plugin Migration to Flat Config - ESLint |
Do we have any new updates on this issue? |
Hey everyone! There is a canary version that introduced support to the flat config file while trying to maintain it backwards compatible. We are not 100% confident of merging it yet, so please give it a try:
Feedback is truly appreciated. |
[email protected] |
canary has been working for us with eslint 9 & flat config |
hello,could you tell how to configure this plugin in the flat config? |
|
This comment was marked as resolved.
This comment was marked as resolved.
we have the same problem, it's already mentioned in the flat-config PR #156 |
Thank you for updating this package to support flat config. |
Ah great didn't catch that, thanks! |
Any plans to support the new Eslint FlatConfig format,
eslint.config.js
?In the next major release of Eslint, the new format is gonna be the default and the old format deprecated, so it should be updated.
The text was updated successfully, but these errors were encountered: