Skip to content
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

Open
Tracked by #18093 ...
AndreaPontrandolfo opened this issue Jul 22, 2023 · 6 comments
Open
Tracked by #18093 ...

Support for the new FlatConfig format #135

AndreaPontrandolfo opened this issue Jul 22, 2023 · 6 comments

Comments

@AndreaPontrandolfo
Copy link

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.

@jaydenseric
Copy link

jaydenseric commented Aug 17, 2023

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 eslint.config.js file is type-checked:

// @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";

@yannbf
Copy link
Member

yannbf commented Aug 21, 2023

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!

@waldemarfm
Copy link

@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?

@AndreaPontrandolfo
Copy link
Author

I would love to contribute but i also have my hands-full with OSS projects right now.

@yannbf
Copy link
Member

yannbf commented Oct 8, 2023

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!

@mheob
Copy link

mheob commented Jan 26, 2024

Some more information: Plugin Migration to Flat Config - ESLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants