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

Ignore nested non-standard selectors in selector-max-specificity #2685

Merged
merged 2 commits into from
Jun 30, 2017

Conversation

jeddy3
Copy link
Member

@jeddy3 jeddy3 commented Jun 27, 2017

Closes #2684

Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also close #2677 with this PR?

@@ -12,6 +12,8 @@ Visit the [Specificity Calculator](https://specificity.keegan.st) for visual rep

This rule ignores selectors with variable interpolation (`#{$var}`, `@{var}`, `$(var)`).

This rule ignores all selectors, standard syntax or otherwise, nested within non-standard rule constructs e.g. `@each`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't understand this sentence :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pulled this out as I think the preceding statement is good enough:

This rule ignores selectors with variable interpolation (#{$var}, @{var}, $(var)).

@jeddy3
Copy link
Member Author

jeddy3 commented Jun 27, 2017

Can we also close #2677 with this PR?

I'm afraid not as we don't have a heuristic in isStandardSyntaxSelector yet to determine that .myMixin(@a, @b).bar is non-standard.

@jeddy3 jeddy3 merged commit 863ed85 into master Jun 30, 2017
@jeddy3 jeddy3 deleted the issue-2684 branch June 30, 2017 14:15
@jeddy3
Copy link
Member Author

jeddy3 commented Jun 30, 2017

  • Fixed: selector-max-specificity now ignores nested non-standard selectors (#2685).

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.

3 participants