1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:37:17 -04:00
notes/node_modules/stylelint/lib/rules/selector-no-id/README.md

42 lines
358 B
Markdown
Raw Normal View History

2017-03-09 13:16:08 -05:00
# 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] {}
```