FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Disallow decorators on abstract/declare fields by nicolo-ribaudo · Pull Request #17949 · babel/babel · GitHub

/ babel Public

Disallow decorators on abstract/declare fields - #17949

Merged
nicolo-ribaudo merged 3 commits into
babel:mainfrom
nicolo-ribaudo:stricter-decorators
May 1, 2026
Merged

Disallow decorators on abstract/declare fields#17949
nicolo-ribaudo merged 3 commits into
babel:mainfrom
nicolo-ribaudo:stricter-decorators

Conversation

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

babel-bot commented Apr 24, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

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

pkg-pr-new Bot commented Apr 24, 2026
edited
Loading

Copy link
Copy Markdown

Open in StackBlitz

commit: 7469dd6

Copy link
Copy Markdown
Member Author

@fisker About the prettier failure, do you think you could change the test to either:

  • accept the recoverable error, or
  • use readonly instead of abstract?

nicolo-ribaudo force-pushed the stricter-decorators branch from d18ef0d to 7469dd6 Compare May 1, 2026 16:01

Copy link
Copy Markdown
Member Author

@fisker Actually, prettier should probably just ignore the DecoratorAbstractMethod error code (it's how I'm patching Prettier in our tests)

nicolo-ribaudo merged commit 67e82be into babel:main May 1, 2026
101 of 102 checks passed
nicolo-ribaudo deleted the stricter-decorators branch May 1, 2026 16:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: typescript pkg: parser PR: Spec Compliance 👓 A type of pull request used for our changelog categories Spec: Decorators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL