Skip to content

fix(formatter): should not insert a semicolon for non-property signatures when no semicolon is set#16700

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-10-fix_formatter_should_not_insert_a_semicolon_for_method_signatures_when_no_semicolon_is_set
Dec 11, 2025
Merged

fix(formatter): should not insert a semicolon for non-property signatures when no semicolon is set#16700
graphite-app[bot] merged 1 commit intomainfrom
12-10-fix_formatter_should_not_insert_a_semicolon_for_method_signatures_when_no_semicolon_is_set

Conversation

@Dunqing
Copy link
Copy Markdown
Member

@Dunqing Dunqing commented Dec 10, 2025

Prettier issue: prettier/prettier#14040

Only property signatures would conflict with the following signatures in some situations, so return early if the current signature is not a property when no-semi is set.

@github-actions github-actions bot added A-formatter Area - Formatter C-bug Category - Bug labels Dec 10, 2025
Copy link
Copy Markdown
Member Author

Dunqing commented Dec 10, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Dunqing Dunqing marked this pull request as ready for review December 10, 2025 14:27
@Dunqing Dunqing changed the title fix(formatter): should not insert a semicolon for method signatures when no semicolon is set fix(formatter): should not insert a semicolon for non-property signatures when no semicolon is set Dec 10, 2025
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Dec 10, 2025

CodSpeed Performance Report

Merging #16700 will not alter performance

Comparing 12-10-fix_formatter_should_not_insert_a_semicolon_for_method_signatures_when_no_semicolon_is_set (aceb727) with 12-10-feat_formatter_support_consistent_quote_props (afc2f6b)

Summary

✅ 38 untouched
⏩ 7 skipped1

Footnotes

  1. 7 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Dunqing Dunqing force-pushed the 12-10-fix_formatter_should_not_insert_a_semicolon_for_method_signatures_when_no_semicolon_is_set branch from 2c85bfc to aceb727 Compare December 10, 2025 14:35
@Dunqing Dunqing requested a review from leaysgur December 10, 2025 14:35
@graphite-app graphite-app bot changed the base branch from 12-10-feat_formatter_support_consistent_quote_props to graphite-base/16700 December 11, 2025 00:51
@leaysgur leaysgur added the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
Copy link
Copy Markdown
Member

leaysgur commented Dec 11, 2025

Merge activity

@graphite-app graphite-app bot changed the base branch from graphite-base/16700 to main December 11, 2025 00:58
…ures when no semicolon is set (#16700)

Prettier issue: prettier/prettier#14040

Only property signatures would conflict with the following signatures in some situations, so return early if the current signature is not a property when `no-semi` is set.
@graphite-app graphite-app bot force-pushed the 12-10-fix_formatter_should_not_insert_a_semicolon_for_method_signatures_when_no_semicolon_is_set branch from aceb727 to 2a63d74 Compare December 11, 2025 00:58
@graphite-app graphite-app bot merged commit 2a63d74 into main Dec 11, 2025
20 checks passed
@graphite-app graphite-app bot deleted the 12-10-fix_formatter_should_not_insert_a_semicolon_for_method_signatures_when_no_semicolon_is_set branch December 11, 2025 01:04
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-formatter Area - Formatter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants