query icon indicating copy to clipboard operation
query copied to clipboard

ESLint Plugin: Flat Config Support

Open davidjbng opened this issue 8 months ago • 1 comments

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

  1. Checkout https://github.com/davidjbng/eslint-plugin-query-v9-example
  2. 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

davidjbng avatar Jun 10 '24 11:06 davidjbng