Skip to content

Keep comments after arrow in body#18775

Merged
fisker merged 6 commits intoprettier:mainfrom
fisker:arrow-body-comments
Jan 29, 2026
Merged

Keep comments after arrow in body#18775
fisker merged 6 commits intoprettier:mainfrom
fisker:arrow-body-comments

Conversation

@fisker
Copy link
Copy Markdown
Member

@fisker fisker commented Jan 29, 2026

Description

Fixes #14564
Fixes #14702

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 Jan 29, 2026

Open in StackBlitz

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

commit: bf5fcfd

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 29, 2026

Deploy Preview for prettier ready!

Name Link
🔨 Latest commit bf5fcfd
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/697ac7acbf87430008bc2061
😎 Deploy Preview https://deploy-preview-18775--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 marked this pull request as ready for review January 29, 2026 02:20
@fisker fisker marked this pull request as draft January 29, 2026 02:22
@fisker
Copy link
Copy Markdown
Member Author

fisker commented Jan 29, 2026

Set to draft as it changes #14702

@fisker fisker marked this pull request as ready for review January 29, 2026 02:41
@fisker fisker merged commit 229b862 into prettier:main Jan 29, 2026
36 checks passed
@fisker fisker deleted the arrow-body-comments branch January 29, 2026 02:41
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.

Comments at specific positions in arrow functions are printed at unexpected positions. JSdoc block moved inside previous function's arguments

1 participant