|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- # selector-type-case
-
- Specify lowercase or uppercase for type selectors.
-
- <!-- prettier-ignore -->
- ```css
- a {}
- /** ↑
- * This is type selector */
- ```
-
- The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
-
- ## Options
-
- `string`: `"lower"|"upper"`
-
- ### `"lower"`
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- A {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- LI {}
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- li {}
- ```
-
- ### `"upper"`
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- li {}
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- A {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- LI {}
- ```
-
- ## Optional secondary options
-
- ### `ignoreTypes: ["/regex/", "non-regex"]`
-
- Given:
-
- ```
- ["$childClass", "/(p|P)arent.*/"]
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- myParentClass {
- color: pink;
- }
-
- $childClass {
- color: pink;
- }
- ```
|