You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are using “@tanstack/query v4”.
If so, is “@tanstack/eslint-plugin-query” also using v4?
To reproduce your issue, I lowered both “@tanstack/query” and “@tanstack/eslint-plugin-query” to v4 and it was reproducible.
In that case, I think you should refer to the documentation for v4, not v5.
Describe the bug
The instruction on using the Flat Config recommended rules seems not to be compatible with Eslint v9.x:
Running
npm run lint
gives:Your minimal, reproducible example
not required
Steps to reproduce
Here's my
eslint.config.js
file:Expected behavior
The command
npm run lint
should lint the entire files having React query linting rules in consideration.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Ubuntu 24.04, Linux.
Tanstack Query adapter
react-query
TanStack Query version
v4.36.1
TypeScript version
v5.6.3
Additional context
I've tried adding them manually like this:
but I'm getting:
The text was updated successfully, but these errors were encountered: