hudochenkov / stylelint-order

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

Unknown rule order error with using ':root' selector #109

Closed PaulineNemchak closed 4 years ago

PaulineNemchak commented 4 years ago

Hello there, I have an error using :root selector, even in case I delete all other code.

src/css/styles.scss
 1:1  ✖  Unknown rule order/order             order/order           
 1:1  ✖  Unknown rule order/properties-order  order/

My .stylelintrc.

I don't understand why this problem occurs.

hudochenkov commented 4 years ago

You need to add stylelint-order to plugins section of your config (you don't have any):

{
    "plugins": [
        "stylelint-order"
    ],
    "rules": {
        // ...
    }
}
PaulineNemchak commented 4 years ago

thanks a lot, seems missed it

hudochenkov commented 4 years ago

Do you have a suggestion how to make it more clear in a readme? It would help new users.