Replies: 4 comments 10 replies
|
Until the files are updated to support the new config system, you can utilize the plugin this way: |
5 replies
|
Thanks for posting this. I have read all the blogposts and docs, but I'm still unsure what we need to do in order to support the flat config in a backwards compatible way. Our plugin exports |
5 replies
|
Is it implemented? |
0 replies
|
It's working with the latest docs updates: https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query#flat-config-eslintconfigjs import pluginQuery from '@tanstack/eslint-plugin-query'
export default [
...pluginQuery.configs['flat/recommended'],
// Any other config...
] |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The eslint flat config is the new recommended approach. I hope the
@tanstack/eslint-plugin-querycould also support the new flat config.More context:
From
v8.21.0, eslint announced a new config system.In the new system,
.eslintrc*is no longer used.eslint.config.jswould be the default config file name.In eslint
v8, the legacy system (.eslintrc*) would still be supported, while in eslintv9, only the new system would be supported.And from
v8.23.0, eslint CLI starts to look upeslint.config.js.So, if your eslint is
>=8.23.0, you're 100% ready to use the new config system.You might want to check out the official blog posts,
and the official docs.
All reactions