Skip to content
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

Merged
merged 1 commit into from
Jan 8, 2017

Conversation

hudochenkov
Copy link
Member

Which issue, if any, is this issue related to?

#2211

Is there anything in the PR that needs further explanation?

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?

@hudochenkov hudochenkov force-pushed the after-same-name branch 2 times, most recently from 34f9507 to 5d7f744 Compare December 31, 2016 10:55
Copy link
Member

@jeddy3 jeddy3 left a 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",
Copy link
Member

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

@jeddy3
Copy link
Member

jeddy3 commented Dec 31, 2016

Maybe "after-same-name" should be placed before "blockless-after-same-name-blockless" in docs, because of its broader nature?

Options should be order alphabetically within the docs, as it's simpler to maintain that consistency across READMEs than any other system.

Should I add ignore: ["after-same-name"] also?

Nope, we only add options once there has been a real-world request for it rather than preemptively adding them.

@hudochenkov
Copy link
Member Author

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")
Copy link
Member

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.

Copy link
Member Author

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.

@jeddy3
Copy link
Member

jeddy3 commented Jan 1, 2017

Sorry about that. It's fixed now.

@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 8.0.0 is our opportunity to standardise all the options based on our learnings.

@jeddy3
Copy link
Member

jeddy3 commented Jan 8, 2017

Merging as per #2231 (comment)

@jeddy3 jeddy3 merged commit 8888dd7 into stylelint:master Jan 8, 2017
@jeddy3
Copy link
Member

jeddy3 commented Jan 8, 2017

@hudochenkov Thanks!

Changelog

  • Added: except: ["after-same-name"] option to at-rule-empty-line-before (#2225).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants