beautifier/js-beautify

scss: Do not remove space after `==` and `!=`

Opened this issue · 2 comments

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%;
  }
}

is this issue open?

Still a prominent issue. Anyone have a workaround?
image