-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
191 lines (179 loc) · 5.66 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"extends": "eslint:recommended",
"root": true,
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"rules": {
"accessor-pairs": [ "error", {
"getWithoutSet": false,
"setWithoutGet": true
}],
"no-implicit-coercion": [ "warn", {
"boolean": true,
"number": true,
"string": true
}],
"no-warning-comments": [ "warn", {
"terms": [
"TODO"
],
"location": "start"
}],
"require-jsdoc": [ "warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": false
}
}],
"valid-jsdoc": [ "error", {
"prefer": {
"return": "returns"
},
"requireParamDescription": true,
"requireReturn": true,
"requireReturnDescription": false
}],
"arrow-spacing": [ "warn", {
"after": true,
"before": true
}],
"eqeqeq": [ "error", "smart" ],
"func-style": [ "warn", "declaration" ],
"id-length": [ "off", { "max": 32 } ],
"jsx-quotes": [ "warn", "prefer-double" ],
"linebreak-style": [ "warn", "unix" ],
"lines-around-comment": [ "warn", { "beforeBlockComment": true } ],
"max-depth": [ "warn", 4 ],
"max-len": [ "warn", 80 ],
"max-nested-callbacks": [ "warn", 2 ],
"max-params": [ "warn", 8 ],
"quote-props": [ "warn", "consistent-as-needed" ],
"quotes": [ "warn", "double" ],
"semi-spacing": [ "warn", { "before": false, "after": true }],
"semi": [ "error", "always" ],
"spaced-comment": [ "warn", "always" ],
"space-in-parens": [ "warn", "never" ],
"no-extra-parens": "error",
"no-throw-literal": "error",
"no-unexpected-multiline": "error",
"no-with": "error",
"block-scoped-var": "warn",
"consistent-return": "error",
"curly": "error",
"default-case": "warn",
"dot-location": [ "warn", "property" ],
"dot-notation": "warn",
"guard-for-in": "warn",
"no-alert": "error",
"no-caller": "error",
"no-case-declarations": "warn",
"no-div-regex": "warn",
"no-else-return": "warn",
"no-empty-pattern": "warn",
"no-eq-null": "warn",
"no-extend-native": "error",
"no-extra-bind": "warn",
"no-floating-decimal": "warn",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-labels": "warn",
"no-lone-blocks": "warn",
"no-loop-func": "error",
"no-magic-numbers": "warn",
"no-multi-spaces": "warn",
"no-multi-str": "warn",
"no-native-reassign": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-process-env": "warn",
"no-proto": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-void": "warn",
"radix": "warn",
"vars-on-top": "error",
"wrap-iife": [ "error", "outside" ],
"yoda": "warn",
"init-declarations": [ "error", "always" ],
"no-catch-shadow": "warn",
"no-delete-var": "error",
"no-label-var": "error",
"no-shadow-restricted-names": "error",
"no-shadow": "warn",
"no-undef-init": "off",
"no-undef": "error",
"no-undefined": "off",
"no-unused-vars": "warn",
"no-use-before-define": "error",
"callback-return": [ "warn", [ "callback", "next" ]],
"global-require": "error",
"handle-callback-err": "warn",
"no-mixed-requires": "warn",
"no-new-require": "error",
"no-path-concat": "error",
"no-restricted-modules": "off",
"no-sync": "warn",
"constructor-super": "error",
"generator-star-spacing": [ "error", "before" ],
"no-confusing-arrow": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-var": "warn",
"object-shorthand": [ "warn", "never" ],
"prefer-spread": "warn",
"prefer-template": "warn",
"require-yield": "error",
"block-spacing": [ "warn", "always" ],
"brace-style": [ "warn", "1tbs", { "allowSingleLine": false } ],
"camelcase": "warn",
"comma-spacing": [ "warn", { "before": false, "after": true } ],
"comma-style": [ "warn", "last" ],
"computed-property-spacing": [ "warn", "never" ],
"consistent-this": [ "warn", "self" ],
"eol-last": "warn",
"new-cap": "warn",
"new-parens": "warn",
"no-array-constructor": "warn",
"no-bitwise": "off",
"no-continue": "off",
"no-inline-comments": "off",
"no-lonely-if": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-multiple-empty-lines": "warn",
"no-negated-condition": "off",
"no-nested-ternary": "warn",
"no-new-object": "warn",
"no-plusplus": "off",
"no-spaced-func": "warn",
"no-ternary": "off",
"no-trailing-spaces": "warn",
"no-underscore-dangle": "warn",
"no-unneeded-ternary": "warn",
"object-curly-spacing": [ "warn", "always" ],
"one-var": "off",
"operator-assignment": [ "warn", "never" ],
"operator-linebreak": [ "warn", "after" ],
"padded-blocks": [ "warn", "never" ],
"sort-vars": "off",
"space-before-blocks": [ "warn", "always" ],
"space-infix-ops": [ "warn", { "int32Hint": true } ],
"keyword-spacing": "error",
"space-unary-ops": "error",
"wrap-regex": "warn"
}
}