This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 different reformatting for comments in default switch clause #4254
Labels
A-Formatter
Area: formatter
L-JavaScript
Langauge: JavaScript
S-Bug: confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
The following code:
is formatted to:
is itself formatted to:
This triggers a reformat failure on
cargo test
.Note that comments are also reordered:
//comment5b
should come after// comment5a
.EDIT: this does not affect switch case clauses.
Expected result
Reformatting the code should not change the formatting.
This is blocking #4234.
Code of Conduct
The text was updated successfully, but these errors were encountered: