-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang: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
--trailing-comma es5Input:
$my-map: (
'foo': 1, // Comment
'bar': 2, // Comment
);Output:
$my-map: (
"foo": 1,
// Comment
"bar": 2,
// Comment,
// ^ <----- extra comma
);
Expected behavior:
$my-map: (
"foo": 1,
// Comment
"bar": 2,
// Comment
);
with --trailing-comma es5, extra comma inserted
Metadata
Metadata
Assignees
Labels
lang: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.