Sha256: 17ad09965cfd3aa45b98eed8cc35c04694aec7b7045a269616a013835efef1b0

Contents?: true

Size: 1.12 KB

Versions: 24

Compression:

Stored size: 1.12 KB

Contents

# selector-max-empty-lines

Limit the number of adjacent empty lines within selectors.

<!-- prettier-ignore -->
```css
a,
              /* ← */
b {        /* ↑ */
  color: red; /* ↑ */
}             /* ↑ */
/**              ↑
 *        This empty line */
```

The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.

## Options

`int`: Maximum number of adjacent empty lines allowed.

For example, with `0`:

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
a

b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a,

b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a

>
b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a
>

b {
  color: red;
}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a
b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a,
b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a > b {
  color: red;
}
```

<!-- prettier-ignore -->
```css
a
>
b {
  color: red;
}
```

Version data entries

24 entries across 24 versions & 1 rubygems

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