Sha256: b05081b8bd9b4f41827680ee6f482a0e8f57130b8f4dac1dc5f930e8bd54d6b4

Contents?: true

Size: 1.55 KB

Versions: 24

Compression:

Stored size: 1.55 KB

Contents

# value-list-max-empty-lines

Limit the number of adjacent empty lines within value lists.

<!-- prettier-ignore -->
```css
a {
  box-shadow:
    inset 0 2px 0 #dcffa6,
                    /* ← */
    0 2px 5px #000; /* ↑ */
}                   /* ↑ */
/**                    ↑
 *       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 {
  padding: 10px

    10px
    10px
    10px
}
```

<!-- prettier-ignore -->
```css
a {
  padding:
    10px
    10px
    10px

    10px
}
```

<!-- prettier-ignore -->
```css
a {
  box-shadow: inset 0 2px 0 #dcffa6,

    0 2px 5px #000;
}
```

<!-- prettier-ignore -->
```css
a {
  box-shadow:
    inset 0 2px 0 #dcffa6,

    0 2px 5px #000;
}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a {
  padding: 10px 10px 10px 10px
}
```

<!-- prettier-ignore -->
```css
a {
  padding: 10px
    10px
    10px
    10px
}
```

<!-- prettier-ignore -->
```css
a {
  padding:
    10px
    10px
    10px
    10px
}
```

<!-- prettier-ignore -->
```css
a {
  box-shadow: inset 0 2px 0 #dcffa6, 0 2px 5px #000;
}
```

<!-- prettier-ignore -->
```css
a {
  box-shadow: inset 0 2px 0 #dcffa6,
    0 2px 5px #000;
}
```

<!-- prettier-ignore -->
```css
a {
  box-shadow:
    inset 0 2px 0 #dcffa6,
    0 2px 5px #000;
}
```

Version data entries

24 entries across 24 versions & 1 rubygems

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