-
Notifications
You must be signed in to change notification settings - Fork 236
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 ESLint "flat" configs #1408
Comments
Yeah we've had #1245 open implementing support, but everytime I sit down to try to make sense of the new flat config the docs always seem to be missing parts (and it is still actively being worked on) - as you've said it's pretty easy to work around for now. Having said that it's been a while since I last looked at it, so I'll bump it up my todo list to try have another go next month. |
The new flat config docs are definitely missing parts, which is not helping the transition to the new flat config approach. The docs should be in line with the running code. |
Appreciate it! If there's anything I can do to help with testing / validation / etc, let me know. |
I've found this doc to be pretty solid for end-user usage. But to your point, for plugin authors it could use some work. |
@G-Rath This would be amazing to have, also would necesitate generating d.ts files upon build. |
Alpha for v9 is out, it's probably time to implement support: https://github.com/eslint/eslint/releases/tag/v9.0.0-alpha.0 |
I've created #1503 for adding flat config support - I'd appreciate folks trying it out (though might be better to do so near the end of the week once I've had a chance to update it with the latest v9 changes😅) Also fwiw it looks like there's now a FlatCompat class to help with migration. |
🎉 This issue has been resolved in version 27.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I searched through the issues for something similar, and didn't find anything related to supporting the new Flat Config. So I thought it would make sense to create this for tracking.
I'm currently building out a config using
eslint.config.js
and the new flat config structure. When using this plugin, I receive the following error:This is due to the fact that the shareable config defines
plugins
as a string array, rather than object:eslint-plugin-jest/src/index.ts
Lines 52 to 56 in 0b7c3e5
I'm able to work around it by constructing the config manually using the recommended rules:
The
eslint-plugin-react
andeslint-plugin-jsdoc
projects have updated to support this new config approach, if that helps with providing inspiration / examples.The text was updated successfully, but these errors were encountered: