|
13 | 13 | ], |
14 | 14 | "parser": "babel-eslint", |
15 | 15 | "parserOptions": { |
16 | | - "ecmaVersion": 6, |
| 16 | + "ecmaVersion": 2018, |
17 | 17 | "sourceType": "module", |
18 | 18 | "ecmaFeatures": { |
19 | | - "experimentalObjectRestSpread": true, |
20 | 19 | "jsx": true |
21 | 20 | } |
22 | 21 | }, |
|
120 | 119 | "jsx-quotes": ["error", "prefer-double"], |
121 | 120 | "key-spacing": [ |
122 | 121 | "error", |
123 | | - {"beforeColon": false, "mode": "strict", } |
| 122 | + {"beforeColon": false, "mode": "strict"} |
124 | 123 | ], |
125 | 124 | "keyword-spacing": [ |
126 | 125 | "error", |
|
145 | 144 | "lines-between-class-members": [ |
146 | 145 | "error", |
147 | 146 | "always", |
148 | | - {exceptAfterSingleLine: true} |
| 147 | + {"exceptAfterSingleLine": true} |
149 | 148 | ], |
150 | 149 | "max-depth": ["warn", 2], |
151 | 150 | "max-len": [ |
152 | 151 | "warn", |
153 | | - {"code": 80, "comments": 80, "ignoreUrls": true}, |
| 152 | + {"code": 80, "comments": 80, "ignoreUrls": true} |
154 | 153 | ], |
155 | 154 | "max-lines": [ |
156 | 155 | "warn", |
|
306 | 305 | "require-await": "error", |
307 | 306 | "require-jsdoc": [ |
308 | 307 | "warn", |
309 | | - "require": { |
310 | | - "FunctionDeclaration": true, |
311 | | - "MethodDefinition": false, |
312 | | - "ClassDeclaration": false, |
313 | | - "ArrowFunctionExpression": true, |
314 | | - "FunctionExpression": false |
| 308 | + { |
| 309 | + "require": { |
| 310 | + "FunctionDeclaration": true, |
| 311 | + "MethodDefinition": false, |
| 312 | + "ClassDeclaration": false, |
| 313 | + "ArrowFunctionExpression": true, |
| 314 | + "FunctionExpression": false |
| 315 | + } |
315 | 316 | } |
316 | 317 | ], |
317 | 318 | "semi": ["error", "always"], |
|
365 | 366 | "matchDescription": ".+", |
366 | 367 | "requireParamDescription": false, |
367 | 368 | "requireReturnDescription": false |
368 | | - }, |
| 369 | + } |
369 | 370 | ], |
370 | 371 | "vars-on-top": "warn", |
371 | 372 | "wrap-iife": [ |
|
374 | 375 | ], |
375 | 376 | "yield-star-spacing": "error", |
376 | 377 |
|
377 | | - // https://github.com/benmosher/eslint-plugin-import |
378 | 378 | "import/first": "error", |
379 | 379 | "import/no-amd": "error", |
380 | 380 | "import/no-webpack-loader-syntax": "error", |
381 | 381 |
|
382 | | - // https://github.com/yannickcr/eslint-plugin-react |
383 | 382 | "react/jsx-pascal-case": "error", |
384 | 383 | "react/style-prop-object": "error" |
385 | 384 | } |
|
0 commit comments