csscomb / csscomb.js

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

Scss: ignore leading combinator #618

Open lhtdesignde opened 4 years ago

lhtdesignde commented 4 years ago

Hi, I just updated grunt-csscomb to version 4.0.0 from 3.11. It comes with csscomb 4.2. Running node 6.4.0. Unfortunately after running it, it moved all my leading combinators. This behavior was fixed a while ago here: https://github.com/csscomb/csscomb.js/pull/599 But seems to be back in 4.2?

Even if I install version 4.3 and run grunt, I get the same behavior. When I downgrade again to 3.1.1 of grunt-csscomb it works. Screenshot 2019-09-17 at 10 03 40 Screenshot 2019-09-17 at 10 04 20

config:

    "exclude": [
        ".git/**",
        "._*",
        "node_modules/**"
    ],
    "always-semicolon": true,
    "block-indent": 2,
    "tab-size": 2,
    "color-case": "lower",
    "color-shorthand": true,
    "element-case": "lower",
    "leading-zero": false,
    "quotes": "double",
    "remove-empty-rulesets": false,
    "space-before-colon": "",
    "space-after-colon": " ",
    "space-before-combinator": " ",
    "space-after-combinator": " ",
    "space-between-declarations": "\n",
    "space-before-opening-brace": " ",
    "space-after-opening-brace": "\n",
    "space-before-closing-brace": "\n",
    "space-after-selector-delimiter": "\n",
    "unitless-zero": true,
    "vendor-prefix-align": false,
    "sort-order": [