-
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
Autofix conflict between order and properties-alphabetical-order #129
Comments
The last example does follow your config. Maybe I don't understand the issue you're facing. Does still showing lint errors? Does produce result that you're not expecting? Could you show input code, and output code after |
@hudochenkov Here's some screenshots so you can also see the red underlined errors. Before After Here's the error happening due to the order config not being applied: And here's the expected order that doesn't cause errors when I manually change it. You can see that if I manually change it to have @include above the regular css properties, it matches the rule order mentioned in the issue description. However, the stylelint fix doesn't seem to be applying the order/order rule (it still applies the alphabetical), so it complains about there still being an error. Also, for verbosity, I took out the This screenshot also appears to demonstrate the order/order rule isn't being applied, since we've got the |
It happens, because If you remove this keyword everything will work as expected. |
@hudochenkov Magic! I didn't think to look at that, since I would have assumed it would be ignored in the processing if not a valid rule (like the other issue you linked to mentions). Thanks! |
It should have show a message like other users pointed in #71. Maybe in VS Code it was suppressed. |
I have the following setup for my order rule:
This works perfectly when viewing a file in an editor like vscode - marking the errors in all the right places.
However, when I do a stylelint fix, the ordering doesn't seem to match. Taking this code block for example, that was run after a lint fix:
You can see the alphabetical was applied, but not the order config. I would expect the final output to look like this:
It seems like the order config doesn't get fully applied within blocks. Is this expected, is there a config I might be missing to fix this, or a potential bug/feature that needs updating in the package?
The text was updated successfully, but these errors were encountered: