mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 06:37:17 -04:00
42 lines
358 B
Markdown
42 lines
358 B
Markdown
|
# selector-no-id
|
||
|
|
||
|
Disallow id selectors.
|
||
|
|
||
|
```css
|
||
|
#foo {}
|
||
|
/** ↑
|
||
|
* This type of selector */
|
||
|
```
|
||
|
|
||
|
## Options
|
||
|
|
||
|
### `true`
|
||
|
|
||
|
The following patterns are considered warnings:
|
||
|
|
||
|
```css
|
||
|
#foo {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
.bar > #foo {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
#foo.bar {}
|
||
|
```
|
||
|
|
||
|
The following patterns are *not* considered warnings:
|
||
|
|
||
|
```css
|
||
|
a {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
.foo {}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
[foo] {}
|
||
|
```
|