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

Side by Side Diff: .eslintrc.json

Issue 29374555: Issue 3692 - Add base ESLint configuration (Closed)
Patch Set: Added browser env Created Feb. 6, 2017, 6 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 "extends": "eslint:recommended",
3 "env": {
4 "es6": true,
5 "browser": true
Wladimir Palant 2017/02/06 09:55:19 This is wrong IMHO - this environment should be sp
kzar 2017/02/06 10:00:27 Done.
6 },
7 "rules": {
8 "array-bracket-spacing": "error",
9 "arrow-spacing": "error",
10 "block-scoped-var": "error",
11 "block-spacing": "error",
12 "brace-style": ["error", "allman", {"allowSingleLine": true}],
13 "camelcase": ["error", {"properties": "never"}],
14 "comma-dangle": "error",
15 "comma-spacing": "error",
16 "comma-style": "error",
17 "computed-property-spacing": "error",
18 "curly": ["error", "multi-or-nest", "consistent"],
19 "eol-last": "error",
20 "func-call-spacing": "error",
21 "indent": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first"}],
22 "key-spacing": "error",
23 "keyword-spacing": "error",
24 "linebreak-style": "error",
25 "lines-around-directive": "error",
26 "max-len": ["error", 80, {"ignoreUrls": true}],
27 "new-parens": "error",
28 "no-array-constructor": "error",
29 "no-caller": "error",
30 "no-catch-shadow": "error",
31 "no-cond-assign": "off",
32 "no-console": ["error", {"allow": ["warn", "error", "trace"]}],
33 "no-control-regex": "off",
34 "no-else-return": "error",
35 "no-eval": "error",
36 "no-extra-bind": "error",
37 "no-extra-label": "error",
38 "no-implied-eval": "error",
39 "no-labels": "error",
40 "no-lone-blocks": "error",
41 "no-lonely-if": "error",
42 "no-multi-spaces": "error",
43 "no-new-func": "error",
44 "no-new-object": "error",
45 "no-proto": "error",
46 "no-self-compare": "error",
47 "no-shadow": "error",
48 "no-trailing-spaces": "error",
49 "no-unneeded-ternary": "error",
50 "no-unused-vars": "off",
51 "no-useless-computed-key": "error",
52 "no-useless-concat": "error",
53 "no-useless-escape": "error",
54 "no-useless-return": "error",
55 "no-var": "error",
56 "no-warning-comments": "error",
57 "no-whitespace-before-property": "error",
58 "no-with": "error",
59 "object-curly-spacing": "error",
60 "object-shorthand": ["error", "always", {
61 "avoidExplicitReturnArrows": true
62 }],
63 "one-var": ["error", "never"],
64 "operator-assignment": "error",
65 "operator-linebreak": "error",
66 "padded-blocks": ["error", "never"],
67 "prefer-arrow-callback": "error",
68 "prefer-destructuring": ["error", {"array": false}],
69 "prefer-numeric-literals": "error",
70 "prefer-rest-params": "error",
71 "prefer-spread": "error",
72 "quote-props": ["error", "as-needed"],
73 "quotes": ["error", "double", {"avoidEscape": true}],
74 "radix": "error",
75 "rest-spread-spacing": "error",
76 "semi": "error",
77 "semi-spacing": "error",
78 "space-before-function-paren": ["error", "never"],
79 "space-in-parens": "error",
80 "space-infix-ops": "error",
81 "space-unary-ops": "error",
82 "spaced-comment": "error",
83 "strict": ["error", "global"],
84 "valid-jsdoc": ["error", {
85 "requireParamDescription": false,
86 "requireReturn": false,
87 "requireReturnDescription": false
88 }],
89 "yield-star-spacing": "error",
90 "yoda": "error"
91 }
92 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld