stylelint
Version:
A mighty, modern CSS linter.
73 lines (52 loc) • 1.17 kB
Markdown
# value-no-vendor-prefix
Disallow vendor prefixes for values.
<!-- prettier-ignore -->
```css
a { display: -webkit-flex; }
/** ↑
* These prefixes */
```
This rule will only complain for prefixed _standard_ values, and not for prefixed _proprietary_ or _unknown_ ones.
## Options
### `true`
The following patterns are considered violations:
<!-- prettier-ignore -->
```css
a { display: -webkit-flex; }
```
<!-- prettier-ignore -->
```css
a { max-width: -moz-max-content; }
```
<!-- prettier-ignore -->
```css
a { background: -webkit-linear-gradient(bottom, #000, #fff); }
```
The following patterns are _not_ considered violations:
<!-- prettier-ignore -->
```css
a { display: flex; }
```
<!-- prettier-ignore -->
```css
a { max-width: max-content; }
```
<!-- prettier-ignore -->
```css
a { background: linear-gradient(bottom, #000, #fff); }
```
## Optional secondary options
### `ignoreValues: ["string"]`
Given:
```
["grab", "max-content"]
```
The following patterns are _not_ considered violations:
<!-- prettier-ignore -->
```css
cursor: -webkit-grab;
```
<!-- prettier-ignore -->
```css
.foo { max-width: -moz-max-content; }
```