JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2163625
  • Score
    100M100P100Q199820F
  • License MIT

A collection of order related linting rules for stylelint.

Package Exports

  • stylelint-order

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint-order) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stylelint-order Build Status

A collection of order related linting rules for stylelint (in a form of a plugin).

Installation

npm install stylelint-order

Usage

Add stylelint-order to your stylelint config plugins array, then add rules you need to the rules list. All rules from stylelint-order need to be namespaced with order.

Like so:

// .stylelintrc
{
    "plugins": [
        "stylelint-order"
    ],
    "rules": {
        // ...
        "order/declaration-block-order": [
            "custom-properties",
            "declarations"
        ],
        "order/declaration-block-properties-alphabetical-order": true
        // ...
    }
}

List of rules

Thanks

declaration-block-properties-alphabetical-order code and readme are based on declaration-block-properties-order rule which was a stylelint's core rule prior stylelint 8.0.0.