JS: Fix multiple-comments-on-same-line format (#9672)

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
This commit is contained in:
fisker CheungandGeorgii Dolzhykov authored and GitHub committed 2020-11-30 13:51:49 +08:00
1 parent 05d20a63a4
commit f59eacd7f6
7 files changed
+949 -17

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#### Improve comment format (#9672 by @fisker)
When multiple comments on same line, the result became unstable.
<!-- prettier-ignore -->
```jsx
// Input
a;
/*1*//*2*/
/*3*/
b;
// Prettier stable
a; /*2*/
/*1*/ /*3*/
b;
// Prettier stable (second format)
a; /*2*/ /*3*/
/*1*/ b;
// Prettier master
a;
/*1*/ /*2*/
/*3*/
b;
```