-
-
Notifications
You must be signed in to change notification settings - Fork 93
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 9 and Flat config #449
Comments
Want to try and work on this a bit. Trying to follow the pattern in eslint-plugin-n
usage in flat file is something like:
but when actually linting say The line of code is here. So, not quite sure why this is happening. |
Some of the APIs have been dropped in ESLint 9. |
Heads up that the above link sends us to the older docs (at this time). Maybe this link instead? https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/#context.getancestors() |
Sure, I just meant the older docs for the fact that it had already been deprecated and a replacement was indicated there too. But yours is presumably even more current. |
Just one more note that the above example code does work for eslint v8. So, may be helpful for anyone wanting to use flat config in V8. |
+1 to this support |
eslint v9 has just been released and support for v9 would be greatly appreciated |
I'll try to find time to implement this if no-one beats me to it 👍 |
FYI. The rules that I had to disable to have eslint succeed are:
|
Hi guys, are there any plans to support flat config? |
Yes, just not a definite timeline |
It's possible to make the current version of the promise plugin work in an ESLint v9 flag configuration file using In my case I made these changes to import { FlatCompat } from '@eslint/eslintrc'
import { fixupConfigRules } from '@eslint/compat'
const compat = new FlatCompat()
export default [
/*
To make the promise plugin work with ESLint v9 we have to use
1. fixupConfigRules to fix obsolete rules API usages
2. FlatCompat to convert the plugin's config format to the v9 flat format
*/
...fixupConfigRules(
compat.config({
extends: ['plugin:promise/recommended'],
ignorePatterns: ['tests/e2e']
})
),
// other config objects
] |
🎉 This issue has been resolved in version 6.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you! |
Description
Please add support for ESLint 9, including Flat config support.
See:
Thanks!
The text was updated successfully, but these errors were encountered: