Sha256: 816ece8a21e34f4609c4b7e631705fe4489571c612fe03d73e5315a9d76492e4

Contents?: true

Size: 761 Bytes

Versions: 24

Compression:

Stored size: 761 Bytes

Contents

# declaration-block-single-line-max-declarations

Limit the number of declarations within a single-line declaration block.

<!-- prettier-ignore -->
```css
a { color: pink; top: 0; }
/** ↑            ↑
 * The number of these declarations */
```

## Options

`int`: Maximum number of declarations allowed.

For example, with `1`:

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
a { color: pink; top: 3px; }
```

<!-- prettier-ignore -->
```css
a,
b { color: pink; top: 3px; }
```

The following patterns are _not_ considered violations:

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

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

<!-- prettier-ignore -->
```css
a {
  color: pink;
  top: 3px;
}
```

Version data entries

24 entries across 24 versions & 1 rubygems

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