Prettier 3.7.4
Playground link
Input:
$value: if(sass(false): 1; else: -1);
body {
width: $value + 5px
}
Output:
$value: if(
sass(false): 1; else: -1,
);
body {
width: $value + 5px; /* css output will be -15px */
}
Expected output:
$value: if(
sass(false): 1; else: -1
);
body {
width: $value + 5px; /* css output will be 4px */
}
Why?
After -1 should not have a comma.
It will affect the SCSS compile results.
Prettier 3.7.4
Playground link
Input:
Output:
Expected output:
Why?
After -1 should not have a comma.
It will affect the SCSS compile results.