-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
125 lines (125 loc) · 2.18 KB
/
.eslintrc
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"env": {
"browser": true,
"node": true,
"jquery": true,
"es6": true
},
"ext": {
".es6": true,
".js": false
},
"parserOptions": {
"ecmaVersion": 6
},
"globals": {
"mechanic": true,
"yarify": true
},
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"templateStrings": true
},
"rules": {
"no-var": 2,
"no-trailing-spaces": 0,
"no-extra-boolean-cast": 2,
// disallow double-negation boolean casts in a boolean context
"no-extra-parens": 0,
// disallow unnecessary parentheses (off by default)
"no-extra-semi": 2,
// disallow unnecessary semicolons
"indent": 2,
"brace-style": [
2,
"stroustrup"
],
"curly": 2,
"camelcase": 0,
"quotes": [
2,
"double"
],
"handle-callback-err": [
2,
"^(err|error|errors)$"
],
"eqeqeq": 0,
"dot-notation": 0,
"no-underscore-dangle": 0,
"no-multi-spaces": 2,
"space-unary-ops": [
1,
{
"words": true,
"nonwords": false
}
],
"keyword-spacing": [
2,
{
"before": true,
"after": true,
"overrides": {}
}
],
"no-else-return": 2,
"guard-for-in": 2,
"no-return-assign": 2,
"block-scoped-var": 2,
"no-undef": 2,
"new-cap": 0,
"comma-style": [
1,
"last"
],
"comma-spacing": [
1,
{
"before": false,
"after": true
}
],
"no-unused-vars": [
1,
{
"vars": "local",
"args": "after-used"
}
],
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never"
}
],
"space-in-parens": [
2,
"never"
],
"no-shadow": 0,
"no-use-before-define": [
2,
"nofunc"
],
"arrow-body-style": [
2,
"always"
],
"arrow-parens": [
2,
"always"
],
"no-confusing-arrow": 2,
"no-const-assign": 2,
"no-constant-condition": 2,
"no-unreachable": 2,
"no-path-concat": 2,
"prefer-arrow-callback": 2
}
}