sasstools / sass-lint

Pure Node.js Sass linting
MIT License
1.77k stars 532 forks source link

sassLint and property-sort-order #1299

Open mituraTomasz opened 4 years ago

mituraTomasz commented 4 years ago

I'm trying to set order of scss rules with sassLint i Visual studio code. I want to set "width" and "height" on the top. I configured .sasslintrc.json file with rule:

{ "rules": { "property-sort-order": [ 1, { "order": [ "width", "height" ] } ] }

..but it dosent working. I'm still getting warnings:

image

I don't know what I'm doing wrong. Can somebody help me?

TheJaredWilcurt commented 3 years ago

You can reference this implementation. Though I'd also recommend just using it. it is the most complete property sort order:

To learn more about why, check the readme: