@appigram/yookassa-node 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.mjs +410 -0
- package/package.json +13 -12
- package/.eslintrc.json +0 -500
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
import babelParser from "@babel/eslint-parser";
|
|
4
|
+
|
|
5
|
+
export default defineConfig([{
|
|
6
|
+
languageOptions: {
|
|
7
|
+
globals: {
|
|
8
|
+
...globals.node,
|
|
9
|
+
...globals.jquery,
|
|
10
|
+
...globals.browser,
|
|
11
|
+
global: true,
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
parser: babelParser,
|
|
15
|
+
ecmaVersion: 8,
|
|
16
|
+
sourceType: "module",
|
|
17
|
+
|
|
18
|
+
parserOptions: {
|
|
19
|
+
ecmaFeatures: {
|
|
20
|
+
impliedStrict: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
rules: {
|
|
26
|
+
"accessor-pairs": 0,
|
|
27
|
+
|
|
28
|
+
"array-bracket-newline": ["error", {
|
|
29
|
+
multiline: true,
|
|
30
|
+
minItems: 3,
|
|
31
|
+
}],
|
|
32
|
+
|
|
33
|
+
"array-bracket-spacing": 2,
|
|
34
|
+
"array-callback-return": 2,
|
|
35
|
+
"array-element-newline": ["error", "consistent"],
|
|
36
|
+
"arrow-body-style": ["error", "as-needed"],
|
|
37
|
+
"arrow-parens": ["error", "as-needed"],
|
|
38
|
+
"arrow-spacing": 2,
|
|
39
|
+
"block-scoped-var": 0,
|
|
40
|
+
"block-spacing": 2,
|
|
41
|
+
"brace-style": 2,
|
|
42
|
+
"callback-return": 2,
|
|
43
|
+
camelcase: 1,
|
|
44
|
+
"capitalized-comments": 2,
|
|
45
|
+
"class-methods-use-this": 0,
|
|
46
|
+
"comma-dangle": ["error", "always-multiline"],
|
|
47
|
+
"comma-spacing": 2,
|
|
48
|
+
"comma-style": 2,
|
|
49
|
+
complexity: 0,
|
|
50
|
+
"computed-property-spacing": 2,
|
|
51
|
+
"consistent-return": 0,
|
|
52
|
+
"consistent-this": 0,
|
|
53
|
+
"constructor-super": 2,
|
|
54
|
+
curly: ["error", "multi-line", "consistent"],
|
|
55
|
+
"default-case": 2,
|
|
56
|
+
"dot-location": ["error", "property"],
|
|
57
|
+
"dot-notation": 2,
|
|
58
|
+
"eol-last": ["error", "always"],
|
|
59
|
+
|
|
60
|
+
eqeqeq: ["error", "always", {
|
|
61
|
+
null: "ignore",
|
|
62
|
+
}],
|
|
63
|
+
|
|
64
|
+
"for-direction": 2,
|
|
65
|
+
"func-call-spacing": 2,
|
|
66
|
+
"func-name-matching": 0,
|
|
67
|
+
"func-names": 0,
|
|
68
|
+
"func-style": 2,
|
|
69
|
+
"function-paren-newline": ["error", "multiline"],
|
|
70
|
+
"generator-star-spacing": 2,
|
|
71
|
+
"getter-return": 2,
|
|
72
|
+
"global-require": 0,
|
|
73
|
+
"guard-for-in": 1,
|
|
74
|
+
"handle-callback-err": 2,
|
|
75
|
+
"id-blacklist": 0,
|
|
76
|
+
|
|
77
|
+
"id-length": ["warn", {
|
|
78
|
+
exceptions: ["i"],
|
|
79
|
+
}],
|
|
80
|
+
|
|
81
|
+
"id-match": 0,
|
|
82
|
+
"implicit-arrow-linebreak": 2,
|
|
83
|
+
"indent-legacy": 0,
|
|
84
|
+
|
|
85
|
+
indent: ["error", 2, {
|
|
86
|
+
SwitchCase: 1,
|
|
87
|
+
MemberExpression: 1,
|
|
88
|
+
flatTernaryExpressions: true,
|
|
89
|
+
}],
|
|
90
|
+
|
|
91
|
+
"init-declarations": 1,
|
|
92
|
+
"jsx-quotes": 2,
|
|
93
|
+
"key-spacing": 2,
|
|
94
|
+
"keyword-spacing": 2,
|
|
95
|
+
"line-comment-position": 0,
|
|
96
|
+
"linebreak-style": 2,
|
|
97
|
+
|
|
98
|
+
"lines-around-comment": ["error", {
|
|
99
|
+
allowBlockStart: true,
|
|
100
|
+
beforeBlockComment: true,
|
|
101
|
+
beforeLineComment: true,
|
|
102
|
+
}],
|
|
103
|
+
|
|
104
|
+
"lines-around-directive": 2,
|
|
105
|
+
"lines-between-class-members": 2,
|
|
106
|
+
"max-classes-per-file": 2,
|
|
107
|
+
"max-depth": 1,
|
|
108
|
+
|
|
109
|
+
"max-len": ["error", {
|
|
110
|
+
code: 120,
|
|
111
|
+
tabWidth: 2,
|
|
112
|
+
}],
|
|
113
|
+
|
|
114
|
+
"max-lines-per-function": 0,
|
|
115
|
+
"max-lines": 0,
|
|
116
|
+
"max-nested-callbacks": ["warn", 3],
|
|
117
|
+
"max-params": ["warn", 10],
|
|
118
|
+
"max-statements-per-line": 2,
|
|
119
|
+
"max-statements": 0,
|
|
120
|
+
"multiline-comment-style": 2,
|
|
121
|
+
"multiline-ternary": ["error", "always-multiline"],
|
|
122
|
+
"new-cap": 0,
|
|
123
|
+
"new-parens": 2,
|
|
124
|
+
"newline-after-var": 2,
|
|
125
|
+
"newline-before-return": 2,
|
|
126
|
+
"newline-per-chained-call": 2,
|
|
127
|
+
"no-alert": 1,
|
|
128
|
+
"no-array-constructor": 2,
|
|
129
|
+
"no-async-promise-executor": 2,
|
|
130
|
+
"no-await-in-loop": 1,
|
|
131
|
+
"no-bitwise": 1,
|
|
132
|
+
"no-buffer-constructor": 2,
|
|
133
|
+
"no-caller": 2,
|
|
134
|
+
"no-case-declarations": 2,
|
|
135
|
+
"no-catch-shadow": 2,
|
|
136
|
+
"no-class-assign": 2,
|
|
137
|
+
"no-compare-neg-zero": 2,
|
|
138
|
+
"no-cond-assign": 2,
|
|
139
|
+
|
|
140
|
+
"no-confusing-arrow": ["error", {
|
|
141
|
+
allowParens: true,
|
|
142
|
+
}],
|
|
143
|
+
|
|
144
|
+
"no-console": 1,
|
|
145
|
+
"no-const-assign": 2,
|
|
146
|
+
|
|
147
|
+
"no-constant-condition": ["error", {
|
|
148
|
+
checkLoops: false,
|
|
149
|
+
}],
|
|
150
|
+
|
|
151
|
+
"no-continue": 1,
|
|
152
|
+
"no-control-regex": 2,
|
|
153
|
+
"no-debugger": 1,
|
|
154
|
+
"no-delete-var": 2,
|
|
155
|
+
"no-div-regex": 2,
|
|
156
|
+
"no-dupe-args": 2,
|
|
157
|
+
"no-dupe-class-members": 2,
|
|
158
|
+
"no-dupe-keys": 2,
|
|
159
|
+
"no-duplicate-case": 2,
|
|
160
|
+
"no-duplicate-imports": 2,
|
|
161
|
+
"no-else-return": 2,
|
|
162
|
+
"no-empty-character-class": 2,
|
|
163
|
+
"no-empty-function": 2,
|
|
164
|
+
"no-empty-pattern": 2,
|
|
165
|
+
"no-empty": 2,
|
|
166
|
+
"no-eq-null": 0,
|
|
167
|
+
"no-eval": 2,
|
|
168
|
+
"no-ex-assign": 2,
|
|
169
|
+
"no-extend-native": 2,
|
|
170
|
+
"no-extra-bind": 2,
|
|
171
|
+
"no-extra-boolean-cast": 2,
|
|
172
|
+
"no-extra-label": 2,
|
|
173
|
+
"no-extra-parens": 1,
|
|
174
|
+
"no-extra-semi": 2,
|
|
175
|
+
"no-fallthrough": 2,
|
|
176
|
+
"no-floating-decimal": 0,
|
|
177
|
+
"no-func-assign": 2,
|
|
178
|
+
"no-global-assign": 2,
|
|
179
|
+
"no-implicit-coercion": 2,
|
|
180
|
+
"no-implicit-globals": 2,
|
|
181
|
+
"no-implied-eval": 2,
|
|
182
|
+
"no-inline-comments": 0,
|
|
183
|
+
"no-inner-declarations": ["error", "both"],
|
|
184
|
+
"no-invalid-regexp": 2,
|
|
185
|
+
"no-invalid-this": 1,
|
|
186
|
+
"no-irregular-whitespace": 2,
|
|
187
|
+
"no-iterator": 1,
|
|
188
|
+
"no-label-var": 2,
|
|
189
|
+
"no-labels": 1,
|
|
190
|
+
"no-lone-blocks": 2,
|
|
191
|
+
"no-lonely-if": 2,
|
|
192
|
+
"no-loop-func": 2,
|
|
193
|
+
|
|
194
|
+
"no-magic-numbers": ["error", {
|
|
195
|
+
ignore: [
|
|
196
|
+
-1,
|
|
197
|
+
0,
|
|
198
|
+
1,
|
|
199
|
+
800,
|
|
200
|
+
600,
|
|
201
|
+
601,
|
|
202
|
+
602,
|
|
203
|
+
603,
|
|
204
|
+
604,
|
|
205
|
+
605,
|
|
206
|
+
606,
|
|
207
|
+
607,
|
|
208
|
+
608,
|
|
209
|
+
609,
|
|
210
|
+
610,
|
|
211
|
+
611,
|
|
212
|
+
612,
|
|
213
|
+
613,
|
|
214
|
+
614,
|
|
215
|
+
615,
|
|
216
|
+
616,
|
|
217
|
+
617,
|
|
218
|
+
622,
|
|
219
|
+
623,
|
|
220
|
+
624,
|
|
221
|
+
700,
|
|
222
|
+
],
|
|
223
|
+
|
|
224
|
+
enforceConst: true,
|
|
225
|
+
detectObjects: true,
|
|
226
|
+
ignoreArrayIndexes: true,
|
|
227
|
+
}],
|
|
228
|
+
|
|
229
|
+
"no-misleading-character-class": 2,
|
|
230
|
+
"no-mixed-operators": 2,
|
|
231
|
+
|
|
232
|
+
"no-mixed-requires": ["error", {
|
|
233
|
+
grouping: true,
|
|
234
|
+
allowCall: true,
|
|
235
|
+
}],
|
|
236
|
+
|
|
237
|
+
"no-mixed-spaces-and-tabs": 2,
|
|
238
|
+
"no-multi-assign": 2,
|
|
239
|
+
"no-multi-spaces": 2,
|
|
240
|
+
"no-multi-str": 2,
|
|
241
|
+
"no-multiple-empty-lines": 2,
|
|
242
|
+
"no-native-reassign": 2,
|
|
243
|
+
"no-negated-condition": 2,
|
|
244
|
+
"no-negated-in-lhs": 2,
|
|
245
|
+
"no-nested-ternary": 1,
|
|
246
|
+
"no-new-func": 2,
|
|
247
|
+
"no-new-object": 2,
|
|
248
|
+
"no-new-require": 2,
|
|
249
|
+
"no-new-symbol": 2,
|
|
250
|
+
"no-new-wrappers": 2,
|
|
251
|
+
"no-new": 2,
|
|
252
|
+
"no-obj-calls": 2,
|
|
253
|
+
"no-octal-escape": 2,
|
|
254
|
+
"no-octal": 2,
|
|
255
|
+
"no-param-reassign": 1,
|
|
256
|
+
"no-path-concat": 2,
|
|
257
|
+
"no-plusplus": 0,
|
|
258
|
+
"no-process-env": 0,
|
|
259
|
+
"no-process-exit": 1,
|
|
260
|
+
"no-proto": 1,
|
|
261
|
+
"no-prototype-builtins": 0,
|
|
262
|
+
"no-redeclare": 2,
|
|
263
|
+
"no-regex-spaces": 2,
|
|
264
|
+
"no-restricted-globals": 2,
|
|
265
|
+
"no-restricted-imports": 0,
|
|
266
|
+
"no-restricted-modules": 0,
|
|
267
|
+
"no-restricted-properties": 0,
|
|
268
|
+
"no-restricted-syntax": 0,
|
|
269
|
+
"no-return-assign": 2,
|
|
270
|
+
"no-return-await": 2,
|
|
271
|
+
"no-script-url": 2,
|
|
272
|
+
"no-self-assign": 2,
|
|
273
|
+
"no-self-compare": 2,
|
|
274
|
+
"no-sequences": 2,
|
|
275
|
+
"no-shadow-restricted-names": 2,
|
|
276
|
+
"no-shadow": 2,
|
|
277
|
+
"no-spaced-func": 0,
|
|
278
|
+
"no-sparse-arrays": 2,
|
|
279
|
+
"no-sync": 0,
|
|
280
|
+
"no-tabs": 2,
|
|
281
|
+
"no-template-curly-in-string": 2,
|
|
282
|
+
"no-ternary": 0,
|
|
283
|
+
"no-this-before-super": 2,
|
|
284
|
+
"no-throw-literal": 2,
|
|
285
|
+
"no-trailing-spaces": 2,
|
|
286
|
+
"no-undef-init": 2,
|
|
287
|
+
"no-undef": 2,
|
|
288
|
+
"no-undefined": 1,
|
|
289
|
+
"no-underscore-dangle": 0,
|
|
290
|
+
"no-unexpected-multiline": 2,
|
|
291
|
+
"no-unmodified-loop-condition": 2,
|
|
292
|
+
"no-unneeded-ternary": 2,
|
|
293
|
+
"no-unreachable": 2,
|
|
294
|
+
"no-unsafe-finally": 2,
|
|
295
|
+
"no-unsafe-negation": 2,
|
|
296
|
+
"no-unused-expressions": 2,
|
|
297
|
+
"no-unused-labels": 2,
|
|
298
|
+
"no-unused-vars": 2,
|
|
299
|
+
"no-use-before-define": 2,
|
|
300
|
+
"no-useless-call": 2,
|
|
301
|
+
"no-useless-computed-key": 2,
|
|
302
|
+
"no-useless-concat": 2,
|
|
303
|
+
"no-useless-constructor": 2,
|
|
304
|
+
"no-useless-escape": 2,
|
|
305
|
+
"no-useless-rename": 2,
|
|
306
|
+
"no-useless-return": 2,
|
|
307
|
+
"no-var": 2,
|
|
308
|
+
"no-void": 0,
|
|
309
|
+
"no-warning-comments": 1,
|
|
310
|
+
"no-whitespace-before-property": 2,
|
|
311
|
+
"no-with": 2,
|
|
312
|
+
"nonblock-statement-body-position": 2,
|
|
313
|
+
|
|
314
|
+
"object-curly-newline": ["error", {
|
|
315
|
+
multiline: true,
|
|
316
|
+
}],
|
|
317
|
+
|
|
318
|
+
"object-curly-spacing": ["error", "always"],
|
|
319
|
+
|
|
320
|
+
"object-property-newline": ["error", {
|
|
321
|
+
allowAllPropertiesOnSameLine: true,
|
|
322
|
+
}],
|
|
323
|
+
|
|
324
|
+
"object-shorthand": 2,
|
|
325
|
+
"one-var-declaration-per-line": 2,
|
|
326
|
+
"one-var": ["error", "never"],
|
|
327
|
+
"operator-assignment": 2,
|
|
328
|
+
"operator-linebreak": ["error", "before"],
|
|
329
|
+
|
|
330
|
+
"padded-blocks": ["error", {
|
|
331
|
+
blocks: "never",
|
|
332
|
+
classes: "never",
|
|
333
|
+
switches: "never",
|
|
334
|
+
}],
|
|
335
|
+
|
|
336
|
+
"padding-line-between-statements": ["error", {
|
|
337
|
+
blankLine: "always",
|
|
338
|
+
prev: ["const", "let", "var"],
|
|
339
|
+
next: "*",
|
|
340
|
+
}, {
|
|
341
|
+
blankLine: "any",
|
|
342
|
+
prev: ["const"],
|
|
343
|
+
next: ["const"],
|
|
344
|
+
}, {
|
|
345
|
+
blankLine: "any",
|
|
346
|
+
prev: ["let"],
|
|
347
|
+
next: ["let"],
|
|
348
|
+
}],
|
|
349
|
+
|
|
350
|
+
"prefer-arrow-callback": 2,
|
|
351
|
+
"prefer-const": 2,
|
|
352
|
+
|
|
353
|
+
"prefer-destructuring": ["error", {
|
|
354
|
+
array: false,
|
|
355
|
+
object: true,
|
|
356
|
+
}, {
|
|
357
|
+
enforceForRenamedProperties: false,
|
|
358
|
+
}],
|
|
359
|
+
|
|
360
|
+
"prefer-numeric-literals": 2,
|
|
361
|
+
"prefer-object-spread": 2,
|
|
362
|
+
|
|
363
|
+
"prefer-promise-reject-errors": ["error", {
|
|
364
|
+
allowEmptyReject: true,
|
|
365
|
+
}],
|
|
366
|
+
|
|
367
|
+
"prefer-rest-params": 2,
|
|
368
|
+
"prefer-spread": 2,
|
|
369
|
+
"prefer-template": 2,
|
|
370
|
+
"quote-props": ["error", "consistent-as-needed"],
|
|
371
|
+
|
|
372
|
+
quotes: ["error", "single", {
|
|
373
|
+
allowTemplateLiterals: true,
|
|
374
|
+
}],
|
|
375
|
+
|
|
376
|
+
radix: ["error", "as-needed"],
|
|
377
|
+
"require-atomic-updates": 1,
|
|
378
|
+
"require-await": 2,
|
|
379
|
+
"require-jsdoc": 1,
|
|
380
|
+
"require-unicode-regexp": 2,
|
|
381
|
+
"require-yield": 2,
|
|
382
|
+
"rest-spread-spacing": 2,
|
|
383
|
+
"semi-spacing": 2,
|
|
384
|
+
"semi-style": 2,
|
|
385
|
+
semi: 2,
|
|
386
|
+
"sort-imports": 0,
|
|
387
|
+
"sort-keys": 0,
|
|
388
|
+
"sort-vars": 2,
|
|
389
|
+
"space-before-blocks": 2,
|
|
390
|
+
"space-before-function-paren": ["error", "never"],
|
|
391
|
+
"space-in-parens": ["error", "never"],
|
|
392
|
+
"space-infix-ops": 2,
|
|
393
|
+
"space-unary-ops": 2,
|
|
394
|
+
"spaced-comment": ["error", "always"],
|
|
395
|
+
strict: 0,
|
|
396
|
+
"switch-colon-spacing": 2,
|
|
397
|
+
"symbol-description": 2,
|
|
398
|
+
"template-curly-spacing": 2,
|
|
399
|
+
"template-tag-spacing": 2,
|
|
400
|
+
"unicode-bom": 2,
|
|
401
|
+
"use-isnan": 2,
|
|
402
|
+
"valid-jsdoc": 1,
|
|
403
|
+
"valid-typeof": 2,
|
|
404
|
+
"vars-on-top": 2,
|
|
405
|
+
"wrap-iife": 2,
|
|
406
|
+
"wrap-regex": 0,
|
|
407
|
+
"yield-star-spacing": ["error", "after"],
|
|
408
|
+
yoda: 1,
|
|
409
|
+
},
|
|
410
|
+
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appigram/yookassa-node",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "YooKassa API v3",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,22 +27,23 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"readme": "README.md",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "^7.
|
|
31
|
-
"@babel/eslint-parser": "^7.
|
|
32
|
-
"chai": "^5.1
|
|
33
|
-
"eslint": "^
|
|
34
|
-
"eslint-plugin-chai-friendly": "^
|
|
35
|
-
"eslint-plugin-import": "^2.
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
30
|
+
"@babel/core": "^7.28.0",
|
|
31
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
32
|
+
"chai": "^5.2.1",
|
|
33
|
+
"eslint": "^9.32.0",
|
|
34
|
+
"eslint-plugin-chai-friendly": "^1.1.0",
|
|
35
|
+
"eslint-plugin-import": "^2.32.0",
|
|
36
|
+
"globals": "^16.3.0",
|
|
37
|
+
"mocha": "^11.7.1",
|
|
38
|
+
"sinon": "^21.0.0",
|
|
39
|
+
"supertest": "^7.1.4"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"axios": "^1.
|
|
42
|
+
"axios": "^1.11.0",
|
|
42
43
|
"bluebird": "^3.7.2",
|
|
43
44
|
"request": "^2.88.2",
|
|
44
45
|
"request-promise": "^4.2.6",
|
|
45
46
|
"request-promise-core": "^1.1.4",
|
|
46
|
-
"uuid": "^
|
|
47
|
+
"uuid": "^11.1.0"
|
|
47
48
|
}
|
|
48
49
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"es6": true,
|
|
5
|
-
"jquery": true,
|
|
6
|
-
"browser": true
|
|
7
|
-
},
|
|
8
|
-
"globals": {
|
|
9
|
-
"global": true
|
|
10
|
-
},
|
|
11
|
-
"parser": "@babel/eslint-parser",
|
|
12
|
-
"parserOptions": {
|
|
13
|
-
"ecmaVersion": 8,
|
|
14
|
-
"sourceType": "module",
|
|
15
|
-
"ecmaFeatures": {
|
|
16
|
-
"impliedStrict": true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"rules": {
|
|
20
|
-
"accessor-pairs": 0,
|
|
21
|
-
"array-bracket-newline": [
|
|
22
|
-
"error",
|
|
23
|
-
{
|
|
24
|
-
"multiline": true,
|
|
25
|
-
"minItems": 3
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"array-bracket-spacing": 2,
|
|
29
|
-
"array-callback-return": 2,
|
|
30
|
-
"array-element-newline": ["error","consistent"],
|
|
31
|
-
"arrow-body-style": [
|
|
32
|
-
"error",
|
|
33
|
-
"as-needed"
|
|
34
|
-
],
|
|
35
|
-
"arrow-parens": [
|
|
36
|
-
"error",
|
|
37
|
-
"as-needed"
|
|
38
|
-
],
|
|
39
|
-
"arrow-spacing": 2,
|
|
40
|
-
"block-scoped-var": 0,
|
|
41
|
-
"block-spacing": 2,
|
|
42
|
-
"brace-style": 2,
|
|
43
|
-
"callback-return": 2,
|
|
44
|
-
"camelcase": 1,
|
|
45
|
-
"capitalized-comments": 2,
|
|
46
|
-
"class-methods-use-this": 0,
|
|
47
|
-
"comma-dangle": [
|
|
48
|
-
"error",
|
|
49
|
-
"always-multiline"
|
|
50
|
-
],
|
|
51
|
-
"comma-spacing": 2,
|
|
52
|
-
"comma-style": 2,
|
|
53
|
-
"complexity": 0,
|
|
54
|
-
"computed-property-spacing": 2,
|
|
55
|
-
"consistent-return": 0,
|
|
56
|
-
"consistent-this": 0,
|
|
57
|
-
"constructor-super": 2,
|
|
58
|
-
"curly": [
|
|
59
|
-
"error",
|
|
60
|
-
"multi-line",
|
|
61
|
-
"consistent"
|
|
62
|
-
],
|
|
63
|
-
"default-case": 2,
|
|
64
|
-
"dot-location": [
|
|
65
|
-
"error",
|
|
66
|
-
"property"
|
|
67
|
-
],
|
|
68
|
-
"dot-notation": 2,
|
|
69
|
-
"eol-last": [
|
|
70
|
-
"error",
|
|
71
|
-
"always"
|
|
72
|
-
],
|
|
73
|
-
"eqeqeq": [
|
|
74
|
-
"error",
|
|
75
|
-
"always",
|
|
76
|
-
{
|
|
77
|
-
"null": "ignore"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"for-direction": 2,
|
|
81
|
-
"func-call-spacing": 2,
|
|
82
|
-
"func-name-matching": 0,
|
|
83
|
-
"func-names": 0,
|
|
84
|
-
"func-style": 2,
|
|
85
|
-
"function-paren-newline": [
|
|
86
|
-
"error",
|
|
87
|
-
"multiline"
|
|
88
|
-
],
|
|
89
|
-
"generator-star-spacing": 2,
|
|
90
|
-
"getter-return": 2,
|
|
91
|
-
"global-require": 0,
|
|
92
|
-
"guard-for-in": 1,
|
|
93
|
-
"handle-callback-err": 2,
|
|
94
|
-
"id-blacklist": 0,
|
|
95
|
-
"id-length": [
|
|
96
|
-
"warn",
|
|
97
|
-
{
|
|
98
|
-
"exceptions": ["i"]
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"id-match": 0,
|
|
102
|
-
"implicit-arrow-linebreak": 2,
|
|
103
|
-
"indent-legacy": 0,
|
|
104
|
-
"indent": [
|
|
105
|
-
"error",
|
|
106
|
-
2,
|
|
107
|
-
{
|
|
108
|
-
"SwitchCase": 1,
|
|
109
|
-
"MemberExpression": 1,
|
|
110
|
-
"flatTernaryExpressions": true
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"init-declarations": 1,
|
|
114
|
-
"jsx-quotes": 2,
|
|
115
|
-
"key-spacing": 2,
|
|
116
|
-
"keyword-spacing": 2,
|
|
117
|
-
"line-comment-position": 0,
|
|
118
|
-
"linebreak-style": 2,
|
|
119
|
-
"lines-around-comment": [
|
|
120
|
-
"error",
|
|
121
|
-
{
|
|
122
|
-
"allowBlockStart": true,
|
|
123
|
-
"beforeBlockComment": true,
|
|
124
|
-
"beforeLineComment": true
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"lines-around-directive": 2,
|
|
128
|
-
"lines-between-class-members": 2,
|
|
129
|
-
"max-classes-per-file": 2,
|
|
130
|
-
"max-depth": 1,
|
|
131
|
-
"max-len": [
|
|
132
|
-
"error",
|
|
133
|
-
{
|
|
134
|
-
"code": 120,
|
|
135
|
-
"tabWidth": 2
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"max-lines-per-function": 0,
|
|
139
|
-
"max-lines": 0,
|
|
140
|
-
"max-nested-callbacks": [
|
|
141
|
-
"warn",
|
|
142
|
-
3
|
|
143
|
-
],
|
|
144
|
-
"max-params": [
|
|
145
|
-
"warn",
|
|
146
|
-
10
|
|
147
|
-
],
|
|
148
|
-
"max-statements-per-line": 2,
|
|
149
|
-
"max-statements": 0,
|
|
150
|
-
"multiline-comment-style": 2,
|
|
151
|
-
"multiline-ternary": [
|
|
152
|
-
"error",
|
|
153
|
-
"always-multiline"
|
|
154
|
-
],
|
|
155
|
-
"new-cap": 0,
|
|
156
|
-
"new-parens": 2,
|
|
157
|
-
"newline-after-var": 2,
|
|
158
|
-
"newline-before-return": 2,
|
|
159
|
-
"newline-per-chained-call": 2,
|
|
160
|
-
"no-alert": 1,
|
|
161
|
-
"no-array-constructor": 2,
|
|
162
|
-
"no-async-promise-executor": 2,
|
|
163
|
-
"no-await-in-loop": 1,
|
|
164
|
-
"no-bitwise": 1,
|
|
165
|
-
"no-buffer-constructor": 2,
|
|
166
|
-
"no-caller": 2,
|
|
167
|
-
"no-case-declarations": 2,
|
|
168
|
-
"no-catch-shadow": 2,
|
|
169
|
-
"no-class-assign": 2,
|
|
170
|
-
"no-compare-neg-zero": 2,
|
|
171
|
-
"no-cond-assign": 2,
|
|
172
|
-
"no-confusing-arrow": [
|
|
173
|
-
"error",
|
|
174
|
-
{
|
|
175
|
-
"allowParens": true
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"no-console": 1,
|
|
179
|
-
"no-const-assign": 2,
|
|
180
|
-
"no-constant-condition": [
|
|
181
|
-
"error",
|
|
182
|
-
{
|
|
183
|
-
"checkLoops": false
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"no-continue": 1,
|
|
187
|
-
"no-control-regex": 2,
|
|
188
|
-
"no-debugger": 1,
|
|
189
|
-
"no-delete-var": 2,
|
|
190
|
-
"no-div-regex": 2,
|
|
191
|
-
"no-dupe-args": 2,
|
|
192
|
-
"no-dupe-class-members": 2,
|
|
193
|
-
"no-dupe-keys": 2,
|
|
194
|
-
"no-duplicate-case": 2,
|
|
195
|
-
"no-duplicate-imports": 2,
|
|
196
|
-
"no-else-return": 2,
|
|
197
|
-
"no-empty-character-class": 2,
|
|
198
|
-
"no-empty-function": 2,
|
|
199
|
-
"no-empty-pattern": 2,
|
|
200
|
-
"no-empty": 2,
|
|
201
|
-
"no-eq-null": 0,
|
|
202
|
-
"no-eval": 2,
|
|
203
|
-
"no-ex-assign": 2,
|
|
204
|
-
"no-extend-native": 2,
|
|
205
|
-
"no-extra-bind": 2,
|
|
206
|
-
"no-extra-boolean-cast": 2,
|
|
207
|
-
"no-extra-label": 2,
|
|
208
|
-
"no-extra-parens": 1,
|
|
209
|
-
"no-extra-semi": 2,
|
|
210
|
-
"no-fallthrough": 2,
|
|
211
|
-
"no-floating-decimal": 0,
|
|
212
|
-
"no-func-assign": 2,
|
|
213
|
-
"no-global-assign": 2,
|
|
214
|
-
"no-implicit-coercion": 2,
|
|
215
|
-
"no-implicit-globals": 2,
|
|
216
|
-
"no-implied-eval": 2,
|
|
217
|
-
"no-inline-comments": 0,
|
|
218
|
-
"no-inner-declarations": [
|
|
219
|
-
"error",
|
|
220
|
-
"both"
|
|
221
|
-
],
|
|
222
|
-
"no-invalid-regexp": 2,
|
|
223
|
-
"no-invalid-this": 1,
|
|
224
|
-
"no-irregular-whitespace": 2,
|
|
225
|
-
"no-iterator": 1,
|
|
226
|
-
"no-label-var": 2,
|
|
227
|
-
"no-labels": 1,
|
|
228
|
-
"no-lone-blocks": 2,
|
|
229
|
-
"no-lonely-if": 2,
|
|
230
|
-
"no-loop-func": 2,
|
|
231
|
-
"no-magic-numbers": [
|
|
232
|
-
"error",
|
|
233
|
-
{
|
|
234
|
-
"ignore": [
|
|
235
|
-
-1,
|
|
236
|
-
0,
|
|
237
|
-
1,
|
|
238
|
-
800,
|
|
239
|
-
600,
|
|
240
|
-
601,
|
|
241
|
-
602,
|
|
242
|
-
603,
|
|
243
|
-
604,
|
|
244
|
-
605,
|
|
245
|
-
606,
|
|
246
|
-
607,
|
|
247
|
-
608,
|
|
248
|
-
609,
|
|
249
|
-
610,
|
|
250
|
-
611,
|
|
251
|
-
612,
|
|
252
|
-
613,
|
|
253
|
-
614,
|
|
254
|
-
615,
|
|
255
|
-
616,
|
|
256
|
-
617,
|
|
257
|
-
622,
|
|
258
|
-
623,
|
|
259
|
-
624,
|
|
260
|
-
700
|
|
261
|
-
],
|
|
262
|
-
"enforceConst": true,
|
|
263
|
-
"detectObjects": true,
|
|
264
|
-
"ignoreArrayIndexes": true
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"no-misleading-character-class": 2,
|
|
268
|
-
"no-mixed-operators": 2,
|
|
269
|
-
"no-mixed-requires": [
|
|
270
|
-
"error",
|
|
271
|
-
{
|
|
272
|
-
"grouping": true,
|
|
273
|
-
"allowCall": true
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"no-mixed-spaces-and-tabs": 2,
|
|
277
|
-
"no-multi-assign": 2,
|
|
278
|
-
"no-multi-spaces": 2,
|
|
279
|
-
"no-multi-str": 2,
|
|
280
|
-
"no-multiple-empty-lines": 2,
|
|
281
|
-
"no-native-reassign": 2,
|
|
282
|
-
"no-negated-condition": 2,
|
|
283
|
-
"no-negated-in-lhs": 2,
|
|
284
|
-
"no-nested-ternary": 1,
|
|
285
|
-
"no-new-func": 2,
|
|
286
|
-
"no-new-object": 2,
|
|
287
|
-
"no-new-require": 2,
|
|
288
|
-
"no-new-symbol": 2,
|
|
289
|
-
"no-new-wrappers": 2,
|
|
290
|
-
"no-new": 2,
|
|
291
|
-
"no-obj-calls": 2,
|
|
292
|
-
"no-octal-escape": 2,
|
|
293
|
-
"no-octal": 2,
|
|
294
|
-
"no-param-reassign": 1,
|
|
295
|
-
"no-path-concat": 2,
|
|
296
|
-
"no-plusplus": 0,
|
|
297
|
-
"no-process-env": 0,
|
|
298
|
-
"no-process-exit": 1,
|
|
299
|
-
"no-proto": 1,
|
|
300
|
-
"no-prototype-builtins": 0,
|
|
301
|
-
"no-redeclare": 2,
|
|
302
|
-
"no-regex-spaces": 2,
|
|
303
|
-
"no-restricted-globals": 2,
|
|
304
|
-
"no-restricted-imports": 0,
|
|
305
|
-
"no-restricted-modules": 0,
|
|
306
|
-
"no-restricted-properties": 0,
|
|
307
|
-
"no-restricted-syntax": 0,
|
|
308
|
-
"no-return-assign": 2,
|
|
309
|
-
"no-return-await": 2,
|
|
310
|
-
"no-script-url": 2,
|
|
311
|
-
"no-self-assign": 2,
|
|
312
|
-
"no-self-compare": 2,
|
|
313
|
-
"no-sequences": 2,
|
|
314
|
-
"no-shadow-restricted-names": 2,
|
|
315
|
-
"no-shadow": 2,
|
|
316
|
-
"no-spaced-func": 0,
|
|
317
|
-
"no-sparse-arrays": 2,
|
|
318
|
-
"no-sync": 0,
|
|
319
|
-
"no-tabs": 2,
|
|
320
|
-
"no-template-curly-in-string": 2,
|
|
321
|
-
"no-ternary": 0,
|
|
322
|
-
"no-this-before-super": 2,
|
|
323
|
-
"no-throw-literal": 2,
|
|
324
|
-
"no-trailing-spaces": 2,
|
|
325
|
-
"no-undef-init": 2,
|
|
326
|
-
"no-undef": 2,
|
|
327
|
-
"no-undefined": 1,
|
|
328
|
-
"no-underscore-dangle": 0,
|
|
329
|
-
"no-unexpected-multiline": 2,
|
|
330
|
-
"no-unmodified-loop-condition": 2,
|
|
331
|
-
"no-unneeded-ternary": 2,
|
|
332
|
-
"no-unreachable": 2,
|
|
333
|
-
"no-unsafe-finally": 2,
|
|
334
|
-
"no-unsafe-negation": 2,
|
|
335
|
-
"no-unused-expressions": 2,
|
|
336
|
-
"no-unused-labels": 2,
|
|
337
|
-
"no-unused-vars": 2,
|
|
338
|
-
"no-use-before-define": 2,
|
|
339
|
-
"no-useless-call": 2,
|
|
340
|
-
"no-useless-computed-key": 2,
|
|
341
|
-
"no-useless-concat": 2,
|
|
342
|
-
"no-useless-constructor": 2,
|
|
343
|
-
"no-useless-escape": 2,
|
|
344
|
-
"no-useless-rename": 2,
|
|
345
|
-
"no-useless-return": 2,
|
|
346
|
-
"no-var": 2,
|
|
347
|
-
"no-void": 0,
|
|
348
|
-
"no-warning-comments": 1,
|
|
349
|
-
"no-whitespace-before-property": 2,
|
|
350
|
-
"no-with": 2,
|
|
351
|
-
"nonblock-statement-body-position": 2,
|
|
352
|
-
"object-curly-newline": [
|
|
353
|
-
"error",
|
|
354
|
-
{
|
|
355
|
-
"multiline": true
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
"object-curly-spacing": [
|
|
359
|
-
"error",
|
|
360
|
-
"always"
|
|
361
|
-
],
|
|
362
|
-
"object-property-newline": [
|
|
363
|
-
"error",
|
|
364
|
-
{
|
|
365
|
-
"allowAllPropertiesOnSameLine": true
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"object-shorthand": 2,
|
|
369
|
-
"one-var-declaration-per-line": 2,
|
|
370
|
-
"one-var": [
|
|
371
|
-
"error",
|
|
372
|
-
"never"
|
|
373
|
-
],
|
|
374
|
-
"operator-assignment": 2,
|
|
375
|
-
"operator-linebreak": [
|
|
376
|
-
"error",
|
|
377
|
-
"before"
|
|
378
|
-
],
|
|
379
|
-
"padded-blocks": [
|
|
380
|
-
"error",
|
|
381
|
-
{
|
|
382
|
-
"blocks": "never",
|
|
383
|
-
"classes": "never",
|
|
384
|
-
"switches": "never"
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
"padding-line-between-statements": [
|
|
388
|
-
"error",
|
|
389
|
-
{
|
|
390
|
-
"blankLine": "always",
|
|
391
|
-
"prev": [
|
|
392
|
-
"const",
|
|
393
|
-
"let",
|
|
394
|
-
"var"
|
|
395
|
-
],
|
|
396
|
-
"next": "*"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"blankLine": "any",
|
|
400
|
-
"prev": [
|
|
401
|
-
"const"
|
|
402
|
-
],
|
|
403
|
-
"next": [
|
|
404
|
-
"const"
|
|
405
|
-
]
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"blankLine": "any",
|
|
409
|
-
"prev": [
|
|
410
|
-
"let"
|
|
411
|
-
],
|
|
412
|
-
"next": [
|
|
413
|
-
"let"
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
],
|
|
417
|
-
"prefer-arrow-callback": 2,
|
|
418
|
-
"prefer-const": 2,
|
|
419
|
-
"prefer-destructuring": [
|
|
420
|
-
"error",
|
|
421
|
-
{
|
|
422
|
-
"array": false,
|
|
423
|
-
"object": true
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"enforceForRenamedProperties": false
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
"prefer-numeric-literals": 2,
|
|
430
|
-
"prefer-object-spread": 2,
|
|
431
|
-
"prefer-promise-reject-errors": [
|
|
432
|
-
"error",
|
|
433
|
-
{
|
|
434
|
-
"allowEmptyReject": true
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"prefer-rest-params": 2,
|
|
438
|
-
"prefer-spread": 2,
|
|
439
|
-
"prefer-template": 2,
|
|
440
|
-
"quote-props": [
|
|
441
|
-
"error",
|
|
442
|
-
"consistent-as-needed"
|
|
443
|
-
],
|
|
444
|
-
"quotes": [
|
|
445
|
-
"error",
|
|
446
|
-
"single",
|
|
447
|
-
{
|
|
448
|
-
"allowTemplateLiterals": true
|
|
449
|
-
}
|
|
450
|
-
],
|
|
451
|
-
"radix": [
|
|
452
|
-
"error",
|
|
453
|
-
"as-needed"
|
|
454
|
-
],
|
|
455
|
-
"require-atomic-updates": 1,
|
|
456
|
-
"require-await": 2,
|
|
457
|
-
"require-jsdoc": 1,
|
|
458
|
-
"require-unicode-regexp": 2,
|
|
459
|
-
"require-yield": 2,
|
|
460
|
-
"rest-spread-spacing": 2,
|
|
461
|
-
"semi-spacing": 2,
|
|
462
|
-
"semi-style": 2,
|
|
463
|
-
"semi": 2,
|
|
464
|
-
"sort-imports": 0,
|
|
465
|
-
"sort-keys": 0,
|
|
466
|
-
"sort-vars": 2,
|
|
467
|
-
"space-before-blocks": 2,
|
|
468
|
-
"space-before-function-paren": [
|
|
469
|
-
"error",
|
|
470
|
-
"never"
|
|
471
|
-
],
|
|
472
|
-
"space-in-parens": [
|
|
473
|
-
"error",
|
|
474
|
-
"never"
|
|
475
|
-
],
|
|
476
|
-
"space-infix-ops": 2,
|
|
477
|
-
"space-unary-ops": 2,
|
|
478
|
-
"spaced-comment": [
|
|
479
|
-
"error",
|
|
480
|
-
"always"
|
|
481
|
-
],
|
|
482
|
-
"strict": 0,
|
|
483
|
-
"switch-colon-spacing": 2,
|
|
484
|
-
"symbol-description": 2,
|
|
485
|
-
"template-curly-spacing": 2,
|
|
486
|
-
"template-tag-spacing": 2,
|
|
487
|
-
"unicode-bom": 2,
|
|
488
|
-
"use-isnan": 2,
|
|
489
|
-
"valid-jsdoc": 1,
|
|
490
|
-
"valid-typeof": 2,
|
|
491
|
-
"vars-on-top": 2,
|
|
492
|
-
"wrap-iife": 2,
|
|
493
|
-
"wrap-regex": 0,
|
|
494
|
-
"yield-star-spacing": [
|
|
495
|
-
"error",
|
|
496
|
-
"after"
|
|
497
|
-
],
|
|
498
|
-
"yoda": 1
|
|
499
|
-
}
|
|
500
|
-
}
|