Sha256: 18297e7cad02838ec44aadd512dc07223ca25f455b8972f613229bbd150643e1

Contents?: true

Size: 851 Bytes

Versions: 24

Compression:

Stored size: 851 Bytes

Contents

# selector-descendant-combinator-no-non-space

Disallow non-space characters for descendant combinators of selectors.

<!-- prettier-ignore -->
```css
.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](../../../docs/user-guide/usage/options.md#fix) 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 violations:

<!-- prettier-ignore -->
```css
.foo  .bar {}
```

<!-- prettier-ignore -->
```css
.foo
.bar {}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
.foo .bar {}
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md