Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sassLint and property-sort-order #1299

Open
mituraTomasz opened this issue Feb 1, 2020 · 1 comment
Open

sassLint and property-sort-order #1299

mituraTomasz opened this issue Feb 1, 2020 · 1 comment

Comments

@mituraTomasz
Copy link

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
Copy link

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:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants