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:
5 files changed
+101
-3
No files matched your search
@@ -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 */);
|
||||
```
|
||||
Reference in new issue
Block a user