Skip to content

Support @babel/eslint-parser v8#221

Open
aklkv wants to merge 3 commits into
ember-tooling:mainfrom
aklkv:support-babel-8-eslint-parser
Open

Support @babel/eslint-parser v8#221
aklkv wants to merge 3 commits into
ember-tooling:mainfrom
aklkv:support-babel-8-eslint-parser

Conversation

@aklkv

@aklkv aklkv commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

v8 removed the /experimental-worker subpath, which left babelParser null and produced a misleading 'requires @babel/eslint-parser' error on .gjs/.gts files. Fall back to the package main entry (same synchronous parseForESLint) and widen the peer range to ^7.28.6 || ^8.0.0.

v8 removed the /experimental-worker subpath, which left babelParser null
and produced a misleading 'requires @babel/eslint-parser' error on .gjs/.gts
files. Fall back to the package main entry (same synchronous parseForESLint)
and widen the peer range to ^7.28.6 || ^8.0.0.

@NullVoxPopuli NullVoxPopuli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add test coverage for this?

And see if those ci failures are caused by this change?

Comment thread package.json Outdated
"repository": {
"type": "git",
"url": "git@github.com:ember-tooling/ember-eslint-parser.git"
"url": "git+https://github.com/ember-tooling/ember-eslint-parser.git"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lint:package was complaning about it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you put this in a separate pr please?

@aklkv aklkv requested a review from NullVoxPopuli June 21, 2026 09:50
Comment thread tests/babel-parser-resolution.test.js Outdated

@NullVoxPopuli NullVoxPopuli Jun 21, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't really want to test that resolution works - that's easy

We want to test that someone can actually use babel 8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

And this test only tests what's in the test file

@aklkv aklkv force-pushed the support-babel-8-eslint-parser branch from 9e82091 to f3b8146 Compare June 22, 2026 07:54
@aklkv aklkv force-pushed the support-babel-8-eslint-parser branch from f3b8146 to 2fae91f Compare June 22, 2026 07:58
@aklkv aklkv requested a review from NullVoxPopuli June 22, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants