mirror of
https://github.com/thangisme/notes.git
synced 2024-09-29 15:46:20 -04:00
50 lines
405 B
Markdown
50 lines
405 B
Markdown
|
# selector-no-universal
|
||
|
|
||
|
Disallow the universal selector.
|
||
|
|
||
|
```css
|
||
|
* {}
|
||
|
/** ↑
|
||
|
* This selector */
|
||
|
```
|
||
|
|
||
|
## Options
|
||
|
|
||
|
### `true`
|
||
|
|
||
|
The following patterns are considered warnings:
|
||
|
|
||
|
```css
|
||
|
* {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
*, .foo {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
* > [foo] {}
|
||
|
```
|
||
|
|
||
|
The following patterns are *not* considered warnings:
|
||
|
|
||
|
```css
|
||
|
a {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
.foo {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
[foo] {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
#foo {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
.bar > #foo {}
|
||
|
```
|