-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JS
Description
Prettier pr-9857
Playground link
--parser babelInput:
for(/*a*/;/*a*/;/*a*/);
for(/*a*/a;/*a*/;/*a*/);
for(/*a*/;a/*a*/;/*a*/);
for(/*a*/;/*a*/;a/*a*/);Output:
/*a*/
/*a*/
/*a*/
for (;;);
for (/*a*/ a /*a*/ /*a*/; ; );
for (; /*a*/ a /*a*/ /*a*/; );
for (; ; /*a*/ /*a*/ a /*a*/);Expected behavior:
Comments should stay at the original position.
Maybe we can use a solution like #9857
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JS