Avoid trailing commas for parenthesized SCSS scalars (#19091)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
56080d5de5
commit
d7cf639b76
5 files changed
+72
-18
No files matched your search
@@ -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);
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user