Remove space in empty object type (#19583)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-07-09 17:34:22 +08:00
1 parent 6394c73209
commit cbee7377a1
10 files changed
+237 -11

No files matched your search

+20
View File
@@ -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 */};
```