Avoid trailing commas for parenthesized SCSS scalars (#19091)

Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
Rayan Salhabandfisker Cheung authored and GitHub committed 2026-05-27 05:29:26 +08:00
1 parent 56080d5de5
commit d7cf639b76
5 files changed
+72 -18

No files matched your search

@@ -539,3 +539,35 @@ a {
================================================================================
`;
exports[`issue-19073.scss - {"trailingComma":"es5"} format 1`] = `
====================================options=====================================
parsers: ["scss"]
trailingComma: "es5"
printWidth: 80 (default) |
=====================================input======================================
.a { background-color: rgba($color: (#808080), $alpha: 0.9); }
=====================================output=====================================
.a {
background-color: rgba($color: (#808080), $alpha: 0.9);
}
================================================================================
`;
exports[`issue-19073.scss - {"trailingComma":"none"} format 1`] = `
====================================options=====================================
parsers: ["scss"]
trailingComma: "none"
printWidth: 80 (default) |
=====================================input======================================
.a { background-color: rgba($color: (#808080), $alpha: 0.9); }
=====================================output=====================================
.a {
background-color: rgba($color: (#808080), $alpha: 0.9);
}
================================================================================
`;
@@ -0,0 +1 @@
.a { background-color: rgba($color: (#808080), $alpha: 0.9); }
@@ -776,9 +776,7 @@ $o-grid-default-config: (
);
$map: (
key: (
value,
),
key: (value),
other-key: (
key: other-other-value,
),
@@ -927,9 +925,7 @@ $o-grid-default-config: (
);
$map: (
key: (
value
),
key: (value),
other-key: (
key: other-other-value
)
@@ -1154,9 +1150,7 @@ $map: (
"key": "value",
"key": "value",
"key": "value",
): (
"list",
),
): ("list"),
(
"list",
"list",
@@ -1168,9 +1162,7 @@ $map: (
"list",
"list",
"list",
): (
"list",
),
): ("list"),
(
"list",
"list",
@@ -1233,9 +1225,7 @@ $map: (
"key": "value",
"key": "value",
"key": "value"
): (
"list"
),
): ("list"),
(
"list",
"list",
@@ -1247,9 +1237,7 @@ $map: (
"list",
"list",
"list"
): (
"list"
),
): ("list"),
(
"list",
"list",