-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (49 loc) · 1.18 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module.exports = {
env: { browser: true, es6: true, node: true, es2020: true },
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
strict: 0,
'no-param-reassign': 2,
'no-undef': 2,
'accessor-pairs': 2,
'comma-dangle': [2, 'always-multiline'],
'consistent-return': 2,
'dot-notation': 2,
eqeqeq: 2,
indent: [2, 2, { SwitchCase: 1 }],
'no-cond-assign': 2,
'no-constant-condition': 2,
'no-eval': 2,
'no-inner-declarations': [0],
'no-unneeded-ternary': 2,
radix: 2,
semi: [2, 'always'],
'comma-spacing': 2,
'comma-style': 2,
'eol-last': 2,
'linebreak-style': [2, 'unix'],
'new-parens': 2,
'no-lonely-if': 2,
'no-multiple-empty-lines': 2,
'no-nested-ternary': 2,
'no-spaced-func': 2,
'no-trailing-spaces': 2,
'operator-linebreak': 2,
quotes: [2, 'single'],
'semi-spacing': 2,
'space-unary-ops': 2,
'arrow-parens': 2,
'arrow-spacing': 2,
'no-class-assign': 2,
'no-dupe-class-members': 2,
'no-var': 2,
'object-shorthand': 0,
'prefer-const': 2,
'prefer-spread': 2,
'prefer-template': 2,
},
};