mirror of
https://github.com/thangisme/notes.git
synced 2026-07-29 14:01:12 -04:00
Initial commit
This commit is contained in:
Generated
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
# declaration-block-single-line-max-declarations
|
||||
|
||||
Limit the number of declaration within a single line declaration block.
|
||||
|
||||
```css
|
||||
a { color: pink; top: 0; }
|
||||
/** ↑ ↑
|
||||
* The number of these declarations */
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
`int`: Maximum number of declarations allowed.
|
||||
|
||||
For example, with `1`:
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```css
|
||||
a { color: pink; top: 3px; }
|
||||
```
|
||||
|
||||
```css
|
||||
a,
|
||||
b { color: pink; top: 3px; }
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```css
|
||||
a { color: pink; }
|
||||
```
|
||||
|
||||
```css
|
||||
a,
|
||||
b { color: pink; }
|
||||
```
|
||||
|
||||
```css
|
||||
a {
|
||||
color: pink;
|
||||
top: 3px;
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user