Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Documentation on migrating an existing plugin to support flat configs #17391

Closed as not planned
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLint
@bradzacher

Description

@bradzacher

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 theplugins key needs to change its form - butthe existing docs still use the old form.

How should a plugin go about supporting both flat and classic configs? What's the best-practice for doing this?
For exampleeslint-plugin-react exportsconfigs from the package root in the classic form, and provides imports for each config in the flat form (require('eslint-plugin-react/configs/recommended')). Is this the "best practice" way of doing it? Is there another way?

What about things likelanguageOptions - how can you support both?

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 have users asking for it so they don't need the compat layers - but without clear guidance and best practices we don't want to take the step lest we do it wrong and have to release a new major version to undo a change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    archived due to ageThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLint

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp