Files
test-repo/changelog_unreleased/javascript/pr-8111.md
T
fisker Cheung e69e90f067 Fix object trailing commas that last property is ignored (#8111)
* Add failed tests

* Fix trailing commas when last property is ignored

* Add changelog

* Add nested tests

* changelog title
2020-04-25 17:54:10 +03:00

398 B

Fix object trailing commas that last property is ignored (#8111 by @fisker)

// Input
const foo = {
  // prettier-ignore
  bar: "baz"
}

// Prettier stable
const foo = {
  // prettier-ignore
  bar: "baz"
};

// Prettier master
const foo = {
  // prettier-ignore
  bar: "baz",
};