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

+22
View File
@@ -0,0 +1,22 @@
#### Avoid adding trailing comma to parenthesized scalars (#19091 by @cyphercodes)
<!-- prettier-ignore -->
```scss
// Input
.a { background-color: rgba($color: (#808080), $alpha: 0.9); }
// Prettier stable
.a {
background-color: rgba(
$color: (
#808080,
),
$alpha: 0.9
);
}
// Prettier main
.a {
background-color: rgba($color: (#808080), $alpha: 0.9);
}
```