Skip to content

Consistent formatting for "new expression" with type cast#18507

Merged
fisker merged 3 commits intoprettier:mainfrom
fisker:18406
Dec 21, 2025
Merged

Consistent formatting for "new expression" with type cast#18507
fisker merged 3 commits intoprettier:mainfrom
fisker:18406

Conversation

@fisker
Copy link
Member

@fisker fisker commented Dec 21, 2025

Description

Fixes #18406
Closes #18492

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

pkg-pr-new bot commented Dec 21, 2025

Open in StackBlitz

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

commit: 19e0355

@netlify
Copy link

netlify bot commented Dec 21, 2025

Deploy Preview for prettier ready!

Name Link
🔨 Latest commit 0852831
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/6947b00eb870b200085915db
😎 Deploy Preview https://deploy-preview-18507--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.

@netlify
Copy link

netlify bot commented Dec 21, 2025

Deploy Preview for prettier ready!

Name Link
🔨 Latest commit 19e0355
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/6947b06dd7e2d80008db436d
😎 Deploy Preview https://deploy-preview-18507--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 December 21, 2025 08:54
@fisker fisker merged commit 9bf7f1b into prettier:main Dec 21, 2025
35 checks passed
@fisker fisker deleted the 18406 branch December 21, 2025 08:54
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.

Format inconsistent with CallExpression and NewExpression breaking

1 participant