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: Created Oct. 27, 2016, 12:28 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,
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 "unit-whitelist": ["px", "%"],
juliandoucette 2016/11/09 17:01:54 Removed because whitelist requires array per prope
33 32
34 "value-keyword-case": "lower", 33 "value-keyword-case": "lower",
35 "value-no-vendor-prefix": true, 34 "value-no-vendor-prefix": true,
36 35
37 "value-list-comma-newline-before": "never-multi-line", 36 "value-list-comma-newline-before": "never-multi-line",
38 "value-list-comma-space-after": "always-single-line", 37 "value-list-comma-space-after": "always-single-line",
39 "value-list-comma-space-before": "never-single-line", 38 "value-list-comma-space-before": "never-single-line",
40 "value-list-max-empty-lines": 0, 39 "value-list-max-empty-lines": 0,
41 40
42 "custom-property-empty-line-before": "never", 41 "custom-property-empty-line-before": "never",
43 "custom-property-no-outside-root": true, 42 "custom-property-no-outside-root": true,
44 43
45 "property-case": "lower", 44 "property-case": "lower",
46 "property-no-unknown": true, 45 "property-no-unknown": true,
47 "property-no-vendor-prefix": true, 46 "property-no-vendor-prefix": true,
48 47
49 "declaration-bang-space-after": "never", 48 "declaration-bang-space-after": "never",
50 "declaration-bang-space-before": "always", 49 "declaration-bang-space-before": "always",
51 "declaration-colon-newline-after": "always-multi-line", 50 "declaration-colon-newline-after": "always-multi-line",
52 "declaration-colon-space-after": "always", 51 "declaration-colon-space-after": "always",
53 "declaration-colon-space-before": "never", 52 "declaration-colon-space-before": "never",
54 "declaration-empty-line-before": "never", 53 "declaration-empty-line-before": "never",
55 "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
56 "declaration-property-unit-whitelist": ["px", "%"],
juliandoucette 2016/11/09 17:01:54 Removed because whitelist requires array per prope
57 55
58 "declaration-block-no-duplicate-properties": true, 56 "declaration-block-no-duplicate-properties": true,
59 "declaration-block-no-ignored-properties": true, 57 "declaration-block-no-ignored-properties": true,
60 "declaration-block-no-redundant-longhand-properties": true, 58 "declaration-block-no-redundant-longhand-properties": true,
61 "declaration-block-no-shorthand-property-overrides": true, 59 "declaration-block-no-shorthand-property-overrides": true,
62 "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
63 "display", 61 "display",
64 "visibility", 62 "visibility",
65 63
66 "position", 64 "position",
67 "top", 65 "top",
68 "right", 66 "right",
69 "bottom", 67 "bottom",
70 "left", 68 "left",
71 "float", 69 "float",
72 "clear", 70 "clear",
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "animation-name", 197 "animation-name",
200 "animation-duration", 198 "animation-duration",
201 "animation-play-state", 199 "animation-play-state",
202 "animation-timing-function", 200 "animation-timing-function",
203 "animation-delay", 201 "animation-delay",
204 "animation-iteration-count", 202 "animation-iteration-count",
205 "animation-iteration-count", 203 "animation-iteration-count",
206 "animation-direction" 204 "animation-direction"
207 ], 205 ],
208 "declaration-block-semicolon-newline-after": "always", 206 "declaration-block-semicolon-newline-after": "always",
209 "declaration-block-semicolon-newline-before": "never", 207 "declaration-block-semicolon-newline-before": "never-multi-line",
210 "declaration-block-semicolon-space-after": "never-single-line", 208 "declaration-block-semicolon-space-after": "never-single-line",
211 "declaration-block-semicolon-space-before": "never", 209 "declaration-block-semicolon-space-before": "never",
212 "declaration-block-single-line-max-declarations": 1, 210 "declaration-block-single-line-max-declarations": 1,
213 "declaration-block-trailing-semicolon": "always", 211 "declaration-block-trailing-semicolon": "always",
214 212
215 "block-closing-brace-empty-line-before": "never", 213 "block-closing-brace-empty-line-before": "never",
216 "block-closing-brace-newline-after": "always", 214 "block-closing-brace-newline-after": "always",
217 "block-closing-brace-newline-before": "always", 215 "block-closing-brace-newline-before": "always",
218 "block-closing-brace-space-after": "always-single-line", 216 "block-closing-brace-space-after": "always-single-line",
219 "block-closing-brace-space-before": "always-single-line", 217 "block-closing-brace-space-before": "always-single-line",
220 "block-no-empty": true, 218 "block-no-empty": true,
221 "block-no-single-line": true, 219 "block-no-single-line": true,
222 "block-opening-brace-newline-after": "always-single-line", 220 "block-opening-brace-newline-after": "always",
223 "block-opening-brace-newline-before": "always-single-line", 221 "block-opening-brace-newline-before": "always-single-line",
224 "block-opening-brace-space-after": "always-single-line", 222 "block-opening-brace-space-after": "always-single-line",
225 "block-opening-brace-space-before": "always-single-line", 223 "block-opening-brace-space-before": "always-single-line",
226 224
227 "selector-attribute-brackets-space-inside": "never", 225 "selector-attribute-brackets-space-inside": "never",
228 "selector-attribute-operator-space-after": "never", 226 "selector-attribute-operator-space-after": "never",
229 "selector-attribute-operator-space-before": "never", 227 "selector-attribute-operator-space-before": "never",
230 "selector-attribute-quotes": "always", 228 "selector-attribute-quotes": "always",
231 "selector-combinator-space-after": "always", 229 "selector-combinator-space-after": "always",
232 "selector-combinator-space-before": "always", 230 "selector-combinator-space-before": "always",
233 "selector-descendant-combinator-no-non-space": true, 231 "selector-descendant-combinator-no-non-space": true,
234 "selector-max-compound-selectors": 3, 232 "selector-max-compound-selectors": 3,
235 "selector-no-empty": true, 233 "selector-no-empty": true,
236 "selector-no-qualifying-type": true, 234 "selector-no-qualifying-type": [true, {"ignore": "attribute"}],
237 "selector-no-vendor-prefix": true, 235 "selector-no-vendor-prefix": true,
238 "selector-pseudo-class-case": "lower", 236 "selector-pseudo-class-case": "lower",
239 "selector-pseudo-class-no-unknown": true, 237 "selector-pseudo-class-no-unknown": true,
240 "selector-pseudo-class-parentheses-space-inside": "never", 238 "selector-pseudo-class-parentheses-space-inside": "never",
241 "selector-pseudo-element-case": "lower", 239 "selector-pseudo-element-case": "lower",
242 "selector-pseudo-element-colon-notation": "single", 240 "selector-pseudo-element-colon-notation": "single",
243 "selector-pseudo-element-no-unknown": true, 241 "selector-pseudo-element-no-unknown": true,
244 "selector-type-case": "lower", 242 "selector-type-case": "lower",
245 "selector-type-no-unknown": true, 243 "selector-type-no-unknown": true,
246 "selector-max-empty-lines": 0, 244 "selector-max-empty-lines": 0,
247 245
248 "selector-list-comma-newline-after": "always", 246 "selector-list-comma-newline-after": "always",
249 "selector-list-comma-newline-before": "never", 247 "selector-list-comma-newline-before": "never-multi-line",
250 "selector-list-comma-space-after": "always-single-line", 248 "selector-list-comma-space-after": "always-single-line",
251 "selector-list-comma-space-before": "never", 249 "selector-list-comma-space-before": "never",
252 250
253 "root-no-standard-properties": true, 251 "root-no-standard-properties": true,
254 252
255 "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"]}],
256 "rule-non-nested-empty-line-before": ["always", {"ignore": ["after-comment"] }], 254 "rule-non-nested-empty-line-before": ["always", {"ignore": ["after-comment"] }],
257 255
258 "media-feature-colon-space-after": "always", 256 "media-feature-colon-space-after": "always",
259 "media-feature-colon-space-before": "never", 257 "media-feature-colon-space-before": "never",
260 "media-feature-name-case": "lower", 258 "media-feature-name-case": "lower",
261 "media-feature-name-no-unknown": true, 259 "media-feature-name-no-unknown": true,
262 "media-feature-name-no-vendor-prefix": true, 260 "media-feature-name-no-vendor-prefix": true,
263 "media-feature-parentheses-space-inside": "never", 261 "media-feature-parentheses-space-inside": "never",
264 "media-feature-range-operator-space-after": "always", 262 "media-feature-range-operator-space-after": "always",
265 "media-feature-range-operator-space-before": "always", 263 "media-feature-range-operator-space-before": "always",
266 264
267 "media-query-list-comma-newline-after": "never", 265 "media-query-list-comma-newline-after": "never-multi-line",
268 "media-query-list-comma-newline-before": "never", 266 "media-query-list-comma-newline-before": "never-multi-line",
269 "media-query-list-comma-space-after": "always", 267 "media-query-list-comma-space-after": "always",
270 "media-query-list-comma-space-before": "never", 268 "media-query-list-comma-space-before": "never",
271 269
272 "at-rule-empty-line-before": ["always", {"except": ["all-nested"], "ignore": ["after-comment"]}],
273 "at-rule-name-case": "lower", 270 "at-rule-name-case": "lower",
274 "at-rule-name-newline-after": "never",
275 "at-rule-name-space-after": "always",
276 "at-rule-no-unknown": true, 271 "at-rule-no-unknown": true,
277 "at-rule-no-vendor-prefix": true, 272 "at-rule-no-vendor-prefix": true,
278 "at-rule-semicolon-newline-after": "always", 273 "at-rule-semicolon-newline-after": "always",
279 274
280 "comment-no-empty": true, 275 "comment-no-empty": true,
281 "comment-whitespace-inside": "always",
282 276
283 "indentation": 2, 277 "indentation": 2,
284 "max-empty-lines": 1, 278 "max-empty-lines": 1,
285 "max-nesting-depth": 3, 279 "max-nesting-depth": 3,
286 "no-duplicate-selectors": true, 280 "no-duplicate-selectors": true,
287 "no-empty-source": true, 281 "no-empty-source": true,
288 "no-eol-whitespace": true, 282 "no-eol-whitespace": true,
289 "no-extra-semicolons": true, 283 "no-extra-semicolons": true,
290 "no-indistinguishable-colors": true,
291 "no-missing-end-of-source-newline": true, 284 "no-missing-end-of-source-newline": true,
292 "no-unsupported-browser-features": "last 1 versions, > 5%, IE 8" 285 "no-unsupported-browser-features": [
Thomas Greiner 2017/07/07 21:45:01 Note that the requirements for the extension UIs d
293 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 ]
294 } 292 }
295 } 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