UNPKG

690 BMarkdownView Raw
1# number-no-trailing-zeros
2
3Disallow trailing zeros in numbers.
4
5<!-- prettier-ignore -->
6```css
7a { top: 0.5000px; bottom: 1.0px; }
8/** ↑ ↑
9 * These trailing zeros */
10```
11
12The [`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
18The following patterns are considered violations:
19
20<!-- prettier-ignore -->
21```css
22a { top: 1.0px }
23```
24
25<!-- prettier-ignore -->
26```css
27a { top: 1.01000px }
28```
29
30The following patterns are _not_ considered violations:
31
32<!-- prettier-ignore -->
33```css
34a { top: 1px }
35```
36
37<!-- prettier-ignore -->
38```css
39a { top: 1.01px }
40```