Prettier 3.0.0
Playground link
Input:
@mixin responsive() {
// some code
}
.test {
@include responsive(
(
'margin-top': (
5px,
v4(6),
v4(6),
v4(6),
6px,
),
'font-size': (
v1(12),
v2(16),
v4(18),
v4(18),
18px,
),
// 'line-height': (v1(20), v2(36), v4(36), 36px, 36px),
// 'height': (v1(20), v2(30), v4(30), 30px, 30px),
)
);
}
Output:
Whenever I press the formatting button, Prettier adds a comma at the end of this line

@mixin responsive() {
// some code
}
.test {
@include responsive(
(
"margin-top": (
5px,
v4(6),
v4(6),
v4(6),
6px,
),
"font-size": (
v1(12),
v2(16),
v4(18),
v4(18),
18px,
),
// 'line-height': (v1(20), v2(36), v4(36), 36px, 36px),
// 'height': (v1(20), v2(30), v4(30), 30px, 30px),,
)
);
}
Expected behavior:
as mentioned above
Prettier 3.0.0
Playground link
Input:
Output:
Whenever I press the formatting button, Prettier adds a comma at the end of this line

Expected behavior:
as mentioned above