Back to Prettier

18617

changelog_unreleased/javascript/18617.md

3.9.0335 B
Original Source

Don't force empty array and object with short comments to break (#18617 by @fisker)

<!-- prettier-ignore -->
jsx
// Input
const array = [/* comment */]
const object =

// Prettier stable
const array = [
  /* comment */
];
const object = {
  /* comment */
};

// Prettier main
const array = [/* comment */];
const object =;