Closed tenorok closed 7 years ago
Yes, see the "group objects" part of the docs:
{
"plugins": [
"stylelint-order"
],
"rules": {
"order/properties-order": [
{
"emptyLineBefore": "always",
"properties": ["position", "top", "right", "bottom", "left"],
}, {
"emptyLineBefore": "always",
"properties": ["margin", "display", "width", "height", "padding"],
}
]
}
}
Oh, I somehow missed this place in the docs. Thank you for fast answer!
I tried something like this and it does not work:
'order/properties-order': [
[
{
properties: [array of strings],
},
{
emptyLineBefore: 'always',
properties: [array of strings],
},
],
{ unspecified: 'bottomAlphabetical' },
],
In my case solution was to set "declaration-empty-line-before": null
as well.
Hello, thank you for helpful project!
Is it possible to break a solid list of properties by groups?
Let's Consider the example, for this config:
It's will be the result with empty line between two groups:
Do we have appropriate option in config now?