Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 982 Bytes

File metadata and controls

42 lines (29 loc) · 982 Bytes

selector-descendant-combinator-no-non-space

Warning This rule is deprecated and will be removed in the future. See the migration guide.

Disallow non-space characters for descendant combinators of selectors.

.foo .bar .baz {}
/** ↑    ↑
* These descendant combinators */

This rule ensures that only a single space is used and ensures no tabs, newlines, nor multiple spaces are used for descendant combinators of selectors.

The fix option can automatically fix most of the problems reported by this rule.

This rule currently ignores selectors containing comments.

Options

true

The following patterns are considered problems:

.foo  .bar {}
.foo
.bar {}

The following patterns are not considered problems:

.foo .bar {}