Skip to content

Comments

feat(eslint-plugin-query): add ESLint v10 to peer dependencies#10182

Open
lbo728 wants to merge 2 commits intoTanStack:mainfrom
lbo728:feat/eslint-plugin-query-support-eslint-v10
Open

feat(eslint-plugin-query): add ESLint v10 to peer dependencies#10182
lbo728 wants to merge 2 commits intoTanStack:mainfrom
lbo728:feat/eslint-plugin-query-support-eslint-v10

Conversation

@lbo728
Copy link

@lbo728 lbo728 commented Feb 24, 2026

🎯 Changes

ESLint v10 was released in February 2026. This PR adds ESLint v10 to the peerDependencies of @tanstack/eslint-plugin-query to officially declare compatibility.

The plugin's core dependency @typescript-eslint/utils already supports ESLint v10 (^8.57.0 || ^9.0.0 || ^10.0.0), so no source code changes are required — only the peer dependency range needs to be updated.

Closes #10141

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Chores
    • Extended ESLint plugin compatibility to support ESLint v10 in addition to v8 and v9.
    • Updated underlying tooling dependency to a newer TypeScript ESLint utilities release to ensure compatibility and stability.

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

🦋 Changeset detected

Latest commit: 8d90510

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tanstack/eslint-plugin-query Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b6ee8ed and 8d90510.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • packages/eslint-plugin-query/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/eslint-plugin-query/package.json

📝 Walkthrough

Walkthrough

Adds a changeset and updates the eslint-plugin-query package to declare compatibility with ESLint v10 and bumps @typescript-eslint/utils.

Changes

Cohort / File(s) Summary
Changeset
.changeset/eslint-plugin-query-eslint-v10.md
Adds a new changeset marking a patch release and noting ESLint v10 added to peer dependencies.
Package manifest
packages/eslint-plugin-query/package.json
Bumps @typescript-eslint/utils from ^8.48.0 to ^8.56.0 and extends peerDependencies.eslint from `^8.57.0

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • lachlancollins
  • TkDodo

Poem

🐰 A linting breeze hops through the trees,
v10 arrives on agile feet,
I nudge a manifest, tweak and please,
Small changes made — the codebase neat,
Hooray for tidy builds and treats!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately describes the main change: adding ESLint v10 to peer dependencies.
Description check ✅ Passed The PR description follows the template with all required sections completed, including motivation, checklist items, and release impact declaration.
Linked Issues check ✅ Passed The PR successfully addresses issue #10141 by updating the eslint peerDependency to include ^10.0.0 and updating @typescript-eslint/utils to ^8.56.0 for ESLint v10 compatibility.
Out of Scope Changes check ✅ Passed All changes are directly related to adding ESLint v10 support: peer dependency update and @typescript-eslint/utils bump with appropriate changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/eslint-plugin-query/package.json (1)

62-62: ⚠️ Potential issue | 🟠 Major

Bump @typescript-eslint/utils minimum to ^8.56.0 to match declared ESLint v10 support

This package declares ESLint v10 compatibility in peerDependencies ("eslint": "^8.57.0 || ^9.0.0 || ^10.0.0"), but @typescript-eslint/utils v8.48.0–v8.55.x do not support ESLint v10 in their own peerDependencies (they cap at "eslint": "^8.57.0 || ^9.0.0"). Only v8.56.0 introduced ESLint v10 support. A consumer with a deduplicated lockfile using an older patch version while installing ESLint v10 will encounter a peerDependency conflict despite the package claiming compatibility.

Proposed fix
-    "@typescript-eslint/utils": "^8.48.0"
+    "@typescript-eslint/utils": "^8.56.0"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/eslint-plugin-query/package.json` at line 62, The package.json
currently pins "@typescript-eslint/utils": "^8.48.0", which allows installing
versions that lack ESLint v10 peer support; update the dependency to
"@typescript-eslint/utils": "^8.56.0" (or higher) in package.json to ensure
ESLint v10 is supported, then regenerate the lockfile (npm/yarn/pnpm install)
and run the test/lint pipeline to validate no new peer conflicts.
🧹 Nitpick comments (1)
packages/eslint-plugin-query/package.json (1)

64-69: Bump devDependencies.eslint to cover ESLint v10 so the declared peerDependency is actually tested

The dev/test environment still pins eslint to ^9.36.0. ESLint v10.0.0 was released on 06 Feb 2026 as a major release that includes several breaking changes. Running the test suite only against ESLint v9 means the newly declared ^10.0.0 peer compatibility is untested. Consider updating the devDependencies to ^10.0.0 (or adding a matrix CI job that also runs against ESLint v10).

📦 Proposed fix
-    "eslint": "^9.36.0",
+    "eslint": "^10.0.0",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/eslint-plugin-query/package.json` around lines 64 - 69, Update the
dev/test environment to actually test ESLint v10 by changing the "eslint" entry
under devDependencies in package.json from "^9.36.0" to "^10.0.0" (i.e., bump
devDependencies.eslint) and run the test suite to confirm compatibility;
alternatively, add a CI matrix job that runs tests against both "^9.x" and
"^10.x" to ensure the declared peerDependency is covered.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@packages/eslint-plugin-query/package.json`:
- Line 62: The package.json currently pins "@typescript-eslint/utils":
"^8.48.0", which allows installing versions that lack ESLint v10 peer support;
update the dependency to "@typescript-eslint/utils": "^8.56.0" (or higher) in
package.json to ensure ESLint v10 is supported, then regenerate the lockfile
(npm/yarn/pnpm install) and run the test/lint pipeline to validate no new peer
conflicts.

---

Nitpick comments:
In `@packages/eslint-plugin-query/package.json`:
- Around line 64-69: Update the dev/test environment to actually test ESLint v10
by changing the "eslint" entry under devDependencies in package.json from
"^9.36.0" to "^10.0.0" (i.e., bump devDependencies.eslint) and run the test
suite to confirm compatibility; alternatively, add a CI matrix job that runs
tests against both "^9.x" and "^10.x" to ensure the declared peerDependency is
covered.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eb7dca5 and b6ee8ed.

📒 Files selected for processing (2)
  • .changeset/eslint-plugin-query-eslint-v10.md
  • packages/eslint-plugin-query/package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eslint-plugin-query: support eslint v10

1 participant