query
query copied to clipboard
ESLint Plugin: Flat Config Support
Describe the bug
eslint-plugin-query does not yet support the new Flat Config format
Your minimal, reproducible example
https://github.com/davidjbng/eslint-plugin-query-v9-example
Steps to reproduce
- Checkout https://github.com/davidjbng/eslint-plugin-query-v9-example
- Follow https://eslint.org/docs/latest/use/configure/migration-guide to add Flat Config support
Expected behavior
eslint-plugin-query works with Flat Config
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
not relevant
Tanstack Query adapter
None
TanStack Query version
v5.40.1
TypeScript version
No response
Additional context
ESLint V9 support is adressed in https://github.com/TanStack/query/pull/7543
I did some inital work to export a flat/recommended
config earlier which seemed to work, but a bit more testing was still needed. See https://github.com/TanStack/query/compare/main...davidjbng:query:eslint-v9-flat-config
Resources
- https://eslint.org/docs/latest/use/configure/migration-guide
- https://eslint.org/docs/latest/extend/plugin-migration-flat-config#migrating-rules-for-flat-config