Files
test-repo/changelog_unreleased/javascript/pr-8592.md
T
Sosuke Suzuki 02137069a7 JavaScript: Break ternary expressions containing a multi-line block comment (#8592)
* Break ternary expression when there is multiline block comment

* Add changelog
2020-06-21 17:02:58 +09:00

435 B

Break ternary expressions that include a multiline block comment (#8592 by @sosukesuzuki)

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

// Prettier stable
test ? /* comment
       comment
    */ foo : bar;

// Prettier master
test
  ? /* comment
       comment
    */
    foo
  : bar;