Trailing commas #2
-
Hi, I filed an issue about it (prettier/prettier#10096). It's an option of Prettier, not their bug. Thank you for feedback |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
AFIK, SASS supports trailing commas, so it shouldn't be a problem. Which SASS compiler are you using? |
Beta Was this translation helpful? Give feedback.
-
I tried your input here https://www.sassmeister.com/ which uses dart-sass $ts-font-size: (
"large": 16px,
"normal": 14px,
);
$local-name-max-height: calc(
5 * #{map-get(
$map: $ts-font-size,
$key: "large",
)}
);
.item {
height: $local-name-max-height;
} output is as expected .item {
height: calc( 5 * 16px );
} |
Beta Was this translation helpful? Give feedback.
-
I use "Web compiler" from Mads Kristensen (https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler) |
Beta Was this translation helpful? Give feedback.
-
Fixed in v2.1.0. Added option to set |
Beta Was this translation helpful? Give feedback.
Fixed in v2.1.0. Added option to set
trailingCommas
. defaults toes5
.