-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
100 lines (99 loc) · 2.17 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
module.exports = {
env: {
browser: false,
node: true,
es6: true
},
globals: {
console: false,
exports: false,
module: false,
require: false,
process: false
},
rules: {
'comma-dangle': 1,
'no-cond-assign': 1,
'no-debugger': 2,
'no-dupe-args': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-extra-semi': 2,
'block-scoped-var': 2,
'no-bitwise': 0,
'curly': 2,
'default-case': 1,
'camelcase': 0,
'eqeqeq': 0,
'no-use-before-define': 2,
'no-labels': 2,
'no-new-wrappers': 2,
'no-octal-escape': 2,
'no-magic-numbers': 1,
'radix': 0,
'no-with': 2,
'no-void': 2,
'eol-last': 0,
'no-undef': 2,
'no-unused-vars': 1,
'semi': 2,
'quotes': [
2,
'single',
'avoid-escape'
],
'no-trailing-spaces': 2,
'brace-style': [
2,
'1tbs'
],
'strict': 0,
'keyword-spacing': [
2,
{
before: true,
after: true,
overrides: {}
}
],
'space-infix-ops': 2,
'no-loop-func': 1,
'handle-callback-err': 1,
'no-process-exit': 1,
'no-lonely-if': 1,
'no-redeclare': 2,
// ES6 rules
'arrow-body-style': [
1,
'as-needed'
],
'arrow-spacing': [
2,
{
before: true,
after: true
}
],
'arrow-parens': [
1,
'always'
],
'no-confusing-arrow': [
'error',
{
allowParens: true
}
],
'no-dupe-class-members': 2,
'no-useless-computed-key': 2,
'no-const-assign': 2,
'no-class-assign': 2,
'prefer-arrow-callback': 0,
'prefer-const': 1,
'prefer-template': 1,
'template-curly-spacing': [
1,
'always'
]
}
};