js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

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

Open aeschli opened this issue 7 months ago • 1 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%;
  }
}

aeschli avatar Nov 29 '23 13:11 aeschli