Prettier 3.9.9
Example 1
Playground link
Input:
Output:
Second Output:
Example 2
Playground link
Input:
Output:
Second Output:
Expected output
let a: /* c */ T;
f(.../* c */ a);
Why?
The first format prints T on the next line without indentation, and breaks the call after .../* c */. The second format joins the lines.
Related: #11777 (a multi-line comment after a type).
Also reproduces on main (88d8e96).
Prettier 3.9.9
Example 1
Playground link
Input:
Output:
Second Output:
Example 2
Playground link
Input:
Output:
Second Output:
Expected output
Why?
The first format prints
Ton the next line without indentation, and breaks the call after.../* c */. The second format joins the lines.Related: #11777 (a multi-line comment after a type).
Also reproduces on
main(88d8e96).