X Tutup
Skip to content

Support ESLint 10#17796

Merged
nicolo-ribaudo merged 7 commits intobabel:mainfrom
JLHwung:eslint-10-support
Feb 15, 2026
Merged

Support ESLint 10#17796
nicolo-ribaudo merged 7 commits intobabel:mainfrom
JLHwung:eslint-10-support

Conversation

@JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Feb 13, 2026

Q                       A
Fixed Issues? Fixes #17791
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

So far the only breaking change that I can observe is that ESTree now handles the range of Program node as same as we do, i.e. start the program at the start of the first leading comments of a program. This is nice as we can further remove logics from the convert layer when we drop ESLint 9 support.

However, the TSESLint parser still do it in the ESLint 9 fashion, so we have to copy the location adjustment logic to the integration test files.

This PR also add an ESLint 9 test job, mostly copied from the removed files in #17766.

@babel-bot
Copy link
Collaborator

babel-bot commented Feb 13, 2026

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/60899

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 13, 2026

Open in StackBlitz

commit: 6809a4d

@JLHwung JLHwung marked this pull request as ready for review February 13, 2026 21:31
@nicolo-ribaudo
Copy link
Member

Should we also backport this? I imagine that upgrading ESLint and Babel at the same time for users would be quite a big step.

@liuxingbaoyu
Copy link
Member

Should we also backport this? I imagine that upgrading ESLint and Babel at the same time for users would be quite a big step.

It seems that eslint-scope v9 does not support older versions of Node.js.

@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Bug Fix 🐛 A type of pull request used for our changelog categories PR: Bug Fix (next major) 🐛 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

babel/eslint parser failing with ESLint 10

4 participants

X Tutup