Back to Prettier

19581

changelog_unreleased/javascript/19581.md

3.9.5247 B
Original Source

Handle dangling comments in SwitchStatement (#19581 by @fisker)

<!-- prettier-ignore -->
jsx
// Input
switch (foo) {
 // comment
}

// Prettier stable
switch (
  foo
  // comment
) {
}

// Prettier main
switch (foo) {
  // comment
}