at-rule-no-vendor-prefix
What it does
Section titled “What it does”Reports a vendor-prefixed at-rule that has a standard one (@-webkit-keyframes).
Why it matters
Section titled “Why it matters”A prefixed at-rule was a way to try a feature before it was standardised. Browsers support the standard name now, so the prefixed one repeats the whole block for nothing.
To fix, use the standard at-rule.
Example
Section titled “Example”@-webkit-keyframes k { from { color: red } }...Configuration
Section titled “Configuration”css: lint: rules: at-rule-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []less: lint: rules: at-rule-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []scss: lint: rules: at-rule-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 at-rule-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 | at-rule-no-vendor-prefix |
full |