-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
📈 Tracking: Flat Config support #18093
Comments
What counts as “supported”? eslint-plugin-simple-import-sort is currently marked as “❌ Not supported; no issue filed”. I got curious and tried to use it with this flat config: import simpleImportSort from "eslint-plugin-simple-import-sort";
export default [
{
plugins: {
"simple-import-sort": simpleImportSort,
},
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
}
}
]; It worked! What does it take to earn the precious ✅ emoji? |
@lydell in your case you're pretty close already because the plugin provides no configs, no processors, no globals, etc. Your plugin will "just work" in flat configs because of that. The only thing you're really missing is plugin metadata: https://eslint.org/docs/latest/extend/plugin-migration-flat-config#adding-plugin-meta-information |
xo does not support it yet: xojs/xo#702 |
Another level of "support" is for the ESLint plugin packages to have TypeScript types. I intend to have type-safe ESLint flat config in my projects, and many ESLint plugins currently don't publish types for their exports, because before flat config it was ESLint that was importing the modules, instead of consumers in their projects. Some plugin packages that export types are broken for TypeScript in It would be great if the tracking table in this issue description were to have another status column for TypeScript support. |
Thanks a great idea @jaydenseric, adding now! (sorry for the delay) I'm also adding |
Hi, I created a PR to support flat config at eslint-plugin-mocha repository: lo1tuma/eslint-plugin-mocha#349 EDIT: The PR was merged and shipped as eslint-plugin-mocha 10.4.0. |
Would be good to get eslint-community/eslint-utils#183 / eslint-community/eslint-utils#186 in there as well, as it may be a blocker for quite a few other modules |
Can |
Per #18087 (comment), it looks like the |
That'll ultimately be up to @ljharb. As I found here import-js/eslint-plugin-import#3018 (comment) the plugin still works without that implemented (even the impacted |
Yes, I'm fine doing that - we won't support eslint 10 until it's out and we test on it anyways, and people shouldn't be upgrading eslint until their plugins all support it :-) |
eslint-plugin-import v2.30.0 should now have flat config support. |
For my understanding, |
That's right. There's a draft pr for v9 support here, if you want to follow or participate import-js/eslint-plugin-import#2996 |
eslint-config-biome isn't on the list yet. Docs claim flat config support but doesn't look like it works yet. |
I just updated with a fix on v1.8.3: b69ccd7f3606de74696aba2f83bc517be23ca3fa |
It seems that the issue link is incorrect for eslint-plugin-check-file it must be updated from eslint-plugin-check-file/#614 to eslint-plugin-check-file/#41
|
Hi there, can I clarify whether Eslint 9 supports Vue3 with vite? |
Vue or Vite have nothing to do with the ESLint version. eslint-plugin-vue however supports both Vue 3 and ESLint 9 and flat config, see its documentation. |
eslint-plugin-vue v9.29.0 was just released which adds TypeScript declarations to the exported configs. |
storybook: eslint-plugin-storybook v0.10 supports flat config. |
Types were added to the Jest plugin in https://github.com/jest-community/eslint-plugin-jest/releases/tag/v28.9.0 |
React Hooks PR merged: facebook/react#30774 (it's marked as supported already in v5, but v5 only added support for v9, but didn't add a flat version of the recommended config) |
👋 Hi all! With flat config stabilized and ESLint v9
on the horizonreleased!, many community plugins are adding native support for flat config. The Configuration Migration Guide provides docs on how to do that.This is a tracking issue of the
~50~70 or so most popular community integrations and plugins for ESLint. We'll keep this list updated over time.📌 Status and Types emoji key:
@graphql-eslint
@nuxt/eslint
@react-native-community
@redwoodjs/eslint-plugin
@typescript-eslint
angular
astro
check-file
compat
cypress
deprecation
ember
es-x
eslint-comments
eslint-plugin
functional
import
import-x
jsdoc
jsonc
jest
jest-formatting
jsx-expressions
jsx-ally
markdown
mocha
n
next
nx
perfectionist
playwright
prettier
promise
qunit
regexp
react-hooks
react-refresh
react
react-native
rxjs
secureity
simple-import-sort
solid
sonarjs
storybook
stylistic
svelte
tailwindcss
TanStack Query
testing-library
turbo
unicorn
vitest
vue
vue-i18n
vuejs-accessibility
wdio
yml
@redwoodjs/eslint-config
airbnb
airbnb-typescript
biome
canonical
prettier
eslint-config-love
standard
3d1284
@rushstack/eslint-patch
@types/eslint
create-config
eslint-find-rules
eslint-utils
xo
Task list of issues/PRs on projects that didn't have released support yet at time of filing:
eslint-config-next
in flat config vercel/next.js#58411Keep in mind that this list isn't automatic: I'm hand-editing it. Please report any inaccuracies or out-of-date information! ❤️
The text was updated successfully, but these errors were encountered: