Keep comment on the same line in property signature (#19688)
This commit is contained in:
1 parent
5a763f1525
commit
f5927d5199
7 files changed
+80
-21
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#### Keep comment on the same line in property signature (#19688 by @kovsu)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```tsx
|
||||
// Input
|
||||
interface A { property: /** Comment */
|
||||
B }
|
||||
|
||||
// Prettier stable
|
||||
interface A {
|
||||
property: /** Comment */
|
||||
B;
|
||||
}
|
||||
|
||||
// Prettier main
|
||||
interface A {
|
||||
property: /** Comment */ B;
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user