Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@tanstack/eslint-plugin-query@4 incompatible with ESLint v9 #8681

Open
funktr0n opened this issue Feb 21, 2025 · 0 comments
Open

@tanstack/eslint-plugin-query@4 incompatible with ESLint v9 #8681

funktr0n opened this issue Feb 21, 2025 · 0 comments

Comments

@funktr0n
Copy link

funktr0n commented Feb 21, 2025

Describe the bug

When trying to install @tanstack/eslint-plugin-query@4 from npm in a project that uses ESLint v9, I'm unable to install without --force or --legacy-peer-deps due to a dependency mismatch.

Additionally, if I try to install the plugin (via one of the flags above) and use it, I get TypeError: t.getAncestors is not a function or its return value is not iterable from ESLint.

Our team has just upgraded to React 18 and are now looking to upgrade React Query to v5 as well, so this plugin would be really helpful to move that initiative along

Your minimal, reproducible example

N/A

Steps to reproduce

  1. Create a project with ESLint v9
  2. run npm install -D @tanstack/eslint-plugin-query@4

Expected behavior

I expected the plugin to install without issue and to be used by ESLint v9

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: Windows
  • NPM: 10.8.2

Tanstack Query adapter

None

TanStack Query version

v4.0.10

TypeScript version

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant