Skip to content

at-rule-disallowed-list

Reports an at-rule that is in the list option (a vendor prefix is left out of the name).

A project can forbid an at-rule, such as @import, that costs a request per file or that its build does not support. The rule is a policy: with no list it reports nothing.

Reported
@import "a.css";
...
}
...
css:
lint:
rules:
at-rule-disallowed-list:
level: warn # off (default), warn, error
options:
list: []
less:
lint:
rules:
at-rule-disallowed-list:
level: warn # off (default), warn, error
options:
list: []
scss:
lint:
rules:
at-rule-disallowed-list:
level: warn # off (default), warn, error
options:
list: []
Option Type Default Description
list list [] The disallowed at-rules, without @: names, or /regex/.

Suppress one line with sudsy-disable-next-line at-rule-disallowed-list in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
stylelint at-rule-disallowed-list full