Prettier 2.7.1
Playground link
Input:
@function join($a, $b) {
@return #{$a}/#{$b};
}
.foo {
background-image: url(join("a", "b.png"));
}
.bar {
background-image: url(prefix/#{join('a', 'b.png')});
}
Output:
@function join($a, $b) {
@return #{$a}/#{$b};
}
.foo {
background-image: url(join("a", "b.png"));
}
.bar {
background-image: url(prefix/#{join('a' 'b.png')});
}
Expected behavior:
The comma separating values 'a' and 'b.png' should not be removed.
- background-image: url(#{join('a' 'b.png')});
+ background-image: url(#{join('a', 'b.png')});
This breaks sass compilation with the following error:
Error: Missing argument $b.
╷
1 │ @function join($a, $b) {
│ ━━━━━━━━━━━━ declaration
... │
10 │ background-image: url(prefix/#{join('a' 'b.png')});
│ ^^^^^^^^^^^^^^^^^ invocation
╵
Prettier 2.7.1
Playground link
# Options (if any):Input:
Output:
Expected behavior:
The comma separating values
'a'and'b.png'should not be removed.This breaks sass compilation with the following error: