Replies: 4 comments 10 replies
-
Until the files are updated to support the new config system, you can utilize the plugin this way:
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Is it implemented? |
Beta Was this translation helpful? Give feedback.
-
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...
] |
Beta Was this translation helpful? Give feedback.
-
The eslint flat config is the new recommended approach. I hope the
@tanstack/eslint-plugin-query
could 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.js
would 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.
Beta Was this translation helpful? Give feedback.
All reactions