# What changed in @tanstack/eslint-plugin-query

> 19 changes in @tanstack/eslint-plugin-query 5 from its official release notes, upgrade guides and advisories: 2 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@tanstack/eslint-plugin-query/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @tanstack/eslint-plugin-query 5

### Breaking changes

- The rule now flags rest destructuring on custom hooks that return a TanStack Query result when typed linting is enabled. (5.101.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.101.0)
- The rule reports member expression dependencies more granularly for call expressions, which may cause existing code to report missing dependencies. (5.95.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.95.0)

### New APIs and options

- Adds the recommendedStrict configuration. (5.96.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.96.0)
- The rule accepts an allowlist option with variables and types arrays to exclude specific dependencies from enforcement. (5.95.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.95.0)

### Behavior and default changes

- Function call targets are no longer required in query keys, while values referenced in nested callbacks are still checked. (5.101.4) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.101.4)

### Tooling

- The plugin is compatible with TypeScript 7. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.102.0)
- The plugin supports ESLint v10, allowing developers using that version to use the plugin. (5.97.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.97.0)
- Adds the prefer-query-options ESLint rule. (5.96.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.96.0)

### Fixes and other changes

- Detects unstable query dependencies in aliased React hooks imported from react. (5.104.4) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.104.4)
- Fixes false-positive warnings caused by Object.prototype property lookups such as toString and valueOf. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.102.0)
- The rule now handles array-destructured useQueries and useSuspenseQueries results. (5.100.12) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.100.12)
- The rule no longer reports false positives for useSuspenseQueries results returned from combine. (5.100.12) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.100.12)
- Fixes a false positive on enum returns for TypeScript 6. (5.99.1) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.99.1)
- Whitespace is normalized when matching allowList variables in multiline expressions. (5.96.2) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.96.2)
- Resolves an issue about the excluded build directory. (5.94.5) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.94.5)
- 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.5) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.91.5)
- 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.4) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.91.4)
- Fixed the exhaustive-deps rule for Vue files. (5.91.3) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.91.3)
- The no-unstable-deps rule now allows useQueries with the combine property. (5.91.2) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/eslint-plugin-query%405.91.2)
