Skip to content

Fix misplacement of comments from after an arrow to before it #17421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

o-m12a
Copy link
Contributor

@o-m12a o-m12a commented May 2, 2025

closes: #11100

Description

Just applied a correction suggested in #11100 (comment) (thanks, @t-mangoe).

Note

I also wrote detailed conditions to reproduce this issue in #11100 (comment).

Checklist

  • I’ve added tests to confirm my change works.
  • I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

Copy link

pkg-pr-new bot commented May 2, 2025

Open in StackBlitz

npm i https://pkg.pr.new/prettier@17421

commit: dbd61d3

Copy link

netlify bot commented May 2, 2025

Deploy Preview for prettier ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit dbd61d3
🔍 Latest deploy log https://app.netlify.com/sites/prettier/deploys/68199605153c6800082e32ca
😎 Deploy Preview https://deploy-preview-17421--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 site configuration.

@o-m12a o-m12a marked this pull request as ready for review May 2, 2025 09:51
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.

Formatting arrow function with comments results in syntax error
1 participant