Fix JSDoc multiline type cast alignment in assignment (#19180)
This commit is contained in:
1 parent
c3556d9d5c
commit
6ae5fecd46
5 files changed
+66
-8
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#### Fix multiline JSDoc-style comment alignment in assignments (#19180 by @kovsu)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
const foo = /**
|
||||
* comment
|
||||
*/ bar;
|
||||
|
||||
// Prettier stable
|
||||
const foo = /**
|
||||
* comment
|
||||
*/ bar;
|
||||
|
||||
// Prettier main
|
||||
const foo =
|
||||
/**
|
||||
* comment
|
||||
*/ bar;
|
||||
```
|
||||
Reference in new issue
Block a user