Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Prettier breaks code when inline number lists are used as arbitr…
…ary arguments [SCSS] (#8566)
- Loading branch information
Showing
4 changed files
with
86 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
#### Fix: [Sass] Unexpectedly add extra space after function when passing arbitrary arguments ([#8567](https://github.com/prettier/prettier/pull/8567) by [@boyenn](https://github.com/boyenn)) | ||
#### Improve Prettier handling of arbitrary arguments ([#8567](https://github.com/prettier/prettier/pull/8567), [#8566](https://github.com/prettier/prettier/pull/8566) by [@boyenn](https://github.com/boyenn)) | ||
|
||
Prettier no longer unexpectedly add extra space after function when passing arbitrary arguments. | ||
Prettier no longer breaks code when inline number lists are used as arbitrary arguments. | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
/* Input */ | ||
body { | ||
test: function($list...); | ||
test: function(return-list($list)...); | ||
foo: bar(returns-list($list)...); | ||
background-color: rgba(50 50 50 50...); | ||
} | ||
|
||
/* Prettier stable */ | ||
body { | ||
test: function($list...); | ||
test: function(return-list($list) ...); | ||
foo: bar(returns-list($list) ...); | ||
background-color: rgba(50 50 50 50..); | ||
} | ||
|
||
/* Prettier master */ | ||
body { | ||
test: function($list...); | ||
test: function(return-list($list)...); | ||
foo: bar(returns-list($list)...); | ||
background-color: rgba(50 50 50 50...); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters