1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 02:07:20 -04:00
notes/node_modules/stylelint/lib/rules/declaration-block-single-line-max-declarations
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

declaration-block-single-line-max-declarations

Limit the number of declaration 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 warnings:

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

The following patterns are not considered warnings:

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