Skip to main content

selector-type-case

Specify lowercase or uppercase for type selectors.

a {}
/** โ†‘
* This is type selector */

The fix option can automatically fix all of the problems reported by this rule.

Options#

string: "lower"|"upper"

"lower"#

The following patterns are considered violations:

A {}
LI {}

The following patterns are not considered violations:

a {}
li {}

"upper"#

The following patterns are considered violations:

a {}
li {}

The following patterns are not considered violations:

A {}
LI {}

Optional secondary options#

ignoreTypes: ["/regex/", "non-regex"]#

Given:

["$childClass", "/(p|P)arent.*/"]

The following patterns are not considered violations:

myParentClass {
color: pink;
}
$childClass {
color: pink;
}