Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 816 Bytes

selector-descendant-combinator-no-non-space.md

File metadata and controls

42 lines (27 loc) · 816 Bytes

Pattern: Invalid character in descendant selector spacing

Issue: -

Description

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.

This rule currently ignores selectors containing comments.

Examples

true

The following patterns are considered problems:

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

The following patterns are not considered problems:

.foo .bar {}

Further Reading