Prevent trailing comma in SCSS if() function (#18471)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
1cd40668c3
commit
177f908981
4 files changed
+58
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#### Prevent trailing comma in `if()` function (#18471 by @kovsu)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```scss
|
||||
// Input
|
||||
$value: if(sass(false): 1; else: -1);
|
||||
|
||||
// Prettier stable
|
||||
$value: if(
|
||||
sass(false): 1; else: -1,
|
||||
);
|
||||
|
||||
// Prettier main
|
||||
$value: if(sass(false): 1; else: -1);
|
||||
```
|
||||
Reference in new issue
Block a user