cmy a6e36702ec 2023-3-1 2 years ago
..
README.md a6e36702ec 2023-3-1 2 years ago
index.js a6e36702ec 2023-3-1 2 years ago

README.md

value-no-vendor-prefix

Disallow vendor prefixes for values.

a { display: -webkit-flex; }
/**          ↑
 *  These prefixes */

This rule will only complain for prefixed standard values, and not for prefixed proprietary or unknown ones.

The fix option can automatically fix all of the problems reported by this rule.

Options

true

The following patterns are considered violations:

a { display: -webkit-flex; }
a { max-width: -moz-max-content; }
a { background: -webkit-linear-gradient(bottom, #000, #fff); }

The following patterns are not considered violations:

a { display: flex; }
a { max-width: max-content; }
a { background: linear-gradient(bottom, #000, #fff); }

Optional secondary options

ignoreValues: ["string"]

Given:

["grab", "max-content"]

The following patterns are not considered violations:

cursor: -webkit-grab;
.foo { max-width: -moz-max-content; }