bjankord / stylelint-config-sass-guidelines

⚙ A stylelint config inspired by https://sass-guidelin.es/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how do you override the declaration order with stylelint-config-idiomatic-order?

catalin560 opened this issue · comments

so I got a .stylelintrc.json that looks like:

{
    "extends": "stylelint-config-sass-guidelines",
    "rules": {
        "indentation": 4
    }
}

but I'd like to use the stylelint-config-idiomatic-order instead of the alphabetical one that seems to come with this plugin.
https://github.com/ream88/stylelint-config-idiomatic-order

Try the following stylelint config setup:

module.exports = {
  extends: ['stylelint-config-sass-guidelines', 'stylelint-config-idiomatic-order'],
  rules: {
    "order/properties-alphabetical-order": null,
  },
};

This should disable the alphabetical sort order rule and use the property order rule from stylelint-config-idiomatic-order