Back to Prettier

19262

changelog_unreleased/javascript/19262.md

3.9.0296 B
Original Source

Fix unstable comment in arrow function with assignment expression body (#19262 by @itsybitsybootsy)

<!-- prettier-ignore -->
jsx
// Input
const fn = () => (a = b /* abc */);

// Prettier stable
const fn = () => (a = b) /* abc */;

// Prettier main
const fn = () => (a = b /* abc */);