Fix unstable comment in arrow function with sequence expression body (#19253)

Co-authored-by: itsybitsybootsy <lammlu19>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-06-01 07:41:04 +08:00
1 parent 82955f1d02
commit e79c012e3b
5 files changed
+101 -3

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#### Fix unstable comment in arrow function with sequence expression body (#19253 by @itsybitsybootsy)
<!-- prettier-ignore -->
```jsx
// Input
const fn = () => (a, b, c /* abc */);
// Prettier stable
const fn = () => (a, b, c) /* abc */;
// Prettier main
const fn = () => (a, b, c /* abc */);
```