Skip to content

Prevent moving trailing comment in class properties#18837

Merged
fisker merged 4 commits intoprettier:mainfrom
fisker:trailing-property
Feb 2, 2026
Merged

Prevent moving trailing comment in class properties#18837
fisker merged 4 commits intoprettier:mainfrom
fisker:trailing-property

Conversation

@fisker
Copy link
Copy Markdown
Member

@fisker fisker commented Feb 2, 2026

Description

Fixes #18835

Fixes #9367

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

yarn add https://pkg.pr.new/@prettier/plugin-hermes@18837.tgz
yarn add https://pkg.pr.new/@prettier/plugin-oxc@18837.tgz
yarn add https://pkg.pr.new/prettier@18837.tgz

commit: a98b234

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 2, 2026

Deploy Preview for prettier ready!

Name Link
🔨 Latest commit a98b234
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/69807b4a865b4a0008cc8462
😎 Deploy Preview https://deploy-preview-18837--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fisker fisker merged commit 8e61378 into prettier:main Feb 2, 2026
38 checks passed
@fisker fisker deleted the trailing-property branch February 2, 2026 10:31
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.

Trailing comment after empty method signature moves before parentheses A comment on after parameter list moves before parameter list

1 participant