-
Notifications
You must be signed in to change notification settings - Fork 61
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
It does not add an empty line between groups #133
Comments
Thanks for providing reproducible example!
|
Ohh, thanks! That makes sense now. Thanks for explaining this. Will it be helpful to add this into docs? I can work on PR, but just want to check if it is something that is needed |
Sounds like a good idea. |
What value is needed for Got it! |
I want to use ...
... to force an empty line before a block of declarations. Unfortunately setting this, empty lines between declarations via Update: I found this issue describing the problem. |
I see that reference to stylelint-config-standard is already present in the docs for properties-order @hudochenkov could you close this issue? Or is there anything more to do? |
I'm trying to use
order/properties-order
rule withemptyLineBefore: 'always'
, but it does not add an empty line.Here is the repo with a reproducible example: https://github.com/maksimsemenov/stylelint-order-bug
If you run
npx stylelint src/**/*
it show an errors, that empty lin is missing. But if you run it with the fix options (npx stylelint --fix src/**/*
) it doesn't show any errors, but empty lines are not added as well.I was trying to debug it, and it seems that
addEmptyLineBefore
function is called and it changes the node, but these changes are not written to the file. However, the properties for reordered, so it writes some changes to the files, but not the empty line.The text was updated successfully, but these errors were encountered: