Fix dangling comment print in function parameters (#18623)
This commit is contained in:
1 parent
8c310eef6f
commit
ae14f16f86
8 files changed
+597
-32
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#### Fix dangling comment print in function parameters (#18623 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
fn = function(
|
||||
// comment
|
||||
) {}
|
||||
arrow = (
|
||||
// comment
|
||||
) => {}
|
||||
|
||||
// Prettier stable
|
||||
fn = function () // comment
|
||||
{};
|
||||
arrow = () =>
|
||||
// comment
|
||||
{};
|
||||
|
||||
// Prettier main
|
||||
fn = function (
|
||||
// comment
|
||||
) {};
|
||||
arrow = (
|
||||
// comment
|
||||
) => {};
|
||||
```
|
||||
Reference in new issue
Block a user