UNPKG

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