Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 827 Bytes

File metadata and controls

42 lines (30 loc) · 827 Bytes

number-no-trailing-zeros

Warning This rule is deprecated and will be removed in the future. See the migration guide.

Disallow trailing zeros in numbers.

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

The fix option can automatically fix some of the problems reported by this rule.

Options

true

The following patterns are considered problems:

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

The following patterns are not considered problems:

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