property-disallowed-list
指定不允许的属性列表。
¥Specify a list of disallowed properties.
a { text-rendering: optimizeLegibility; }
/** ↑
* This property */
此规则忽略预处理器变量(例如 $sass
、@less
)。
¥This rule ignores preprocessor variables (e.g. $sass
, @less
).
message
次要选项 可以接受该规则的参数。
¥The message
secondary option can accept the arguments of this rule.
选项
¥Options
Array<string>
["array", "of", "properties", "/regex/"]
鉴于:
¥Given:
{
"property-disallowed-list": [
"text-rendering",
"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;
}