Don't treat Flow inexact tuples as empty (#18616)
This commit is contained in:
1 parent
09ce948ee3
commit
3b9ecca4d9
4 files changed
+127
-18
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#### Improve comment format in inexact tuples (#18616 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
type A = [// comment
|
||||
...];
|
||||
type B = [/* comment */...];
|
||||
|
||||
// Prettier stable
|
||||
type A = [...
|
||||
// comment
|
||||
];
|
||||
type B = [...
|
||||
/* comment */
|
||||
];
|
||||
|
||||
// Prettier main
|
||||
type A = [
|
||||
...// comment
|
||||
];
|
||||
type B = [.../* comment */];
|
||||
```
|
||||
Reference in new issue
Block a user