1 | module.exports = {
|
2 | rules: {
|
3 | 'arrow-body-style': [2, 'as-needed'],
|
4 | 'arrow-parens': [2, 'as-needed'],
|
5 | 'arrow-spacing': [2, {
|
6 | before: true,
|
7 | after: true
|
8 | }],
|
9 | 'no-confusing-arrow': [2],
|
10 | 'no-duplicate-imports': [2],
|
11 | 'no-return-await': [2],
|
12 | 'no-template-curly-in-string': [2],
|
13 | 'no-useless-computed-key': [2],
|
14 | 'no-useless-constructor': [2],
|
15 | 'no-useless-rename': [2],
|
16 | 'no-var': [2],
|
17 | 'prefer-arrow-callback': [2],
|
18 | 'prefer-const': [2, {destructuring: 'all'}],
|
19 | 'prefer-promise-reject-errors': [2],
|
20 | 'prefer-rest-params': [2],
|
21 | 'prefer-spread': [2],
|
22 | 'prefer-template': [2],
|
23 | 'require-atomic-updates': [2],
|
24 | 'require-await': [2],
|
25 | 'rest-spread-spacing': [2, 'never'],
|
26 | 'symbol-description': [2],
|
27 | 'template-curly-spacing': [2, 'never']
|
28 | },
|
29 | env: {
|
30 | es6: true
|
31 | },
|
32 | parserOptions: {
|
33 | ecmaVersion: 2018
|
34 | }
|
35 | };
|