Skip to content

property-disallowed-list

Reports a property that is in the list option (names, or /regex/). Custom properties are not reported.

A project can forbid properties that its browsers or its design system do not support, or that cause layout trouble (float in a flex design). The rule is a policy: with no list it reports nothing.

Reported
...
a { float: left; width: 1em }
}
...
css:
lint:
rules:
property-disallowed-list:
level: warn # off (default), warn, error
options:
list: []
less:
lint:
rules:
property-disallowed-list:
level: warn # off (default), warn, error
options:
list: []
scss:
lint:
rules:
property-disallowed-list:
level: warn # off (default), warn, error
options:
list: []
Option Type Default Description
list list [] The disallowed properties: names, or /regex/.

Suppress one line with sudsy-disable-next-line property-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 property-disallowed-list full