@@ -40,12 +40,15 @@ Example configuration:
4040` ` ` json
4141{
4242 " exclude" : [" node_modules/**" ],
43+ " verbose" : true,
44+
4345 " always-semicolon" : true,
4446 " block-indent" : true,
4547 " colon-space" : true,
4648 " color-case" : " lower" ,
4749 " color-shorthand" : true,
4850 " element-case" : " lower" ,
51+ " eof-newline" : true,
4952 " leading-zero" : false,
5053 " rule-indent" : true,
5154 " stick-brace" : true,
@@ -56,9 +59,30 @@ Example configuration:
5659
5760# # Options
5861
62+ # ## verbose
63+
64+ Available value: ` {Boolean}` ` true`
65+
66+ Config mode: ` { " verbose" : true }`
67+ ` ` ` bash
68+ $ ./bin/csscomb ./test
69+ ✓ test/integral.origin.css
70+ test/integral.expect.css
71+
72+ 2 files processed
73+ 1 file fixed
74+ 96 ms spent
75+ ` ` `
76+
77+ CLI mode:
78+ ` ` ` bash
79+ $ ./bin/csscomb ./test --verbose
80+ $ ./bin/csscomb ./test -v
81+ ` ` `
82+
5983# ## always-semicolon
6084
61- Available value: ` {Boolean}` true
85+ Available value: ` {Boolean}` ` true`
6286
6387Example: ` { " always-semicolon" : true }`
6488
@@ -75,9 +99,9 @@ a { color: red; }
7599** Note** : better to use with [rule-indent](# rule-indent)
76100
77101Available values:
78- * ` {Boolean}` true (means 4 spaces)
102+ * ` {Boolean}` ` true` (means 4 spaces)
79103 * ` {Number}` of spaces
80- * ` {String}` of whitespace characters (` /[ \t ]* /` )
104+ * ` {String}` of whitespace characters (` /[ \t ]+ /` )
81105
82106Example: ` { " block-indent" : 2 }`
83107
@@ -98,7 +122,7 @@ a { color: red
98122# ## colon-space
99123
100124Available values:
101- * ` {Boolean}` true (means ` after` )
125+ * ` {Boolean}` ` true` (means ` after` )
102126 * ` {String}` : ` before` , ` after` , ` both` or any combination of whitespaces
103127 and/or a colon (` ` , ` : ` , ` \t :\n\t ` etc.)
104128
@@ -217,6 +241,18 @@ li > a { color: red }
217241LI > A { color: red }
218242` ` `
219243
244+ # ## eof-newline
245+
246+ Available values: ` {Boolean}` ` true` or ` false`
247+
248+ Example: ` { " eof-newline" : true }`
249+
250+ ` a { color: red }` & rarr; ` a { color: red }\n `
251+
252+ Example: ` { " eof-newline" : false }`
253+
254+ ` a { color: red }\n ` & rarr; ` a { color: red }`
255+
220256# ## leading-zero
221257
222258Available values: ` {Boolean}` ` true` or ` false`
@@ -236,9 +272,9 @@ p { padding: .5em }
236272** Note** : better to use with [block-indent](# block-indent)
237273
238274Available values:
239- * ` {Boolean}` true (means 4 spaces)
275+ * ` {Boolean}` ` true` (means 4 spaces)
240276 * ` {Number}` of spaces
241- * ` {String}` of whitespace characters (` /[ \t ]* /` )
277+ * ` {String}` of whitespace characters (` /[ \t ]+ /` )
242278
243279Example: ` { " rule-indent" : 2 }`
244280
300336# ## stick-brace
301337
302338Available values:
303- * ` {Boolean}` true (means 1 spaces)
304- * ` {String}` of whitespace characters (` /[ \t\n ]* /` )
339+ * ` {Boolean}` ` true` (means 1 space)
340+ * ` {Number}` of spaces
341+ * ` {String}` of whitespace characters (` /[ \t\n ]+/` )
305342
306343Example: ` { " stick-brace" : " \n" }`
307344
316353
317354# ## strip-spaces
318355
319- Available value: ` {Boolean}` true
356+ Available value: ` {Boolean}` ` true`
320357
321358Example: ` { " strip-spaces" : true }`
322359
323- Before: ` a { color: red } \n b { font-weight: normal } \n\n \n`
360+ ` a { color: red } \n \n \n ` & rarr ; ` a { color: red } \n `
324361
325- After: ` a { color: red }\n b { font-weight: normal } \n `
362+ ` a { color: red }\t ` & rarr ; ` a { color: red } `
326363
327364# ## unitless-zero
328365
0 commit comments