19 lines
265 B
Markdown
19 lines
265 B
Markdown
#### Fix comments handling for for-statements (#18099 by @fisker, @sosukesuzuki)
|
|
|
|
<!-- prettier-ignore -->
|
|
```js
|
|
// Input
|
|
for (x of y)
|
|
// Comment
|
|
bar();
|
|
|
|
// Prettier stable
|
|
// Comment
|
|
for (x of y) bar();
|
|
|
|
// Prettier main
|
|
for (x of y)
|
|
// Comment
|
|
bar();
|
|
```
|