Skip to content

Bump eslint from 9.39.4 to 10.2.0#30

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/eslint-10.2.0
Closed

Bump eslint from 9.39.4 to 10.2.0#30
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/eslint-10.2.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 6, 2026

Bumps eslint from 9.39.4 to 10.2.0.

Release notes

Sourced from eslint's releases.

v10.2.0

Features

  • 586ec2f feat: Add meta.languages support to rules (#20571) (Copilot)
  • 14207de feat: add Temporal to no-obj-calls (#20675) (Pixel998)
  • bbb2c93 feat: add Temporal to ES2026 globals (#20672) (Pixel998)

Bug Fixes

  • 542cb3e fix: update first-party dependencies (#20714) (Francesco Trotta)

Documentation

  • a2af743 docs: add language to configuration objects (#20712) (Francesco Trotta)
  • 845f23f docs: Update README (GitHub Actions Bot)
  • 5fbcf59 docs: remove sourceType from ts playground link (#20477) (Tanuj Kanti)
  • 8702a47 docs: Update README (GitHub Actions Bot)
  • ddeaded docs: Update README (GitHub Actions Bot)
  • 2b44966 docs: add Major Releases section to Manage Releases (#20269) (Milos Djermanovic)
  • eab65c7 docs: update eslint versions in examples (#20664) (루밀LuMir)
  • 3e4a299 docs: update ESM Dependencies policies with note for own-usage packages (#20660) (Milos Djermanovic)

Chores

  • 8120e30 refactor: extract no unmodified loop condition (#20679) (kuldeep kumar)
  • 46e8469 chore: update dependency markdownlint-cli2 to ^0.22.0 (#20697) (renovate[bot])
  • 01ed3aa test: add unit tests for unicode utilities (#20622) (Manish chaudhary)
  • 811f493 ci: remove --legacy-peer-deps from types integration tests (#20667) (Milos Djermanovic)
  • 6b86fcf chore: update dependency npm-run-all2 to v8 (#20663) (renovate[bot])
  • 632c4f8 chore: add prettier update commit to .git-blame-ignore-revs (#20662) (루밀LuMir)
  • b0b0f21 chore: update dependency eslint-plugin-regexp to ^3.1.0 (#20659) (Milos Djermanovic)
  • 228a2dd chore: update dependency eslint-plugin-eslint-plugin to ^7.3.2 (#20661) (Milos Djermanovic)
  • 3ab4d7e test: Add tests for eslintrc-style keys (#20645) (kuldeep kumar)

v10.1.0

Features

  • ff4382b feat: apply fix for no-var in TSModuleBlock (#20638) (Tanuj Kanti)
  • 0916995 feat: Implement api support for bulk-suppressions (#20565) (Blake Sager)

Bug Fixes

  • 2b8824e fix: Prevent no-var autofix when a variable is used before declaration (#20464) (Amaresh S M)
  • e58b4bf fix: update eslint (#20597) (renovate[bot])

Documentation

  • b7b57fe docs: use correct JSDoc link in require-jsdoc.md (#20641) (mkemna-clb)
  • 58e4cfc docs: add deprecation notice partial (#20639) (Milos Djermanovic)
  • 7143dbf docs: update v9 migration guide for @eslint/js usage (#20540) (fnx)
  • 035fc4f docs: note that globalReturn applies only with sourceType: "script" (#20630) (Milos Djermanovic)
  • e972c88 docs: merge ESLint option descriptions into type definitions (#20608) (Francesco Trotta)
  • 7f10d84 docs: Update README (GitHub Actions Bot)
  • aeed007 docs: open playground link in new tab (#20602) (Tanuj Kanti)
  • a0d1a37 docs: Add AI Usage Policy (#20510) (Nicholas C. Zakas)

Chores

... (truncated)

Commits

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 6, 2026
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.4 to 10.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v9.39.4...v10.2.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.2.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/eslint-10.2.0 branch from 4c286e6 to d904d5f Compare April 6, 2026 18:35
@jonathanperis
Copy link
Copy Markdown
Owner

Investigation Results — Closing as Premature

I investigated this fully. The upgrade to ESLint v10 cannot succeed yet due to an unresolved upstream issue.

Root Cause

ESLint v10 removed context.getFilename() (deprecated since v8). The copy of eslint-plugin-react bundled inside eslint-config-next still calls contextOrFilename.getFilename() in lib/util/version.js:31, causing a hard crash:

TypeError: Error while loading rule 'react/display-name': contextOrFilename.getFilename is not a function

Upstream Status

Package Version Status
eslint-plugin-react 7.37.5 (latest) No eslint v10 support — peerDeps cap at ^9.7
eslint-config-next 16.2.2 (latest) Bundles eslint-plugin-react@^7.37.0, no v10-compatible version available

The fix exists in two open/draft PRs on jsx-eslint/eslint-plugin-react:

  • #3972 (DRAFT, "Changes requested"): changes context.getFilename()context.filename in version.js and jsx-filename-extension.jsthis is the actual runtime fix needed
  • #3979 (Open): follow-up that only updates CI config and peerDep declaration — does not include the runtime fix

Neither PR has been merged or released. The vercel/next.js issue tracker is tracking this at #89764 (still open).

Why npm overrides Won't Help

The crash comes from eslint-config-next's own nested copy of the plugin (eslint-config-next/node_modules/eslint-plugin-react). Even forcing a top-level override would leave the nested copy intact. A proper fix requires eslint-config-next itself to be updated once the upstream plugin ships a patched release.

Recommendation

Close this PR and re-open once eslint-plugin-react >= 7.37.6 (or a new minor) ships with the context.filename fix and eslint-config-next picks it up. Track upstream at:

@jonathanperis
Copy link
Copy Markdown
Owner

Closing as premature — see investigation comment above. Will need to reopen once eslint-plugin-react ships eslint v10 support and eslint-config-next picks it up.

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Apr 6, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/eslint-10.2.0 branch April 6, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant