Skip to content

Commit 276491e

Browse files
committed
docs: add changelog for #18482
1 parent 73e0a08 commit 276491e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#### Fix comment placement in empty function params (#18482 by @fs0414)
2+
3+
<!-- prettier-ignore -->
4+
```jsx
5+
// Input
6+
(
7+
// foo
8+
) => {}
9+
10+
function a(
11+
// foo
12+
) {
13+
return;
14+
}
15+
16+
// Prettier stable
17+
() =>
18+
// foo
19+
{};
20+
21+
function a() {
22+
// foo
23+
return;
24+
}
25+
26+
// Prettier main
27+
(
28+
// foo
29+
) => {};
30+
31+
function a(
32+
// foo
33+
) {
34+
return;
35+
}
36+
```

0 commit comments

Comments
 (0)