Skip to content

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

@funktr0n

Description

@funktr0n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions