Skip to content

Commit cea384a

Browse files
committed
README: rule-indent
1 parent bb5b94b commit cea384a

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ a { color: red; }
6565
6666
### block-indent
6767
68+
**Note**: better to use with [rule-indent](#rule-indent)
69+
6870
Available values:
69-
* `{Boolean}` true
71+
* `{Boolean}` true (means 4 spaces)
7072
* `{Number}` of spaces
71-
* `{String}` of whitespace characters (`/[ \t]/*`)
73+
* `{String}` of whitespace characters (`/[ \t]*/`)
7274
7375
Example: `{ "block-indent": 2 }`
7476
@@ -78,9 +80,11 @@ Example: `{ "block-indent": 2 }`
7880
@media all { a { color: green } }
7981
8082
/* after */
81-
a { color: red }
83+
a { color: red
84+
}
8285
@media all {
83-
a { color: green }
86+
a { color: green
87+
}
8488
}
8589
```
8690
@@ -168,6 +172,27 @@ p { padding: 0.5em }
168172
p { padding: .5em }
169173
```
170174
175+
### rule-indent
176+
177+
**Note**: better to use with [block-indent](#block-indent)
178+
179+
Available values:
180+
* `{Boolean}` true (means 4 spaces)
181+
* `{Number}` of spaces
182+
* `{String}` of whitespace characters (`/[ \t]*/`)
183+
184+
Example: `{ "rule-indent": 2 }`
185+
186+
```css
187+
/* before */
188+
a { color:red; margin:0 }
189+
190+
/* after */
191+
a {
192+
color:red;
193+
margin:0 }
194+
```
195+
171196
## Tests
172197
173198
Run `npm test` for tests.

0 commit comments

Comments
 (0)