|
1 | 1 | { |
2 | 2 | "parserOptions": { |
3 | | - "ecmaVersion": 8, |
| 3 | + "ecmaVersion": 9, |
4 | 4 | "sourceType": "script" |
5 | 5 | }, |
6 | 6 | "env": { |
|
10 | 10 | }, |
11 | 11 | "rules": { |
12 | 12 | "no-unused-vars": [2, { |
13 | | - "argsIgnorePattern": "req|res|next|err", |
| 13 | + "argsIgnorePattern": "req|res|next|err" |
14 | 14 | }], |
15 | 15 | "no-param-reassign": [0], |
16 | 16 | "no-restricted-syntax": [ |
17 | 17 | "error", |
18 | 18 | { |
19 | 19 | "selector": "ForInStatement", |
20 | | - "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.", |
| 20 | + "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array." |
21 | 21 | }, |
22 | 22 | { |
23 | 23 | "selector": "LabeledStatement", |
24 | | - "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.", |
| 24 | + "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." |
25 | 25 | }, |
26 | 26 | { |
27 | 27 | "selector": "WithStatement", |
28 | | - "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.", |
29 | | - }, |
| 28 | + "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." |
| 29 | + } |
30 | 30 | ], |
31 | 31 | "comma-dangle": ["error", { |
32 | 32 | "arrays": "always-multiline", |
33 | 33 | "objects": "always-multiline", |
34 | 34 | "imports": "always-multiline", |
35 | 35 | "exports": "always-multiline", |
36 | | - "functions": "never", |
| 36 | + "functions": "never" |
37 | 37 | }], |
38 | 38 | "no-console": [0], |
39 | 39 | "no-await-in-loop": [0], |
40 | 40 | "no-shadow": [0], |
41 | | - "import/no-extraneous-dependencies": ['error', {"devDependencies": true }], |
| 41 | + "import/no-extraneous-dependencies": ["error", {"devDependencies": true }], |
42 | 42 | "no-unused-expressions": [0] |
43 | 43 | }, |
44 | 44 | "extends": "airbnb-base" |
|
0 commit comments