bjankord / stylelint-config-sass-guidelines

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Declaration block properties order Rule

deerawan opened this issue · comments

Hi,

I found something to clarify

Regarding

declaration-block-properties-order: Properties in declaration blocks must be sorted alphabetically.

Based on the page, the author didn't impose preference regarding property order

image

I wonder if it is better to remove the Rule to follow what the doc said?

However, In the .stylelint.rc I could do this to ignore the rule

{
"extends": "stylelint-config-sass-guidelines",
"rules": {
    "order/properties-alphabetical-order": null
  }
}

That's a good point. When I created this, the team I worked on favored alpha ordering so thats what I went with. If you find that you either don't prefer this ordering or want another option for ordering, I think the rule override is a good option.