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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
368 B
Markdown
Raw Normal View History

#### Don't force empty array and object with short comments to break (#18617 by @fisker)
<!-- prettier-ignore -->
```jsx
// Input
const array = [/* comment */]
const object = {/* comment */}
// Prettier stable
const array = [
/* comment */
];
const object = {
/* comment */
};
// Prettier main
const array = [/* comment */];
const object = {/* comment */};
```