|
5 | 5 | "mocha": true, |
6 | 6 | "es6": true |
7 | 7 | }, |
8 | | - |
9 | 8 | "ecmaFeatures": { |
10 | 9 | "jsx": true, |
11 | 10 | "templateStrings": true, |
12 | 11 | "superInFunctions": false, |
13 | 12 | "classes": true, |
14 | 13 | "modules": true |
15 | 14 | }, |
16 | | - |
17 | 15 | "parser": "babel-eslint", |
18 | | - |
19 | 16 | "plugins": [ |
| 17 | + "babel", |
20 | 18 | "react" |
21 | 19 | ], |
22 | | - |
23 | 20 | "rules": { |
24 | 21 | "block-scoped-var": [0], |
25 | 22 | "brace-style": [2, "1tbs", { |
|
31 | 28 | "comma-style": [2, "last"], |
32 | 29 | "complexity": [0, 11], |
33 | 30 | "constructor-super": [2], |
34 | | - "consistent-return": [2], |
| 31 | + "consistent-return": [0], |
35 | 32 | "consistent-this": [0, "that"], |
36 | 33 | "curly": [2, "multi-line"], |
37 | 34 | "default-case": [2], |
|
43 | 40 | "func-names": [0], |
44 | 41 | "func-style": [0, "declaration"], |
45 | 42 | "generator-star-spacing": [2, "after"], |
46 | | - "strict": [2, "always"], |
47 | 43 | "guard-for-in": [0], |
48 | 44 | "handle-callback-err": [0], |
49 | 45 | "key-spacing": [2, { |
|
57 | 53 | "max-params": [0, 3], |
58 | 54 | "max-statements": [0, 10], |
59 | 55 | "new-parens": [2], |
60 | | - "new-cap": [2, { |
61 | | - "capIsNewExceptions": ["CSSModules", "ToInteger", "ToObject", "ToPrimitive", "ToUint32"] |
62 | | - }], |
| 56 | + "new-cap": [0], |
63 | 57 | "newline-after-var": [0], |
64 | 58 | "no-alert": [2], |
65 | 59 | "no-array-constructor": [2], |
|
80 | 74 | "no-else-return": [0], |
81 | 75 | "no-empty": [2], |
82 | 76 | "no-empty-character-class": [2], |
83 | | - "no-empty-label": [2], |
84 | 77 | "no-eq-null": [0], |
85 | 78 | "no-eval": [2], |
86 | 79 | "no-ex-assign": [2], |
|
150 | 143 | "no-undefined": [0], |
151 | 144 | "no-underscore-dangle": [0], |
152 | 145 | "no-unreachable": [2], |
153 | | - "no-unused-expressions": [2], |
| 146 | + "no-unused-expressions": [2, { |
| 147 | + "allowShortCircuit": true |
| 148 | + }], |
154 | 149 | "no-unused-vars": [1, { |
155 | 150 | "vars": "all", |
156 | 151 | "args": "after-used" |
|
165 | 160 | "no-with": [2], |
166 | 161 | "one-var": [0], |
167 | 162 | "operator-assignment": [0, "always"], |
168 | | - "operator-linebreak": [2, "after"], |
| 163 | + "operator-linebreak": [2, "before"], |
169 | 164 | "padded-blocks": [0], |
170 | 165 | "prefer-const": [2], |
| 166 | + "prefer-spread": [2], |
171 | 167 | "quote-props": [0], |
172 | 168 | "radix": [0], |
173 | 169 | "semi": [2], |
174 | | - "semi-spacing": [2, { |
175 | | - "before": false, |
176 | | - "after": true |
177 | | - }], |
178 | 170 | "sort-vars": [0], |
179 | | - "space-after-keywords": [2, "always"], |
180 | | - "space-before-function-paren": [2, { |
181 | | - "anonymous": "always", |
182 | | - "named": "always" |
183 | | - }], |
| 171 | + "keyword-spacing": [2, {"after": true}], |
| 172 | + "space-before-function-paren": [2, { "anonymous": "always", "named": "always" }], |
184 | 173 | "space-before-blocks": [0, "always"], |
185 | 174 | "space-in-brackets": [0, "never", { |
186 | 175 | "singleValue": true, |
|
192 | 181 | }], |
193 | 182 | "space-in-parens": [2, "never"], |
194 | 183 | "space-infix-ops": [2], |
195 | | - "space-return-throw-case": [2], |
196 | 184 | "space-unary-ops": [2, { |
197 | 185 | "words": true, |
198 | 186 | "nonwords": false |
|
208 | 196 | "yoda": [2, "never", { |
209 | 197 | "exceptRange": true |
210 | 198 | }], |
211 | | - "react/jsx-uses-react": [2], |
212 | | - "react/jsx-uses-vars": [2], |
213 | | - "react/react-in-jsx-scope": [2] |
| 199 | + "babel/object-shorthand": [2], |
| 200 | + "react/display-name": 0, |
| 201 | + "react/jsx-boolean-value": 1, |
| 202 | + "react/jsx-closing-bracket-location": 0, |
| 203 | + "react/jsx-curly-spacing": 1, |
| 204 | + "react/jsx-max-props-per-line": 0, |
| 205 | + "react/jsx-indent-props": 0, |
| 206 | + "react/jsx-no-duplicate-props": 1, |
| 207 | + "react/jsx-no-undef": 1, |
| 208 | + "react/jsx-pascal-case": 1, |
| 209 | + "react/sort-prop-types": 1, |
| 210 | + "react/jsx-sort-props": 0, |
| 211 | + "react/jsx-uses-react": 1, |
| 212 | + "react/jsx-uses-vars": 1, |
| 213 | + "react/no-danger": 0, |
| 214 | + "react/no-did-mount-set-state": 0, |
| 215 | + "react/no-did-update-set-state": 1, |
| 216 | + "react/no-multi-comp": 0, |
| 217 | + "react/no-unknown-property": 1, |
| 218 | + "react/prop-types": [2, {"ignore": ["onMouseDown", "onTouchStart"]}], |
| 219 | + "react/react-in-jsx-scope": 1, |
| 220 | + "react/require-extension": 1, |
| 221 | + "react/self-closing-comp": 1, |
| 222 | + "react/sort-comp": 1, |
| 223 | + "react/wrap-multilines": 1 |
214 | 224 | } |
215 | 225 | } |
0 commit comments