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:
fisker Cheungandautofix-ci[bot] authored and GitHub committed 2026-09-21 23:20:48 +08:00
1 parent 0bab82ffb8
commit 6bc99db278
4 files changed
+56 -5

No files matched your search

+15
View File
@@ -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();
```