Skip to content
New issue

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

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

Already on GitHub? Sign in 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:

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

No branches or pull requests

2 participants