value-no-vendor-prefix
What it does
Section titled “What it does”Reports a vendor-prefixed keyword or function that has a standard value (-webkit-flex).
Why it matters
Section titled “Why it matters”A prefixed value was a way to try a feature before it was standardised. Browsers support the standard value now, so the prefixed one is dead weight that a build step can add where it is needed.
To fix, use the standard value.
Example
Section titled “Example”...a { -webkit-transition: none; -webkit-foo: 1; display: -webkit-flex; background: -webkit-linear-gradient(red, blue) }...Configuration
Section titled “Configuration”css: lint: rules: value-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []less: lint: rules: value-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []scss: lint: rules: value-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []| Option | Type | Default | Description |
|---|---|---|---|
ignore |
list | [] |
Names left out: names, or /regex/. |
Enabled by the presets: css/stylelint-standard.
Suppress one line with sudsy-disable-next-line value-no-vendor-prefix in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| stylelint | value-no-vendor-prefix |
full |