Prettier 1.19.1
Playground link
--parser scss
--trailing-comma es5
Input:
$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
Prettier 1.19.1
Playground link
Input:
Output:
Expected behavior:
with
--trailing-comma es5, extra comma inserted