Skip to content

Conversation

@anomiex
Copy link

@anomiex anomiex commented Jun 30, 2025

ESLint doesn't define any specific method for providing flat configs alongside legacy configs without it being a breaking change (with a breaking change, they'd recommend names like "all-legacy"). This PR implements two methods:

  1. .flatConfigs.compatible
  2. .configs[ 'flat/compatible' ]

The first is more convenient for direct use, while the second will work with the string version of extends supported by defineConfig().

Fixes #396

ESLint doesn't define any specific method for providing flat configs
alongside legacy configs without it being a breaking change (with a
breaking change, they'd recommend names like "all-legacy"). This PR
implements two methods:

1. `.flatConfigs.compatible`
2. `.configs[ 'flat/compatible' ]`

The first is more convenient for direct use, while the second will work
with the string version of `extends` supported by `defineConfig()`.
@anomiex
Copy link
Author

anomiex commented Jul 9, 2025

Trying pinging a few people who've committed things and seem currently active on GitHub: @cht8687 @ODudek

👋 I'm looking at using this eslint plugin to help in updating our repo, and I can spend a bit of time adding to the documentation and adding missing checks if the maintainers are interested. 🙂

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

Successfully merging this pull request may close these issues.

Support eslint flat config

1 participant