Closed nick-mon1 closed 1 year ago
I'm not sure why there is an impression that at-rules would be sorted alphabetically. There is nothing about it in the docs.
However, it is possible to do, but you'll have to manually specify all mixins in the config:
"order/order": [
{
"type": "at-rule",
"name": "include",
"parameter": "u-margin-top"
},
{
"type": "at-rule",
"name": "include",
"parameter": "u-margin-bottom"
},
{
"type": "at-rule",
"name": "include",
"parameter": "u-font"
},
"declarations",
"rules"
]
By the way, at-variables
keyword is only for Less syntax. Sass' @include
is at-rule
.
Regular css rules are ordered alphabetically sorted but not my sass mixins, which it should do according to these docs here:
These sass mixins are not getting sorted, is that possible?
stylelintrc.json