stylelint-config-rational-order

Stylelint config that sorts related property declarations by grouping together in the rational order.

Installation

npm install --save-dev stylelint-order stylelint-config-rational-order

Configuration

{
    "extends": [
        "stylelint-config-rational-order"
    ],
    "plugins": [
        "stylelint-order",
        "stylelint-config-rational-order/plugin"
    ],
    "rules": {
        "order/properties-order": [],
        "plugin/rational-order": [
            true,
            {
                "border-in-box-model": true,
                "empty-line-between-groups": true
            }
        ],
    }
}