Skip to content

cleanup @ts-expect-error(Babel 7 vs Babel 8) comments (Part 1)#17651

Merged
JLHwung merged 4 commits intobabel:mainfrom
JLHwung:cleanup-ts-expect-error
Dec 12, 2025
Merged

cleanup @ts-expect-error(Babel 7 vs Babel 8) comments (Part 1)#17651
JLHwung merged 4 commits intobabel:mainfrom
JLHwung:cleanup-ts-expect-error

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Dec 10, 2025

Q                       A
Fixed Issues? Cleanup a few @ts-expect-error comments
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR cleans up a few @ts-expect-error comments introduced when we materialize the Babel 8 breaking flag.

There are still a few @ts-expect-error comments left in current codebase. They are due to the following typing changes from 7 to 8:

  • Super is extracted from Expression, but we tried to create Super as an LHS
  • VoidPattern is a valid id of the variable declarator, but we tried to create VoidPattern as an LHS

These typing errors are legitimate errors that we should handle, either by improving the transform logic or throwing a better error that we do not support certain super productions. Anyway I think they'd be better addressed in another PR.

@JLHwung JLHwung added the PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release label Dec 10, 2025
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Dec 10, 2025

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Dec 10, 2025

Open in StackBlitz

commit: 08bf3d2

@JLHwung JLHwung force-pushed the cleanup-ts-expect-error branch from 915d25f to a04e841 Compare December 11, 2025 17:28
@JLHwung JLHwung merged commit 6f8f3ee into babel:main Dec 12, 2025
54 checks passed
@JLHwung JLHwung deleted the cleanup-ts-expect-error branch December 12, 2025 13:30
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 14, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal (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.

4 participants