-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Change Request: document flat configs in plugins #17242
Comments
Hi @paulius-valiunas, this is indeed included in our phase 4 of implementing flat config. You can track the implementation here #13481, |
Copying from #17391 Currently there is no information in the docs about how a plugin might migrate to support flat configs. For example - one would need to migrate shared configs to the new format - but what does that look like? I know that the How should a plugin go about supporting both flat and classic configs? What's the best-practice for doing this? What about things like Based on my understanding - the configs will be validated for excess props - so plugins will need to duplicate the configs if they want to do things like extend other configs or provide Is there tooling to do this automatically so that plugins don't have to all implement the same copy pasted logic of "extend the classic config and rename somethings"? I guess what I'm saying is that the user story for flat configs is well documented and planned out - but it feels like the developer story is lacking right now which makes it hard for plugins to build support. We on @typescript-eslint have users asking for it and they're not sure how to use our plugin with the new config file. Currently our response is "use the compat tooling because we don't support it". I'm sure a lot of other plugins and community configs are in exactly the same boat. |
* docs: Plugin flat config migration guide Fixes #17242 * Switch exports to default * Update docs/src/extend/plugin-migration-flat-config.md Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Meta information * CommonJS syntax * Backwards compatibility * Update docs/src/extend/plugin-migration-flat-config.md Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> --------- Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
ESLint version
8.42.0
What problem do you want to solve?
Current documentation page on writing plugins uses legacy configs
What do you think is the correct solution?
It should provide a useful example of how a flat config can be included in a plugin without circular imports.
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: