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

Delta Between Two Patch Sets: eslintrc.json

Issue 29346539: Issue 3692 - Created global eslintrc (Closed)
Left Patch Set: Changed all "warn"ings to "error"s Created Oct. 13, 2016, 2:05 p.m.
Right Patch Set: turned no-eq-null and no-unused-vars off Created Oct. 13, 2016, 2:13 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 {
2 "extends": "eslint:recommended", 2 "extends": "eslint:recommended",
3 "rules": { 3 "rules": {
4
4 /* MDN General practices */ 5 /* MDN General practices */
5 "no-else-return": "error", 6 "no-else-return": "error",
6 "no-alert": "error", 7 "no-alert": "error",
7 "indent": ["error", 2], 8 "indent": ["error", 2],
8 "valid-jsdoc": "error", 9 "valid-jsdoc": "error",
9 "eol-last": "error", 10 "eol-last": "error",
10 "vars-on-top": "off", 11 "vars-on-top": "off",
Sebastian Noack 2017/02/01 19:50:34 According to the documentation, it seems vars-on-t
12
11 /* MDN Naming and formatting code */ 13 /* MDN Naming and formatting code */
12 "no-trailing-spaces": "error", 14 "no-trailing-spaces": "error",
13 "max-len": ["error", 80], 15 "max-len": ["error", 80],
14 "brace-style": ["error", "allman"], 16 "brace-style": ["error", "allman"],
17
15 /* MDN JavaScript practices */ 18 /* MDN JavaScript practices */
16 "no-eq-null": "off",
17 "consistent-return": "error", 19 "consistent-return": "error",
18 "no-array-constructor": "error", 20 "no-array-constructor": "error",
19 "no-new-object": "error", 21 "no-new-object": "error",
22
20 /* ABP General */ 23 /* ABP General */
21 "no-warning-comments": "error", 24 "no-warning-comments": "error",
25
22 /* Palant recommends */ 26 /* Palant recommends */
27 "no-unused-vars": "off",
Sebastian Noack 2017/02/01 19:50:34 I just noticed, instead of completely disabling no
23 "array-bracket-spacing": "error", 28 "array-bracket-spacing": "error",
24 "arrow-spacing": "error", 29 "arrow-spacing": "error",
25 "comma-spacing": "error", 30 "comma-spacing": "error",
26 "comma-style": "error", 31 "comma-style": "error",
27 "computed-property-spacing": "error", 32 "computed-property-spacing": "error",
28 "key-spacing": "error", 33 "key-spacing": "error",
29 "keyword-spacing": "error", 34 "keyword-spacing": "error",
30 "new-parens": "error", 35 "new-parens": "error",
31 "func-call-spacing": "error", 36 "func-call-spacing": "error",
32 "no-var": "error", 37 "no-var": "error",
33 "no-whitespace-before-property": "error", 38 "no-whitespace-before-property": "error",
34 "object-curly-spacing": "error", 39 "object-curly-spacing": "error",
35 "operator-assignment": "error", 40 "operator-assignment": "error",
36 "operator-linebreak": "error", 41 "operator-linebreak": "error",
37 "padded-blocks": ["error", "never"], 42 "padded-blocks": ["error", "never"],
38 "prefer-rest-params": "error", 43 "prefer-rest-params": "error",
39 "prefer-spread": "error", 44 "prefer-spread": "error",
40 "require-yield": "error", 45 "require-yield": "error",
Sebastian Noack 2017/02/01 19:50:34 It seems this is already included in eslint:recomm
41 "quotes": ["error", "double", {"avoidEscape": true}], 46 "quotes": ["error", "double", {"avoidEscape": true}],
42 "semi": "error", 47 "semi": "error",
43 "semi-spacing": "error", 48 "semi-spacing": "error",
44 "space-before-function-paren": ["error", "never"], 49 "space-before-function-paren": ["error", "never"],
45 "space-in-parens": "error", 50 "space-in-parens": "error",
46 "space-infix-ops": "error", 51 "space-infix-ops": "error",
47 "space-unary-ops": "error", 52 "space-unary-ops": "error",
48 "spaced-comment": "error", 53 "spaced-comment": "error",
49 "yield-star-spacing": "error" 54 "yield-star-spacing": "error"
50 } 55 }
51 } 56 }
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