UNPKG

1.3 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
14The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
15
16## Options
17
18### `true`
19
20The following patterns are considered violations:
21
22<!-- prettier-ignore -->
23```css
24a { display: -webkit-flex; }
25```
26
27<!-- prettier-ignore -->
28```css
29a { max-width: -moz-max-content; }
30```
31
32<!-- prettier-ignore -->
33```css
34a { background: -webkit-linear-gradient(bottom, #000, #fff); }
35```
36
37The following patterns are _not_ considered violations:
38
39<!-- prettier-ignore -->
40```css
41a { display: flex; }
42```
43
44<!-- prettier-ignore -->
45```css
46a { max-width: max-content; }
47```
48
49<!-- prettier-ignore -->
50```css
51a { background: linear-gradient(bottom, #000, #fff); }
52```
53
54## Optional secondary options
55
56### `ignoreValues: ["string"]`
57
58Given:
59
60```
61["grab", "max-content"]
62```
63
64The following patterns are _not_ considered violations:
65
66<!-- prettier-ignore -->
67```css
68cursor: -webkit-grab;
69```
70
71<!-- prettier-ignore -->
72```css
73.foo { max-width: -moz-max-content; }
74```