Remove space in empty object type (#19583)
This commit is contained in:
1 parent
6394c73209
commit
cbee7377a1
10 files changed
+237
-11
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#### Remove space in comment-only object type (#19583 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```tsx
|
||||
// Input
|
||||
var foo = {
|
||||
/* comment */
|
||||
};
|
||||
type Foo = {
|
||||
/* comment */
|
||||
};
|
||||
|
||||
// Prettier stable
|
||||
var foo = {/* comment */};
|
||||
type Foo = { /* comment */ };
|
||||
|
||||
// Prettier main
|
||||
var foo = {/* comment */};
|
||||
type Foo = {/* comment */};
|
||||
```
|
||||
Reference in new issue
Block a user