media-feature-name-disallowed-list
What it does
Section titled “What it does”Reports a media feature that is in the list option.
Why it matters
Section titled “Why it matters”A project can forbid media features that its browsers do not support or that its breakpoints replace. The rule is a policy: with no list it reports nothing.
Example
Section titled “Example”...@media (min-width: 40em) and (color) {...}...Configuration
Section titled “Configuration”css: lint: rules: media-feature-name-disallowed-list: level: warn # off (default), warn, error options: list: []less: lint: rules: media-feature-name-disallowed-list: level: warn # off (default), warn, error options: list: []scss: lint: rules: media-feature-name-disallowed-list: level: warn # off (default), warn, error options: list: []| Option | Type | Default | Description |
|---|---|---|---|
list |
list | [] |
The disallowed media features: names, or /regex/. |
Suppress one line with sudsy-disable-next-line media-feature-name-disallowed-list 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 | media-feature-name-disallowed-list |
full |