hudochenkov / stylelint-order

A plugin pack of order related linting rules for Stylelint.
MIT License
916 stars 61 forks source link

Undefined rule order/declaration-block-properties-specified-order #32

Closed brandondurham closed 7 years ago

brandondurham commented 7 years ago

My .stylelintrc config:

{
    "extends": "stylelint-config-standard",
    "plugins": [
        "stylelint-order"
    ],
    "rules": {
        "color-no-hex": true,
        "font-family-name-quotes": "always-where-recommended",
        "indentation": "tab",
        "length-zero-no-unit": null,
        "number-leading-zero": null,
        "order/declaration-block-properties-specified-order": [
            [ "composes" ],
            { "unspecified": "bottomAlphabetical" }
        ],
        "order/order": [
            "at-rule",
            "custom-properties",
            "declarations"
        ],
        "order/properties-alphabetical-order": true,
        "property-no-unknown": [
            true,
            {
                ignoreProperties: ["composes", "/^lost-/"]
            }
        ],
        "selector-pseudo-class-no-unknown": [
            true,
            {
                "ignorePseudoClasses": [
                    "global"
                ]
            }
        ],
        "string-quotes": "double"
    }
}

I’m working in Atom, and each time I update a CSS file I get the following error:

image

I couldn’t spot anything obvious here. Appreciate any suggestions I can get.

hudochenkov commented 7 years ago

This rule was deprecated in version 0.4. Please update your config. I think you only need to rename order/declaration-block-properties-specified-order to order/properties-order.

brandondurham commented 7 years ago

That worked wonderfully. Thank you!