Files
test-repo/changelog_unreleased/javascript/18615-2.md
T

651 B

Improve comment handling around empty call argument list (#18615 by @fisker)

// Input
call
// line comment
();
call(// line comment
);
call(
  // line comment
);

call
/* block comment */
();
call(/* block comment */
);
call(
  /* block comment */
);

// Prettier stable
call();
// line comment
call(); // line comment
call();
// line comment

call();
/* block comment */
call /* block comment */();
call();
/* block comment */

// Prettier main
call
// line comment
();
call(
  // line comment
);
call(
  // line comment
);

call
/* block comment */
();
call(/* block comment */);
call(/* block comment */);