Closed pcboy closed 3 months ago
I think this is a bug.
The plugins in the shared configs are indeed defined as a string[]
. For the .esm
export, this should be changed to an object as described in the error message you have posted.
I should have time to fix and test this on the weekend. Until then you should be able work around this by defining the rules manually.
import eslintPluginReadableTailwind from "eslint-plugin-readable-tailwind";
export default [{
plugins: {
"readable-tailwind": eslintPluginReadableTailwind
},
rules: {
"readable-tailwind/multiline": "warn",
"readable-tailwind/no-unnecessary-whitespace": "warn",
"readable-tailwind/sort-classes": "warn"
}
}]
https://eslint.org/blog/2024/04/eslint-v9.0.0-released/
Is there any plan to support eslint 9 flat config format?
Or is it already working and I'm missing it? I tried to do:
But then I get:
Seems like the format changed so I suppose there is no ESLint 9 support yet.