Skip to content
New issue

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

scss: Do not remove space after == and != #2223

Open
aeschli opened this issue Nov 29, 2023 · 1 comment
Open

scss: Do not remove space after == and != #2223

aeschli opened this issue Nov 29, 2023 · 1 comment

Comments

@aeschli
Copy link

aeschli commented Nov 29, 2023

In VS Code we use js-beautifier for CSS also for SCSS. I know that's a stretch, but it seems to work quite well.

For the following examples, unfortunately, the formatter removes the space after the == and != operators. It would be nice if these could be preserved

@for $i from 1 through $positions {
  &.pos#{$i} {
    left: $i * if($i !=$positions, 10%, 15%);
  }
}

@if $positions ==10 {
  &.pos11 {
    left: 100%;
  }
}
@abhijit-hub
Copy link

is this issue open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants