Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: stylelintrc.json

Issue 29360001: Issue #5109 - Create stylelintrc for websites and ui modules (Closed)
Left Patch Set: See comments inline Created Nov. 9, 2016, 4:56 p.m.
Right Patch Set: Updated browser support based on ABP requirements Created Nov. 10, 2016, 5:55 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 { 1 {
Thomas Greiner 2017/07/07 21:45:00 Did you also consider the "General" section of our
2 "rules": { 2 "rules": {
3 3
4 "color-hex-length": "short", 4 "color-hex-length": "short",
5 "color-named": "never", 5 "color-named": "never",
6 "color-no-invalid-hex": true, 6 "color-no-invalid-hex": true,
juliandoucette 2016/11/09 17:01:54 Fixed invalid property value.
7 7
8 "font-family-name-quotes": "always-where-recommended", 8 "font-family-name-quotes": "always-where-recommended",
9 "font-weight-notation": "numeric", 9 "font-weight-notation": "numeric",
10 10
11 "function-calc-no-unspaced-operator": true, 11 "function-calc-no-unspaced-operator": true,
12 "function-comma-newline-before": "never-multi-line", 12 "function-comma-newline-before": "never-multi-line",
Thomas Greiner 2017/07/07 21:45:01 Where's this mentioned in the coding style? In ge
13 "function-comma-space-after": "always-single-line", 13 "function-comma-space-after": "always-single-line",
14 "function-comma-space-before": "never-single-line", 14 "function-comma-space-before": "never-single-line",
15 "function-linear-gradient-no-nonstandard-direction": true, 15 "function-linear-gradient-no-nonstandard-direction": true,
16 "function-max-empty-lines": 0, 16 "function-max-empty-lines": 0,
17 "function-name-case": "lower", 17 "function-name-case": "lower",
18 "function-parentheses-space-inside": "never", 18 "function-parentheses-space-inside": "never",
19 "function-url-quotes": "always", 19 "function-url-quotes": "always",
Thomas Greiner 2017/07/07 21:45:01 This is the opposite of what our coding style defi
20 "function-whitespace-after": "always", 20 "function-whitespace-after": "always",
21 21
22 "number-leading-zero": "always", 22 "number-leading-zero": "always",
23 "number-no-trailing-zeros": true, 23 "number-no-trailing-zeros": true,
24 24
25 "string-no-newline": true, 25 "string-no-newline": true,
26 "string-quotes": "double", 26 "string-quotes": "double",
27 27
28 "time-no-imperceptible": true, 28 "time-no-imperceptible": true,
Thomas Greiner 2017/07/07 21:45:00 Apart from it not being in the coding style, this
29 29
30 "unit-case": "lower", 30 "unit-case": "lower",
31 "unit-no-unknown": true, 31 "unit-no-unknown": true,
32 32
33 "value-keyword-case": "lower", 33 "value-keyword-case": "lower",
34 "value-no-vendor-prefix": true, 34 "value-no-vendor-prefix": true,
35 35
36 "value-list-comma-newline-before": "never-multi-line", 36 "value-list-comma-newline-before": "never-multi-line",
37 "value-list-comma-space-after": "always-single-line", 37 "value-list-comma-space-after": "always-single-line",
38 "value-list-comma-space-before": "never-single-line", 38 "value-list-comma-space-before": "never-single-line",
39 "value-list-max-empty-lines": 0, 39 "value-list-max-empty-lines": 0,
40 40
41 "custom-property-empty-line-before": "never", 41 "custom-property-empty-line-before": "never",
42 "custom-property-no-outside-root": true, 42 "custom-property-no-outside-root": true,
43 43
44 "property-case": "lower", 44 "property-case": "lower",
45 "property-no-unknown": true, 45 "property-no-unknown": true,
46 "property-no-vendor-prefix": true, 46 "property-no-vendor-prefix": true,
47 47
48 "declaration-bang-space-after": "never", 48 "declaration-bang-space-after": "never",
49 "declaration-bang-space-before": "always", 49 "declaration-bang-space-before": "always",
50 "declaration-colon-newline-after": "always-multi-line", 50 "declaration-colon-newline-after": "always-multi-line",
51 "declaration-colon-space-after": "always", 51 "declaration-colon-space-after": "always",
52 "declaration-colon-space-before": "never", 52 "declaration-colon-space-before": "never",
53 "declaration-empty-line-before": "never", 53 "declaration-empty-line-before": "never",
54 "declaration-no-important": true, 54 "declaration-no-important": true,
Thomas Greiner 2017/07/07 21:45:01 While this is not part of the coding style, I'd ar
55 55
56 "declaration-block-no-duplicate-properties": true, 56 "declaration-block-no-duplicate-properties": true,
57 "declaration-block-no-ignored-properties": true, 57 "declaration-block-no-ignored-properties": true,
58 "declaration-block-no-redundant-longhand-properties": true, 58 "declaration-block-no-redundant-longhand-properties": true,
59 "declaration-block-no-shorthand-property-overrides": true, 59 "declaration-block-no-shorthand-property-overrides": true,
60 "declaration-block-properties-order": [ 60 "declaration-block-properties-order": [
Thomas Greiner 2017/07/07 21:45:00 We have also discussed the approach of enumerating
61 "display", 61 "display",
62 "visibility", 62 "visibility",
63 63
64 "position", 64 "position",
65 "top", 65 "top",
66 "right", 66 "right",
67 "bottom", 67 "bottom",
68 "left", 68 "left",
69 "float", 69 "float",
70 "clear", 70 "clear",
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 "animation-name", 197 "animation-name",
198 "animation-duration", 198 "animation-duration",
199 "animation-play-state", 199 "animation-play-state",
200 "animation-timing-function", 200 "animation-timing-function",
201 "animation-delay", 201 "animation-delay",
202 "animation-iteration-count", 202 "animation-iteration-count",
203 "animation-iteration-count", 203 "animation-iteration-count",
204 "animation-direction" 204 "animation-direction"
205 ], 205 ],
206 "declaration-block-semicolon-newline-after": "always", 206 "declaration-block-semicolon-newline-after": "always",
207 "declaration-block-semicolon-newline-before": "never-multi-line", 207 "declaration-block-semicolon-newline-before": "never-multi-line",
juliandoucette 2016/11/09 17:01:54 Fixed invalid property value.
208 "declaration-block-semicolon-space-after": "never-single-line", 208 "declaration-block-semicolon-space-after": "never-single-line",
209 "declaration-block-semicolon-space-before": "never", 209 "declaration-block-semicolon-space-before": "never",
210 "declaration-block-single-line-max-declarations": 1, 210 "declaration-block-single-line-max-declarations": 1,
211 "declaration-block-trailing-semicolon": "always", 211 "declaration-block-trailing-semicolon": "always",
212 212
213 "block-closing-brace-empty-line-before": "never", 213 "block-closing-brace-empty-line-before": "never",
214 "block-closing-brace-newline-after": "always", 214 "block-closing-brace-newline-after": "always",
215 "block-closing-brace-newline-before": "always", 215 "block-closing-brace-newline-before": "always",
216 "block-closing-brace-space-after": "always-single-line", 216 "block-closing-brace-space-after": "always-single-line",
217 "block-closing-brace-space-before": "always-single-line", 217 "block-closing-brace-space-before": "always-single-line",
218 "block-no-empty": true, 218 "block-no-empty": true,
219 "block-no-single-line": true, 219 "block-no-single-line": true,
220 "block-opening-brace-newline-after": "always", 220 "block-opening-brace-newline-after": "always",
juliandoucette 2016/11/09 17:01:54 Corrected.
221 "block-opening-brace-newline-before": "always-single-line", 221 "block-opening-brace-newline-before": "always-single-line",
222 "block-opening-brace-space-after": "always-single-line", 222 "block-opening-brace-space-after": "always-single-line",
223 "block-opening-brace-space-before": "always-single-line", 223 "block-opening-brace-space-before": "always-single-line",
224 224
225 "selector-attribute-brackets-space-inside": "never", 225 "selector-attribute-brackets-space-inside": "never",
226 "selector-attribute-operator-space-after": "never", 226 "selector-attribute-operator-space-after": "never",
227 "selector-attribute-operator-space-before": "never", 227 "selector-attribute-operator-space-before": "never",
228 "selector-attribute-quotes": "always", 228 "selector-attribute-quotes": "always",
229 "selector-combinator-space-after": "always", 229 "selector-combinator-space-after": "always",
230 "selector-combinator-space-before": "always", 230 "selector-combinator-space-before": "always",
231 "selector-descendant-combinator-no-non-space": true, 231 "selector-descendant-combinator-no-non-space": true,
232 "selector-max-compound-selectors": 3, 232 "selector-max-compound-selectors": 3,
233 "selector-no-empty": true, 233 "selector-no-empty": true,
234 "selector-no-qualifying-type": [true, {"ignore": "attribute"}], 234 "selector-no-qualifying-type": [true, {"ignore": "attribute"}],
juliandoucette 2016/11/09 17:01:54 - Fixed invalid property value - Added ignore attr
235 "selector-no-vendor-prefix": true, 235 "selector-no-vendor-prefix": true,
236 "selector-pseudo-class-case": "lower", 236 "selector-pseudo-class-case": "lower",
237 "selector-pseudo-class-no-unknown": true, 237 "selector-pseudo-class-no-unknown": true,
238 "selector-pseudo-class-parentheses-space-inside": "never", 238 "selector-pseudo-class-parentheses-space-inside": "never",
239 "selector-pseudo-element-case": "lower", 239 "selector-pseudo-element-case": "lower",
240 "selector-pseudo-element-colon-notation": "single", 240 "selector-pseudo-element-colon-notation": "single",
241 "selector-pseudo-element-no-unknown": true, 241 "selector-pseudo-element-no-unknown": true,
242 "selector-type-case": "lower", 242 "selector-type-case": "lower",
243 "selector-type-no-unknown": true, 243 "selector-type-no-unknown": true,
244 "selector-max-empty-lines": 0, 244 "selector-max-empty-lines": 0,
245 245
246 "selector-list-comma-newline-after": "always", 246 "selector-list-comma-newline-after": "always",
247 "selector-list-comma-newline-before": "never-multi-line", 247 "selector-list-comma-newline-before": "never-multi-line",
juliandoucette 2016/11/09 17:01:54 Fixed invalid property value.
248 "selector-list-comma-space-after": "always-single-line", 248 "selector-list-comma-space-after": "always-single-line",
249 "selector-list-comma-space-before": "never", 249 "selector-list-comma-space-before": "never",
250 250
251 "root-no-standard-properties": true, 251 "root-no-standard-properties": true,
252 252
253 "rule-nested-empty-line-before": ["always", {"except": ["first-nested"], "ig nore": ["after-comment"]}], 253 "rule-nested-empty-line-before": ["always", {"except": ["first-nested"], "ig nore": ["after-comment"]}],
254 "rule-non-nested-empty-line-before": ["always", {"ignore": ["after-comment"] }], 254 "rule-non-nested-empty-line-before": ["always", {"ignore": ["after-comment"] }],
255 255
256 "media-feature-colon-space-after": "always", 256 "media-feature-colon-space-after": "always",
257 "media-feature-colon-space-before": "never", 257 "media-feature-colon-space-before": "never",
258 "media-feature-name-case": "lower", 258 "media-feature-name-case": "lower",
259 "media-feature-name-no-unknown": true, 259 "media-feature-name-no-unknown": true,
260 "media-feature-name-no-vendor-prefix": true, 260 "media-feature-name-no-vendor-prefix": true,
261 "media-feature-parentheses-space-inside": "never", 261 "media-feature-parentheses-space-inside": "never",
262 "media-feature-range-operator-space-after": "always", 262 "media-feature-range-operator-space-after": "always",
263 "media-feature-range-operator-space-before": "always", 263 "media-feature-range-operator-space-before": "always",
264 264
265 "media-query-list-comma-newline-after": "never-multi-line", 265 "media-query-list-comma-newline-after": "never-multi-line",
juliandoucette 2016/11/09 17:01:54 Fixed invalid property value.
266 "media-query-list-comma-newline-before": "never-multi-line", 266 "media-query-list-comma-newline-before": "never-multi-line",
juliandoucette 2016/11/09 17:01:54 Fixed invalid property value.
267 "media-query-list-comma-space-after": "always", 267 "media-query-list-comma-space-after": "always",
268 "media-query-list-comma-space-before": "never", 268 "media-query-list-comma-space-before": "never",
269 269
270 "at-rule-name-case": "lower", 270 "at-rule-name-case": "lower",
271 "at-rule-name-space-after": "always",
juliandoucette 2016/11/10 11:42:58 Removed because we don't want to force this.
272 "at-rule-no-unknown": true, 271 "at-rule-no-unknown": true,
273 "at-rule-no-vendor-prefix": true, 272 "at-rule-no-vendor-prefix": true,
274 "at-rule-semicolon-newline-after": "always", 273 "at-rule-semicolon-newline-after": "always",
275 274
276 "comment-no-empty": true, 275 "comment-no-empty": true,
277 276
278 "indentation": 2, 277 "indentation": 2,
279 "max-empty-lines": 1, 278 "max-empty-lines": 1,
280 "max-nesting-depth": 3, 279 "max-nesting-depth": 3,
281 "no-duplicate-selectors": true, 280 "no-duplicate-selectors": true,
282 "no-empty-source": true, 281 "no-empty-source": true,
283 "no-eol-whitespace": true, 282 "no-eol-whitespace": true,
284 "no-extra-semicolons": true, 283 "no-extra-semicolons": true,
285 "no-indistinguishable-colors": true,
juliandoucette 2016/11/10 11:42:58 Removed because it creates false positives with SC
286 "no-missing-end-of-source-newline": true, 284 "no-missing-end-of-source-newline": true,
287 "no-unsupported-browser-features": [true, {"browsers": "last 2 versions, > 1 %, IE 8"}] 285 "no-unsupported-browser-features": [
juliandoucette 2016/11/09 17:01:54 - Fixed invalid property value - Changed rule to b
Thomas Greiner 2017/07/07 21:45:01 Note that the requirements for the extension UIs d
288 286 true,
287 {
288 "browsers": "last 2 versions, Safari 6, IE 8",
ire 2017/07/07 15:51:29 Shouldn't this be "last 2 versions, IE >= 9" ?
juliandoucette 2017/07/07 20:15:04 Perhaps. We haven't set this is stone yet.
289 "ignore": ["css-gencontent", "css-mediaqueries"]
ire 2017/07/07 15:51:28 What about feature queries?
juliandoucette 2017/07/07 20:15:04 I didn't know that they existed at the time I made
290 }
291 ]
289 } 292 }
290 } 293 }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld