1
0
mirror of https://github.com/thangisme/notes.git synced 2026-06-11 05:39:18 -04:00
Files
notes/node_modules/stylelint/lib/rules/selector-no-empty/README.md

50 lines
633 B
Markdown
Raw Normal View History

2017-03-09 13:16:08 -05:00
# selector-no-empty
***Deprecated: See [CHANGELOG](../../../CHANGELOG.md).***
Disallow empty selectors.
```css
a, , b {}
/** ↑
* An empty selector */
```
Empty selectors (by themselves or within a selector list) invalidate a rule. This rule splits the selector list on `,`. Any part that has zero length or containing only whitespace is deemed empty.
## Options
### `true`
The following patterns are considered warnings:
```css
{}
```
```css
, .a, .b {}
```
```css
.a, .b, {}
```
```css
.a, , .b {}
```
The following patterns are *not* considered warnings:
```css
a {}
```
```css
a, b {}
```
```css
a.foo {}
```