-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
46 lines (42 loc) · 1020 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
42
43
44
45
46
{
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'script'
},
'env': {
'browser': true,
'es6': true,
'node': true
},
'rules': {
'class-methods-use-this': ['error', {
exceptMethods: [],
}],
'consistent-return': 'warn',
'curly': ['error', 'all'],
'default-case': ['error', { commentPattern: '^no default$' }],
'eqeqeq': ['error', 'allow-null'],
'no-alert': 'error',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty-character-class': 'error',
'no-empty': 'error',
'no-empty-function': ['error', {
allow: [
'arrowFunctions',
'functions',
'methods',
]
}],
'no-eq-null': 'error',
'no-eval': 'error',
'no-ex-assign': 'error',
'no-extra-semi': 'error',
'no-func-assign': 'error',
'no-global-assign': ['error', { exceptions: [] }],
'quotes': ['error', 'single'],
}
}