-
Notifications
You must be signed in to change notification settings - Fork 479
Add alphabetical order rule #433
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
Conversation
|
👍 |
tests/rules/order-alphabetical.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so -webkit-box-shadow orders before -moz-transition because its box-shadow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The order doesn't care about prefixes, so even if w is after m, the order is using b and t.
I didn't want to enforce order between prefixes of the same property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
I could add a second "no warning" test without prefixed properties maybe... |
src/rules/order-alphabetical.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor thing, but it's probably best to keep the quoting consistent (even though it isn't throughout the repo right now)
|
I added a "no warning" test with unprefixed properties and changed the single quotes to double ones... |
|
Any news on this feature ? |
This rule verifies that all properties of a single rule are in alphabetical order.
I know order is a serious debate. I don't want to impose it. I just think people who want to enforce order should be able to do so using awesome csslint ;-)