Files
test-repo/changelog_unreleased/javascript/18963.md
T

411 B

Fix duplicated comments in empty branches with experimentalTernaries (#18963 by @kovsu)

// Input
condition ? ifTrue
: [
    // Hello, world!
  ];

// Prettier stable (--experimental-ternaries)
condition ? ifTrue
  // Hello, world!
: (
  [
    // Hello, world!
  ]
);

// Prettier main (--experimental-ternaries)
condition ? ifTrue : (
  [
    // Hello, world!
  ]
);