1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:37:17 -04:00
notes/node_modules/stylelint/lib/rules/number-max-precision
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

number-max-precision

Limit the number of decimal places allowed in numbers.

a { top: 3.245634px; }
/**           ↑
 * These decimal places */

Options

int: Maximum number of decimal places allowed.

For example, with 2:

The following patterns are considered warnings:

a { top: 3.245px; }
a { top: 3.245634px; }
@media (min-width: 3.234em) {}

The following patterns are not considered warnings:

a { top: 3.24px; }
@media (min-width: 3.23em) {}