JS: Fix multiple-comments-on-same-line format (#9672)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
This commit is contained in:
1 parent
05d20a63a4
commit
f59eacd7f6
7 files changed
+949
-17
No files matched your search
@@ -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;
|
||||
```
|
||||
Reference in new issue
Block a user