csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.28k stars 459 forks source link

Ignore leading combinators #599

Closed mariovalney closed 5 years ago

mariovalney commented 5 years ago

In SCSS space-before-combinator should not touch leading/lone combinators as we can nested them:

.a> .b {
    > .b {
        prop: val;
    }
}

Should become (config: two spaces):

.a  > .b {
    > .b {
        prop: val;
    }
}

Not:

.a  > .b {
      > .b {
        prop: val;
    }
}

Related: #551

tonyganch commented 5 years ago

@mariovalney, thank you so much for the PR! ❤️

mariovalney commented 5 years ago

Thank you for csscomb