property-disallowed-list
Specify a list of disallowed properties.
a { text-rendering: optimizeLegibility; }/** ↑ * This property */Use this rule to enforce a convention. For example, disallow:
animationif you use an animation libraryfloatin favor of flex and grid
This rule ignores preprocessor variables (e.g. $sass, @less).
This rule supports 1 message argument: the disallowed property.
Options
Section titled “Options”Array<string>
Section titled “Array<string>”["array", "of", "properties", "/regex/"]Given:
{ "property-disallowed-list": [ "text-rendering", "/^(-webkit-)?animation/", "/^background/", "--foo" ]}The following patterns are considered problems:
a { text-rendering: optimizeLegibility; }a { animation: my-animation 2s;}a { --foo: red;}a { -webkit-animation: my-animation 2s; }a { background: red; }a { background-size: cover; }The following patterns are not considered problems:
a { color: red; }a { no-background: sure; }a { --bar: red;}