block-no-redundant-nested-style-rules
Disallow redundant nested style rules within blocks.
a { & { color: red; } }/** ↑ * This nested style rule */Use this rule to enforce a convention. A & {} block is redundant, as its declarations can sit directly in the parent rule or nested at-rule.
This rule doesn’t have any message arguments.
Options
Section titled “Options”{ "block-no-redundant-nested-style-rules": true}The following patterns are considered problems:
a { & { color: red; } }a { @media all { & { color: red; } } }The following patterns are not considered problems:
a { color: red; }a { @media all { color: red; } }a { &.foo { color: red; } }