tree: e24dadcb537ef0ecfd2fc8708cb35db11fda180e [path history] [tgz]
  1. index.js
  2. README.md
node_modules/stylelint/lib/rules/number-no-trailing-zeros/README.md

number-no-trailing-zeros

Disallow trailing zeros in numbers.

a { top: 0.5000px; bottom: 1.0px; }
/**         ↑                ↑
 *        These trailing zeros */

The --fix option on the command line can automatically fix some of the problems reported by this rule.

Options

true

The following patterns are considered violations:

a { top: 1.0px }
a { top: 1.01000px }

The following patterns are not considered violations:

a { top: 1px }
a { top: 1.01px }