This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

761 B

declaration-block-single-line-max-declarations

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

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:

a { color: pink; top: 3px; }
a,
b { color: pink; top: 3px; }

The following patterns are not considered violations:

a { color: pink; }
a,
b { color: pink; }
a {
  color: pink;
  top: 3px;
}