unstale

npm / @tanstack/eslint-plugin-query

@tanstack/eslint-plugin-query

What changed in @tanstack/eslint-plugin-query 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

2 breaking2 new APIs and options1 behavior and defaults3 tooling11 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

@tanstack/eslint-plugin-query 519 changes

Breaking changes 2

  • The rule now flags rest destructuring on custom hooks that return a TanStack Query result when typed linting is enabled.

    5.101.0release notes

  • The rule reports member expression dependencies more granularly for call expressions, which may cause existing code to report missing dependencies.

    5.95.0release notes

New APIs and options 2

  • Adds the recommendedStrict configuration.

    5.96.0release notes

  • The rule accepts an allowlist option with variables and types arrays to exclude specific dependencies from enforcement.

    5.95.0release notes

Behavior and default changes 1

  • Function call targets are no longer required in query keys, while values referenced in nested callbacks are still checked.

    5.101.4release notes

Tooling 3

  • The plugin is compatible with TypeScript 7.

    5.102.0release notes

  • The plugin supports ESLint v10, allowing developers using that version to use the plugin.

    5.97.0release notes

  • Adds the prefer-query-options ESLint rule.

    5.96.0release notes

Fixes and other changes 11

  • Detects unstable query dependencies in aliased React hooks imported from react.

    5.104.4release notes

  • Fixes false-positive warnings caused by Object.prototype property lookups such as toString and valueOf.

    5.102.0release notes

  • The rule now handles array-destructured useQueries and useSuspenseQueries results.

    5.100.12release notes

  • The rule no longer reports false positives for useSuspenseQueries results returned from combine.

    5.100.12release notes

  • Fixes a false positive on enum returns for TypeScript 6.

    5.99.1release notes

  • Whitespace is normalized when matching allowList variables in multiline expressions.

    5.96.2release notes

  • Resolves an issue about the excluded build directory.

    5.94.5release notes

  • Detects dependencies used inside nested queryFn callbacks and control flow, while avoiding false positives when they are already present in complex queryKey expressions.

    5.91.5release notes

  • TypeScript is declared as an optional peer dependency of the ESLint plugin, so it is not required for users who do not use TypeScript.

    5.91.4release notes

  • Fixed the exhaustive-deps rule for Vue files.

    5.91.3release notes

  • The no-unstable-deps rule now allows useQueries with the combine property.

    5.91.2release notes