Skip to content

Keep a one-line block comment inline after : and ... - #20213

Open
Yahiro025 wants to merge 4 commits into
prettier:mainfrom
Yahiro025:fix/own-line-block-comment-separator
Open

Yahiro025 wants to merge 4 commits into
prettier:mainfrom
Yahiro025:fix/own-line-block-comment-separator

Conversation

@Yahiro025

@Yahiro025 Yahiro025 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #20174.

Description

An own-line block comment between : and a type, or between ... and a spread argument, broke on the first format and joined on the second. The stable result is the joined form (let a: /* c */ T, f(.../* c */ a)). A block comment that itself spans lines is unchanged.

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.
  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

An own-line block comment in those positions used to break on the first format and join on the second.
@agentscanapp

agentscanapp Bot commented Oct 3, 2026

Copy link
Copy Markdown

Automation signals

Activity patterns show signs of automation.

View full analysis →

Report this account →

Evidence
  • Fork spike detected: Burst of 15 fork events in a single 24-hour window
  • Closed PRs across many repositories: 17 PRs were closed across 16 repositories in 13d.
  • Distributed PR pattern: 79 PRs spread across 61 different repositories (35.1 PRs/week)

Last 5 PRs:

This is an automated analysis by AgentScan

@netlify

netlify Bot commented Oct 3, 2026

Copy link
Copy Markdown

✅ Deploy Preview for prettier ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5e40e8e
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/6ac086045c6a060008e01740
😎 Deploy Preview https://deploy-preview-20213--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@pkg-pr-new

pkg-pr-new Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

yarn add https://pkg.pr.new/@prettier/[email protected]
yarn add https://pkg.pr.new/@prettier/[email protected]
yarn add https://pkg.pr.new/@prettier/[email protected]
yarn add https://pkg.pr.new/[email protected]

commit: 4436ffa

@netlify

netlify Bot commented Oct 3, 2026

Copy link
Copy Markdown

✅ Deploy Preview for prettier ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6888d3c
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/6ac08628de0d6c00085e380a
😎 Deploy Preview https://deploy-preview-20213--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@netlify

netlify Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for prettier ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b48e15c
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/6ac0f7f527664e0008a24875
😎 Deploy Preview https://deploy-preview-20213--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Own-line block comment after a type annotation's : or after ... is unstable

1 participant