Skip to content

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.

RuleSettingFilesWhat it checksWhy
order/ordererror, [["custom-properties","dollar-variables","declarations","…SCSS—Custom: custom properties, variables, declarations, then nested rules (fixed on save).
order/properties-alphabetical-orderoffSCSS—Off: the recess order groups the properties by role.
order/properties-ordererror, [{"properties":["composes"]},{"properties":["all"]},{"pro…SCSS—Custom: properties grouped by role (position, box, text, visual), the recess order (fixed on save).

Generated from the JSDoc of the sources.