-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
Add except: ["after-same-name"] option to at-rule-empty-line-before #2225
Conversation
34f9507
to
5d7f744
Compare
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.
@hudochenkov Thanks!
Besides one very minor request, looks great to me!
@@ -31,6 +31,7 @@ const rule = function (expectation, options) { | |||
"blockless-after-same-name-blockless", | |||
"blockless-group", | |||
"first-nested", | |||
"after-same-name", |
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.
These options should be in alphabetical order
Options should be order alphabetically within the docs, as it's simpler to maintain that consistency across READMEs than any other system.
Nope, we only add options once there has been a real-world request for it rather than preemptively adding them. |
5d7f744
to
c69bbd4
Compare
Done. |
@@ -100,6 +101,8 @@ const rule = function (expectation, options) { | |||
|
|||
// Optionally reverse the expectation if any exceptions apply | |||
if ( | |||
|| optionsMatches(options, "except", "after-same-name") |
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 think your syntax is wrong here.
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.
Sorry about that. It's fixed now.
c69bbd4
to
bafcbc9
Compare
@hudochenkov Thanks! I'm going to wait on the outcome of #2231 before merging. Feel free to add your thoughts to that discussion. We've a much better grasp of what options are needed than we had a few months ago and |
Merging as per #2231 (comment) |
@hudochenkov Thanks! Changelog
|
#2211
Maybe
"after-same-name"
should be placed before"blockless-after-same-name-blockless"
in docs, because of its broader nature?Should I add
ignore: ["after-same-name"]
also?