mirror of
https://github.com/thangisme/notes.git
synced 2026-07-27 10:04:27 -04:00
Initial commit
This commit is contained in:
+91
@@ -0,0 +1,91 @@
|
||||
# selector-max-empty-lines
|
||||
|
||||
Limit the number of adjacent empty lines within selectors.
|
||||
|
||||
```css
|
||||
a,
|
||||
/* ← */
|
||||
b { /* ↑ */
|
||||
color: red; /* ↑ */
|
||||
} /* ↑ */
|
||||
/** ↑
|
||||
* This empty line */
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
`int`: Maximum number of empty lines.
|
||||
|
||||
For example, with `0`:
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```css
|
||||
a
|
||||
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a,
|
||||
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a
|
||||
|
||||
>
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a
|
||||
>
|
||||
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```css
|
||||
a b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a,
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a > b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a
|
||||
>
|
||||
b {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user