|
1 | 1 | { |
2 | 2 | "parser": "babel-eslint", |
3 | 3 |
|
4 | | - "plugins": [ |
5 | | - "babel", |
6 | | - "flowtype" |
7 | | - ], |
| 4 | + "plugins": ["babel", "flowtype"], |
8 | 5 |
|
9 | 6 | "env": { |
10 | 7 | "es6": true, |
|
16 | 13 | "flowtype/space-before-type-colon": [2, "never"], |
17 | 14 | "flowtype/space-before-generic-bracket": [2, "never"], |
18 | 15 | "flowtype/union-intersection-spacing": [2, "always"], |
19 | | - "flowtype/no-weak-types": [2, {"any": false}], |
| 16 | + "flowtype/no-weak-types": [2, { "any": false }], |
20 | 17 | "flowtype/define-flow-type": 2, |
21 | 18 | "flowtype/use-flow-type": 2, |
22 | 19 | "flowtype/semi": 2, |
23 | 20 |
|
24 | 21 | "arrow-spacing": 2, |
25 | 22 | "block-scoped-var": 0, |
26 | | - "brace-style": [2, "1tbs", {"allowSingleLine": true}], |
| 23 | + "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
27 | 24 | "callback-return": 2, |
28 | | - "camelcase": [2, {"properties": "always"}], |
| 25 | + "camelcase": [2, { "properties": "always" }], |
29 | 26 | "comma-dangle": 0, |
30 | 27 | "comma-spacing": 0, |
31 | 28 | "comma-style": [2, "last"], |
|
41 | 38 | "eqeqeq": 2, |
42 | 39 | "func-names": 0, |
43 | 40 | "func-style": 0, |
44 | | - "generator-star-spacing": [2, {"before": true, "after": false}], |
| 41 | + "generator-star-spacing": [2, { "before": true, "after": false }], |
45 | 42 | "guard-for-in": 2, |
46 | 43 | "handle-callback-err": [2, "error"], |
47 | 44 | "id-length": 0, |
48 | 45 | "id-match": [2, "^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$"], |
49 | 46 | "init-declarations": 0, |
50 | | - "key-spacing": [2, {"beforeColon": false, "afterColon": true}], |
| 47 | + "key-spacing": [2, { "beforeColon": false, "afterColon": true }], |
51 | 48 | "keyword-spacing": 2, |
52 | 49 | "linebreak-style": 2, |
53 | 50 | "lines-around-comment": 0, |
|
101 | 98 | "no-irregular-whitespace": 2, |
102 | 99 | "no-iterator": 2, |
103 | 100 | "no-label-var": 2, |
104 | | - "no-labels": [2, {"allowLoop": true}], |
| 101 | + "no-labels": [2, { "allowLoop": true }], |
105 | 102 | "no-lone-blocks": 2, |
106 | 103 | "no-lonely-if": 2, |
107 | 104 | "no-loop-func": 0, |
|
151 | 148 | "no-unneeded-ternary": 2, |
152 | 149 | "no-unreachable": 2, |
153 | 150 | "no-unused-expressions": 2, |
154 | | - "no-unused-vars": [2, {"vars": "all", "args": "after-used"}], |
| 151 | + "no-unused-vars": [2, { "vars": "all", "args": "after-used" }], |
155 | 152 | "no-use-before-define": 0, |
156 | 153 | "no-useless-call": 2, |
157 | 154 | "no-useless-escape": 2, |
|
168 | 165 | "prefer-const": 2, |
169 | 166 | "prefer-reflect": 0, |
170 | 167 | "prefer-spread": 0, |
171 | | - "quote-props": [2, "as-needed", {"numbers": true}], |
| 168 | + "quote-props": [2, "as-needed", { "numbers": true }], |
172 | 169 | "radix": 2, |
173 | 170 | "require-yield": 2, |
174 | 171 | "semi": [2, "always"], |
175 | | - "semi-spacing": [2, {"before": false, "after": true}], |
| 172 | + "semi-spacing": [2, { "before": false, "after": true }], |
176 | 173 | "sort-vars": 0, |
177 | 174 | "space-before-blocks": [2, "always"], |
178 | | - "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], |
| 175 | + "space-before-function-paren": [ |
| 176 | + 2, |
| 177 | + { "anonymous": "always", "named": "never" } |
| 178 | + ], |
179 | 179 | "space-in-parens": 0, |
180 | | - "space-infix-ops": [2, {"int32Hint": false}], |
181 | | - "space-unary-ops": [2, {"words": true, "nonwords": false}], |
| 180 | + "space-infix-ops": [2, { "int32Hint": false }], |
| 181 | + "space-unary-ops": [2, { "words": true, "nonwords": false }], |
182 | 182 | "spaced-comment": [2, "always"], |
183 | 183 | "strict": 0, |
184 | 184 | "use-isnan": 2, |
|
187 | 187 | "vars-on-top": 0, |
188 | 188 | "wrap-iife": 2, |
189 | 189 | "wrap-regex": 0, |
190 | | - "yoda": [2, "never", {"exceptRange": true}] |
| 190 | + "yoda": [2, "never", { "exceptRange": true }] |
191 | 191 | } |
192 | 192 | } |
0 commit comments