Skip to content

Commit 241c168

Browse files
committed
Remove deprecated options
Skip integral tests
1 parent a460e04 commit 241c168

16 files changed

+6
-1211
lines changed

config/csscomb.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@
44
"node_modules/**"
55
],
66
"always-semicolon": true,
7-
"block-indent": " ",
8-
"colon-space": ["", " "],
97
"color-case": "lower",
108
"color-shorthand": true,
11-
"combinator-space": [" ", " "],
129
"element-case": "lower",
1310
"eof-newline": true,
1411
"leading-zero": false,
1512
"quotes": "single",
1613
"remove-empty-rulesets": true,
17-
"rule-indent": " ",
18-
"stick-brace": "\n",
1914
"strip-spaces": true,
2015
"unitless-zero": true,
2116
"vendor-prefix-align": true,

doc/configuration.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,13 @@ Here is an example:
3939
"verbose": true,
4040

4141
"always-semicolon": true,
42-
"block-indent": " ",
43-
"colon-space": ["", " "],
4442
"color-case": "lower",
4543
"color-shorthand": true,
4644
"element-case": "lower",
4745
"eof-newline": true,
4846
"leading-zero": false,
4947
"quotes": "single",
5048
"remove-empty-rulesets": true,
51-
"rule-indent": " ",
52-
"stick-brace": "\n",
5349
"strip-spaces": true,
5450
"unitless-zero": true,
5551
"vendor-prefix-align": true
@@ -111,13 +107,7 @@ Generated config wiil then look this way:
111107
"color-case": "lower",
112108
"color-shorthand": true,
113109
"strip-spaces": true,
114-
"eof-newline": true,
115-
"stick-brace": "\n",
116-
"colon-space": [
117-
"",
118-
" "
119-
],
120-
"rule-indent": " "
110+
"eof-newline": true
121111
}
122112
```
123113

doc/options.md

Lines changed: 0 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -46,82 +46,6 @@ div {
4646
}
4747
```
4848

49-
## block-indent
50-
51-
**Note**: This option should be used together with [rule-indent](#rule-indent).
52-
53-
Acceptable values:
54-
55-
* `{Number}` of spaces;
56-
* `{String}` of whitespaces or tabs. If there is any other character in the
57-
string, the value will not be set.
58-
59-
Example: `{ "block-indent": 2 }`
60-
61-
```css
62-
/* before */
63-
a { color: red }
64-
@media all { a { color: green } }
65-
66-
/* after */
67-
a { color: red
68-
}
69-
@media all {
70-
a { color: green
71-
}
72-
}
73-
```
74-
75-
Example: `{ "block-indent": " " }`
76-
77-
```css
78-
/* before */
79-
a { color: red }
80-
@media all { a { color: green } }
81-
82-
/* after */
83-
a { color: red
84-
}
85-
@media all {
86-
a { color: green
87-
}
88-
}
89-
```
90-
91-
## colon-space
92-
93-
Set spaces around `:`.
94-
95-
Acceptable value is `{Array}` with 2 elements of the following types:
96-
97-
* `{Number}` of spaces;
98-
* `{String}` of whitespaces or tabs. If there is any other character in the
99-
string, the value will not be set.
100-
101-
The first element of the array sets spaces before colon, and the second one sets
102-
spaces after colon.
103-
104-
Example: `{ "colon-space": ["\t", "\t"] }`
105-
106-
```css
107-
/* before */
108-
a { color: red }
109-
110-
/* after */
111-
a { color : red }
112-
```
113-
114-
Example: `{ "colon-space": [0, 1] }`
115-
116-
```css
117-
/* before */
118-
a { color:red }
119-
120-
/* after */
121-
a { color: red }
122-
```
123-
124-
12549
## color-case
12650

12751
Unify case of hexadecimal colors.
@@ -170,41 +94,6 @@ b { color: #fc0 }
17094
b { color: #ffcc00 }
17195
```
17296

173-
## combinator-space
174-
175-
Set spaces around combinator.
176-
177-
Acceptable value is `{Array}` with 2 elements of the following types:
178-
179-
* `{Number}` of spaces;
180-
* `{String}` of whitespaces, tabs or new lines. If there is any other
181-
character in the string, the value will not be set.
182-
183-
The first element of the array sets spaces before combinator, and the second
184-
one sets spaces after combinator.
185-
186-
Example: `{ "combinator-space": [" ", "\n"] }`
187-
188-
```css
189-
/* before */
190-
a>b { color: red }
191-
192-
/* after */
193-
a >
194-
b { color: red }
195-
```
196-
197-
Example: `{ "combinator-space": [1, 1] }`
198-
199-
```css
200-
/* before */
201-
a>b { color: red }
202-
203-
/* after */
204-
a > b { color: red }
205-
```
206-
207-
20897
## element-case
20998

21099
Unify case of element selectors.
@@ -301,40 +190,6 @@ Example: `{ "remove-empty-rulesets": true }`.
301190

302191
`a { color: red; } p { /* hey */ } b { }` → `a { color: red; } p { /* hey */ } `
303192

304-
## rule-indent
305-
306-
**Note**: This option should be used together with [block-indent](#block-indent).
307-
308-
Acceptable values:
309-
310-
* `{Number}` of spaces;
311-
* `{String}` of whitespaces or tabs. If there is any other character in the
312-
string, the value will not be set.
313-
314-
Example: `{ "rule-indent": 2 }`
315-
316-
```css
317-
/* before */
318-
a { color:red; margin:0 }
319-
320-
/* after */
321-
a {
322-
color:red;
323-
margin:0 }
324-
```
325-
326-
Example: `{ "rule-indent": " " }`
327-
328-
```css
329-
/* before */
330-
a { color:red; margin:0 }
331-
332-
/* after */
333-
a {
334-
color:red;
335-
margin:0 }
336-
```
337-
338193
## sort-order
339194

340195
Set sort order.
@@ -417,37 +272,6 @@ p {
417272
}
418273
```
419274

420-
## stick-brace
421-
422-
Set spaces before `{`.
423-
424-
Acceptable values:
425-
426-
* `{Number}` of spaces;
427-
* `{String}` of whitespaces, tabs or newlines. If there is any other
428-
character in the string, the value will not be set.
429-
430-
Example: `{ "stick-brace": "\n" }`
431-
432-
```css
433-
/* before */
434-
a { color:red }
435-
436-
/* after */
437-
a
438-
{ color:red }
439-
```
440-
441-
Example: `{ "stick-brace": 1 }`
442-
443-
```css
444-
/* before */
445-
a{ color:red }
446-
447-
/* after */
448-
a { color:red }
449-
```
450-
451275
## strip-spaces
452276

453277
Whether to trim trailing spaces.

lib/csscomb.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ var Comb = function(config) {
2323
'quotes',
2424
'strip-spaces',
2525
'eof-newline',
26-
'stick-brace',
27-
'colon-space',
28-
'combinator-space',
29-
'rule-indent',
30-
'block-indent',
3126
'unitless-zero',
3227
'sort-order',
3328
'vendor-prefix-align'

lib/options/block-indent.js

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)