Files
test-repo/changelog_unreleased/javascript/pr-8731.md
T

472 B

Fix unstable pair of comments between class methods (#8731 by @fisker)

// Input
class C {
    ma() {} /* D */ /* E */
    mb() {}
}

// Prettier stable
class C {
  ma() {} /* E */ /* D */
  mb() {}
}

// Prettier stable (Second format)
class C {
  ma() {} /* D */ /* E */
  mb() {}
}

// Prettier master
class C {
  ma() {} /* D */ /* E */
  mb() {}
}