1 | # number-no-trailing-zeros
|
2 |
|
3 | Disallow trailing zeros in numbers.
|
4 |
|
5 |
|
6 | ```css
|
7 | a { top: 0.5000px; bottom: 1.0px; }
|
8 | /** ↑ ↑
|
9 | * These trailing zeros */
|
10 | ```
|
11 |
|
12 | The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix some of the problems reported by this rule.
|
13 |
|
14 | ## Options
|
15 |
|
16 | ### `true`
|
17 |
|
18 | The following patterns are considered violations:
|
19 |
|
20 |
|
21 | ```css
|
22 | a { top: 1.0px }
|
23 | ```
|
24 |
|
25 |
|
26 | ```css
|
27 | a { top: 1.01000px }
|
28 | ```
|
29 |
|
30 | The following patterns are _not_ considered violations:
|
31 |
|
32 |
|
33 | ```css
|
34 | a { top: 1px }
|
35 | ```
|
36 |
|
37 |
|
38 | ```css
|
39 | a { top: 1.01px }
|
40 | ```
|