function-disallowed-list
Specify a list of disallowed functions.
a { transform: scale(1); }/** ↑ * This function */Use this rule to enforce a convention. For example, disallow rgb and hsl in favor of oklch, so that all colors use one color space.
This rule supports 1 message argument: the disallowed function.
Options
Section titled “Options”Array<string>
Section titled “Array<string>”["array", "of", "functions", "/regex/"]Given:
{ "function-disallowed-list": ["scale", "rgba", "/^(-moz-)?linear-gradient$/"]}The following patterns are considered problems:
a { transform: scale(1); }a { color: rgba(0, 0, 0, 0.5);}a { background: red, -moz-linear-gradient(45deg, blue, red);}The following patterns are not considered problems:
a { background: red; }