Prevent comment after head of member chain move around (#20125)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
0bab82ffb8
commit
6bc99db278
4 files changed
+56
-5
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#### Prevent comment after head of member chain move around (#20125 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
x // comment
|
||||
.foo()
|
||||
|
||||
// Prettier stable
|
||||
x.foo(); // comment
|
||||
|
||||
// Prettier main
|
||||
x // comment
|
||||
.foo();
|
||||
```
|
||||
Reference in new issue
Block a user