-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
41 lines (41 loc) · 865 Bytes
/
.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
module.exports = {
env: {
es2020: true,
node: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
},
globals: {
AnalysisView: true,
PollingView: true,
Prism: true,
Spinner: true,
Timer: true,
moment: true,
},
rules: {
'no-console': 'off',
'import/prefer-default-export': 'off',
'brace-style': [2, '1tbs', { allowSingleLine: true }],
'comma-style': [
2,
'first',
{ exceptions: { ArrayExpression: true, ObjectExpression: true } },
],
complexity: [2, 6],
curly: 2,
eqeqeq: [2, 'allow-null'],
'max-statements': [2, 30],
'no-shadow-restricted-names': 2,
'no-undef': 2,
'no-use-before-define': 2,
radix: 2,
semi: 2,
'space-infix-ops': 2,
strict: 0,
},
};