Back to Prettier

19180

changelog_unreleased/javascript/19180.md

3.9.0280 B
Original Source

Fix multiline JSDoc-style comment alignment in assignments (#19180 by @kovsu)

<!-- prettier-ignore -->
jsx
// Input
const foo = /**
 * comment
 */ bar;

// Prettier stable
const foo = /**
 * comment
 */ bar;

// Prettier main
const foo =
  /**
   * comment
   */ bar;