After #16617, the following code should be improved the comma should insert before the fist comment, not the last comment.
Prettier pr-16617
Playground link
Input:
$my-map: (
'foo': 1, // Comment
'bar': 2 // Comment
// Comment
);
Output:
$my-map: (
"foo": 1,
// Comment
"bar": 2 // Comment
, // Comment
);
Expected output:
Why?
After #16617, the following code should be improved the comma should insert before the fist comment, not the last comment.
Prettier pr-16617
Playground link
Input:
Output:
Expected output:
Why?