-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSS
Description
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
--parser scss
Input:
$my-map: (
'foo': 1, // Comment
'bar': 2 // Comment
// Comment
);
Output:
$my-map: (
"foo": 1,
// Comment
"bar": 2 // Comment
, // Comment
);
Expected output:
Why?
mgol
Metadata
Metadata
Assignees
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSS