Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 392 Bytes

File metadata and controls

22 lines (19 loc) · 392 Bytes

Prefer a trailing comment when comment on between test and consequent on ternary (#8554 by @sosukesuzuki)

// Input
test
  // comment
  ? foo
  : bar;

// Prettier (stable)
test
  ? // comment
    foo
  : bar;

// Prettier (master)
test
  // comment
  ? foo
  : bar;