UNPKG

6.23 kBPlain TextView Raw
1{
2 "env": {
3 "node": true,
4 "browser": true,
5 "es6":true,
6 "mocha": true
7 },
8 "rules": {
9
10 "block-scoped-var": [0],
11 "brace-style": [
12 2,
13 "1tbs",
14 {"allowSingleLine": true}
15 ],
16 "camelcase": [0],
17 "comma-dangle": [
18 2,
19 "never"
20 ],
21 "comma-spacing": [2],
22 "comma-style": [
23 2,
24 "last"
25 ],
26 "complexity": [
27 0,
28 11
29 ],
30 "consistent-return": [2],
31 "consistent-this": [
32 0,
33 "that"
34 ],
35 "curly": [
36 2,
37 "all"
38 ],
39 "default-case": [2],
40 "dot-notation": [
41 2,
42 {"allowKeywords": true}
43 ],
44 "eol-last": [2],
45 "eqeqeq": [2],
46 "func-names": [0],
47 "func-style": [
48 0,
49 "declaration"
50 ],
51 "generator-star-spacing": [
52 2,
53 "after"
54 ],
55 "global-strict": [
56 0,
57 "never"
58 ],
59 "guard-for-in": [0],
60 "handle-callback-err": [0],
61 "key-spacing": [
62 2,
63 {
64 "beforeColon": false,
65 "afterColon": true
66 }
67 ],
68 "quotes": [
69 2,
70 "single",
71 "avoid-escape"
72 ],
73 "max-depth": [
74 0,
75 4
76 ],
77 "max-len": [
78 0,
79 80,
80 4
81 ],
82 "max-nested-callbacks": [
83 0,
84 2
85 ],
86 "max-params": [
87 0,
88 3
89 ],
90 "max-statements": [
91 0,
92 10
93 ],
94 "new-parens": [2],
95 "new-cap": [
96 2,
97 {
98 "capIsNewExceptions": [
99 "ToInteger",
100 "ToObject",
101 "ToPrimitive",
102 "ToUint32"
103 ]
104 }
105 ],
106 "newline-after-var": [0],
107 "no-alert": [2],
108 "no-array-constructor": [2],
109 "no-bitwise": [0],
110 "no-caller": [2],
111 "no-catch-shadow": [2],
112 "no-cond-assign": [2],
113 "no-console": [0],
114 "no-constant-condition": [1],
115 "no-continue": [2],
116 "no-control-regex": [2],
117 "no-debugger": [2],
118 "no-delete-var": [2],
119 "no-div-regex": [0],
120 "no-dupe-args": [2],
121 "no-dupe-keys": [2],
122 "no-duplicate-case": [2],
123 "no-else-return": [0],
124 "no-empty": [2],
125 "no-empty-class": [2],
126 "no-empty-label": [2],
127 "no-eq-null": [0],
128 "no-eval": [2],
129 "no-ex-assign": [2],
130 "no-extend-native": [1],
131 "no-extra-bind": [2],
132 "no-extra-boolean-cast": [2],
133 "no-extra-parens": [0],
134 "no-extra-semi": [1],
135 "no-extra-strict": [2],
136 "no-fallthrough": [2],
137 "no-floating-decimal": [2],
138 "no-func-assign": [2],
139 "no-implied-eval": [2],
140 "no-inline-comments": [0],
141 "no-inner-declarations": [
142 2,
143 "functions"
144 ],
145 "no-invalid-regexp": [2],
146 "no-irregular-whitespace": [2],
147 "no-iterator": [2],
148 "no-label-var": [2],
149 "no-labels": [2],
150 "no-lone-blocks": [2],
151 "no-lonely-if": [2],
152 "no-loop-func": [2],
153 "no-mixed-requires": [
154 0,
155 false
156 ],
157 "no-mixed-spaces-and-tabs": [
158 2,
159 false
160 ],
161 "no-multi-spaces": [2],
162 "no-multi-str": [2],
163 "no-multiple-empty-lines": [
164 2,
165 {"max": 2}
166 ],
167 "no-native-reassign": [1],
168 "no-negated-in-lhs": [2],
169 "no-nested-ternary": [0],
170 "no-new": [2],
171 "no-new-func": [2],
172 "no-new-object": [2],
173 "no-new-require": [0],
174 "no-new-wrappers": [2],
175 "no-obj-calls": [2],
176 "no-octal": [2],
177 "no-octal-escape": [2],
178 "no-path-concat": [0],
179 "no-plusplus": [0],
180 "no-process-env": [0],
181 "no-process-exit": [2],
182 "no-proto": [2],
183 "no-redeclare": [2],
184 "no-regex-spaces": [2],
185 "no-reserved-keys": [0],
186 "no-restricted-modules": [0],
187 "no-return-assign": [2],
188 "no-script-url": [2],
189 "no-self-compare": [0],
190 "no-sequences": [2],
191 "no-shadow": [2],
192 "no-shadow-restricted-names": [2],
193 "no-space-before-semi": [2],
194 "no-spaced-func": [2],
195 "no-sparse-arrays": [2],
196 "no-sync": [0],
197 "no-ternary": [0],
198 "no-throw-literal": [2],
199 "no-trailing-spaces": [2],
200 "no-undef": [2],
201 "no-undef-init": [2],
202 "no-undefined": [0],
203 "no-underscore-dangle": [2],
204 "no-unreachable": [2],
205 "no-unused-expressions": [2],
206 "no-unused-vars": [
207 1,
208 {
209 "vars": "all",
210 "args": "after-used"
211 }
212 ],
213 "no-use-before-define": [2],
214 "no-void": [0],
215 "no-warning-comments": [
216 0,
217 {
218 "terms": [
219 "todo",
220 "fixme",
221 "xxx"
222 ],
223 "location": "start"
224 }
225 ],
226 "no-with": [2],
227 "no-wrap-func": [2],
228 "one-var": [0],
229 "operator-assignment": [
230 0,
231 "always"
232 ],
233 "operator-linebreak": [
234 2,
235 "after"
236 ],
237 "padded-blocks": [0],
238 "quote-props": [0],
239 "radix": [0],
240 "semi": [2],
241 "semi-spacing": [
242 2,
243 {
244 "before": false,
245 "after": true
246 }
247 ],
248 "sort-vars": [0],
249 "space-after-keywords": [
250 2,
251 "always"
252 ],
253 "space-before-blocks": [
254 0,
255 "always"
256 ],
257 "space-in-brackets": [
258 0,
259 "never",
260 {
261 "singleValue": true,
262 "arraysInArrays": false,
263 "arraysInObjects": false,
264 "objectsInArrays": true,
265 "objectsInObjects": true,
266 "propertyName": false
267 }
268 ],
269 "space-in-parens": [
270 2,
271 "never"
272 ],
273 "space-infix-ops": [2],
274 "space-return-throw-case": [2],
275 "space-unary-ops": [
276 2,
277 {
278 "words": true,
279 "nonwords": false
280 }
281 ],
282 "spaced-line-comment": [
283 0,
284 "always"
285 ],
286 "strict": [1],
287 "use-isnan": [2],
288 "valid-jsdoc": [0],
289 "valid-typeof": [2],
290 "vars-on-top": [0],
291 "wrap-iife": [2],
292 "wrap-regex": [2],
293 "yoda": [
294 2,
295 "never",
296 {"exceptRange": true}
297 ],
298 "space-before-blocks": 2,
299 "indent": [
300 2,
301 2,
302 {"indentSwitchCase": true}
303 ],
304 "brace-style": 2,
305 "space-after-keywords": 2,
306 "strict": 2,
307 "no-comma-dangle": 2,
308 "no-unused-expressions": 2,
309 "block-scoped-var": 2,
310 "eol-last": 2,
311 "dot-notation": 2,
312 "consistent-return": 2,
313 "no-unused-vars": [
314 2,
315 {"args": "none"}
316 ],
317 "quotes": [
318 2,
319 "single"
320 ],
321 "new-cap": 0,
322 "key-spacing": 0,
323 "no-underscore-dangle": 0,
324 "no-multi-spaces": 0
325 }
326}