Specify lowercase or uppercase for keywords values.
指定关键字的值的大小写。
a { display: block; }
/** ↑
* These values */
This rule ignores <custom-idents>
of known properties. Values which are paired with non-properties (e.g. $vars
and custom properties), and do not conform to the primary option, can be ignored using the ignoreValues: []
secondary option.
该规则忽略已知属性的<custom-idents>
。成对出现的值(比如,$vars
和自定义属性),而且不符合主选项的,可以使用第二选项 ignoreValues: []
忽略掉。
string: "lower"|"upper"
"lower"
The following patterns are considered warnings:
以下模式被认为是个警告:
a {
display: Block;
}
a {
display: bLoCk;
}
a {
display: BLOCK;
}
a {
transition: -WEBKIT-TRANSFORM 2s;
}
The following patterns are not considered warnings:
以下模式正常:
a {
display: block;
}
a {
transition: -webkit-transform 2s;
}
"upper"
The following patterns are considered warnings:
以下模式被认为是个警告:
a {
display: Block;
}
a {
display: bLoCk;
}
a {
display: block;
}
a {
transition: -webkit-transform 2s;
}
The following patterns are not considered warnings:
以下模式正常:
a {
display: BLOCK;
}
a {
transition: -WEBKIT-TRANSFORM 2s;
}
ignoreKeywords: ["/regex/", "non-regex"]
Ignore case of keywords values.
忽略关键字的值的大小写。
For example, with "lower"
.
例如,在 "lower"
选项下。
Given:
给出:
["Block", "/^(f|F)lex$/"]
The following patterns are considered warnings:
以下模式被认为是个警告:
a {
display: bLoCk;
}
a {
display: BLOCK;
}
a {
display: fLeX;
}
a {
display: FLEX;
}
The following patterns are not considered warnings:
以下模式正常:
a {
display: block;
}
a {
display: Block;
}
a {
display: flex;
}
a {
display: Flex;
}
For example, with "upper"
.
例如,在 "upper"
选项下。
Given:
给出:
["Block", "/^(f|F)lex$/"]
The following patterns are considered warnings:
以下模式被认为是个警告:
a {
display: bLoCk;
}
a {
display: block;
}
a {
display: fLeX;
}
a {
display: fLEX;
}
The following patterns are not considered warnings:
以下模式被认为是个警告:
a {
display: BLOCK;
}
a {
display: Block;
}
a {
display: FLEX;
}
a {
display: Flex;
}
a {
display: flex;
}