mirror of
https://github.com/thangisme/notes.git
synced 2024-06-11 08:50:52 +00: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 {}
|
|
```
|