-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
73 lines (73 loc) · 1.4 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = {
root: true,
env: {
es6: true,
node: true
},
plugins: ['promise'],
extends: ['eslint:recommended'],
rules: {
'no-console': 'off',
'no-regex-spaces': 'off',
'no-unused-vars': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-undef': 'off',
'no-template-curly-in-string': 1,
'consistent-return': 1,
'array-callback-return': 1,
eqeqeq: 2,
'no-alert': 2,
'no-caller': 2,
'no-eq-null': 2,
'no-eval': 2,
'no-extend-native': 1,
'no-extra-bind': 1,
'no-extra-label': 1,
'no-floating-decimal': 2,
'no-implicit-coercion': 1,
'no-loop-func': 1,
'no-new-func': 2,
'no-new-wrappers': 1,
'no-throw-literal': 2,
'prefer-promise-reject-errors': 2,
'for-direction': 2,
'getter-return': 2,
'no-await-in-loop': 2,
'no-compare-neg-zero': 2,
'no-catch-shadow': 1,
'no-shadow-restricted-names': 2,
'callback-return': 2,
'handle-callback-err': 2,
'no-path-concat': 1,
'prefer-arrow-callback': 1,
'promise/no-nesting': 1,
'no-var': 'error',
'prefer-const': [
'error',
{
destructuring: 'any',
ignoreReadBeforeAssign: false
}
],
camelcase: [
2,
{
properties: 'always'
}
],
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}
],
indent: ['warn', 'tab'],
'no-tabs': 'off'
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017
}
};