stylelint
Version:
A mighty, modern CSS linter.
42 lines (29 loc) • 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] {}
```