-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 1.19.1
Playground link
--parser scss
Input:
$my-map: (
'foo': 1, // Comment
'bar': 2, // Comment
);
Output:
$my-map: (
"foo": 1,
// Comment
"bar": 2,
// ^ <----- trailingComma should not printed
// Comment
);
Expected behavior:
$my-map: (
"foo": 1,
// Comment
"bar": 2
// Comment
);
should not print trailingComma
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.