UNPKG

1.17 kBMarkdownView Raw
1# value-no-vendor-prefix
2
3Disallow vendor prefixes for values.
4
5<!-- prettier-ignore -->
6```css
7a { display: -webkit-flex; }
8/** ↑
9 * These prefixes */
10```
11
12This rule will only complain for prefixed _standard_ values, and not for prefixed _proprietary_ or _unknown_ ones.
13
14## Options
15
16### `true`
17
18The following patterns are considered violations:
19
20<!-- prettier-ignore -->
21```css
22a { display: -webkit-flex; }
23```
24
25<!-- prettier-ignore -->
26```css
27a { max-width: -moz-max-content; }
28```
29
30<!-- prettier-ignore -->
31```css
32a { background: -webkit-linear-gradient(bottom, #000, #fff); }
33```
34
35The following patterns are _not_ considered violations:
36
37<!-- prettier-ignore -->
38```css
39a { display: flex; }
40```
41
42<!-- prettier-ignore -->
43```css
44a { max-width: max-content; }
45```
46
47<!-- prettier-ignore -->
48```css
49a { background: linear-gradient(bottom, #000, #fff); }
50```
51
52## Optional secondary options
53
54### `ignoreValues: ["string"]`
55
56Given:
57
58```
59["grab", "max-content"]
60```
61
62The following patterns are _not_ considered violations:
63
64<!-- prettier-ignore -->
65```css
66cursor: -webkit-grab;
67```
68
69<!-- prettier-ignore -->
70```css
71.foo { max-width: -moz-max-content; }
72```