We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The selector_separator_newline option, when set to true, is slightly buggy with SCSS @extend statements, adding a newline when it should not.
selector_separator_newline
true
@extend
The code looked like this before beautification:
a { @extend .color-black, .hover-far-red; }
The code should have looked like this after beautification:
The code actually looked like this after beautification:
The added newline is erroneous.
It works correctly for @import statements with comma delimited entries, and does not add a new line.
@import
Example:
{ "selector_separator_newline": false }
The text was updated successfully, but these errors were encountered:
Same issue everywhere there is a "comma separated list" .
Example with list variable definition in SCSS :
Expected : $sizes: 40px, 50px, 80px; Actual wrong output : $sizes: 40px, 50px, 80px;
Expected : $sizes: 40px, 50px, 80px;
$sizes: 40px, 50px, 80px;
Actual wrong output :
Example with maps variable definition in SCSS :
Expected : $default-margin: (desktop: 24px, tablet: 16px, phone: 16px); Actual : $default-margin: (desktop: 24px, tablet: 16px, phone: 16px, );
Expected : $default-margin: (desktop: 24px, tablet: 16px, phone: 16px);
$default-margin: (desktop: 24px, tablet: 16px, phone: 16px);
Actual :
$default-margin: (desktop: 24px, tablet: 16px, phone: 16px, );
Example with @each loop :
Expected : @each $name, $color in $colorsrefs { .#{$name}-bg { background-color: $color; } } Actual wrong output : @each $name, $color in $colorsrefs { .#{$name}-bg { background-color: $color; } }
Expected :
@each $name, $color in $colorsrefs { .#{$name}-bg { background-color: $color; } }
Etc...
Sorry, something went wrong.
@bitwiseman This was fixed in #1800
No branches or pull requests
Description
The
selector_separator_newline
option, when set totrue
, is slightly buggy with SCSS@extend
statements, adding a newline when it should not.Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
The added newline is erroneous.
It works correctly for
@import
statements with comma delimited entries, and does not add a new line.Steps to Reproduce
Settings
Example:
The text was updated successfully, but these errors were encountered: