-
-
Notifications
You must be signed in to change notification settings - Fork 942
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
Fix end positions for declaration-block-no-*
("Avoid errors")
#6040
Conversation
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.
LGTM, thank you.
IMO, it's good to follow the current behavior. Currently, the rule warns at the start column of the last property ( |
SGTM. |
|
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.
Looks great, thank you @mattxwang.
Part of the umbrella issue #5694.
This PR contains end positions for:
declaration-block-no-duplicate-custom-properties
declaration-block-no-duplicate-properties
declaration-block-no-shorthand-property-overrides
These are all of the rules matching
declaration-block-no-*
in the "Avoid Errors" section.I don't mind adding support for
declaration-block-no-redundant-longhand-properties
as well (in "Enforce conventions"), though I'm a bit confused about how I would implement the start/end positions for this; what should I be highlighting? The actual shorthand (exmargin
) doesn't appear in the code itself. Would I highlight each of the longhand properties separately?Also, I manually did all the test cases included, though some double-checking for some of them would be nice! Pretty confident that they work as intended.