stylelint/rules/order
on save: the property order, the Prettier formatting (never disabled); warning = a choice to justify (disabled for one line, with a reason). Notations are free. Order (stylelint-order): custom properties, variables, declarations, then rules; properties by role.
3 rules, 2 on. Source: lint/stylelint/rules/order.mjs.
| Rule | Setting | Files | What it checks | Why |
|---|---|---|---|---|
order/order | error, [["custom-properties","dollar-variables","declarations","… | SCSS | — | Custom: custom properties, variables, declarations, then nested rules (fixed on save). |
order/properties-alphabetical-order | off | SCSS | — | Off: the recess order groups the properties by role. |
order/properties-order | error, [{"properties":["composes"]},{"properties":["all"]},{"pro… | SCSS | — | Custom: properties grouped by role (position, box, text, visual), the recess order (fixed on save). |