eslint-config-airbnb-extended 0.1.0 → 0.1.1

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.
Files changed (60) hide show
  1. package/dist/base/index.d.ts +841 -0
  2. package/dist/base/index.js +23 -0
  3. package/dist/base/recommended.d.ts +2 -0
  4. package/dist/base/recommended.js +19 -0
  5. package/dist/index.d.ts +2654 -0
  6. package/dist/index.js +29 -0
  7. package/dist/react/index.d.ts +1798 -0
  8. package/dist/react/index.js +13 -0
  9. package/dist/react/recommended.d.ts +2 -0
  10. package/dist/react/recommended.js +8 -0
  11. package/dist/rules/best-practices.d.ts +177 -0
  12. package/dist/rules/best-practices.js +379 -0
  13. package/dist/rules/errors.d.ts +69 -0
  14. package/dist/rules/errors.js +151 -0
  15. package/dist/rules/es6.d.ts +146 -0
  16. package/dist/rules/es6.js +192 -0
  17. package/dist/rules/imports.d.ts +157 -0
  18. package/dist/rules/imports.js +256 -0
  19. package/dist/rules/node.d.ts +90 -0
  20. package/dist/rules/node.js +39 -0
  21. package/dist/rules/react-a11y.d.ts +117 -0
  22. package/dist/rules/react-a11y.js +255 -0
  23. package/dist/rules/react-hooks.d.ts +19 -0
  24. package/dist/rules/react-hooks.js +57 -0
  25. package/dist/rules/react.d.ts +1664 -0
  26. package/dist/rules/react.js +583 -0
  27. package/dist/rules/strict.d.ts +7 -0
  28. package/dist/rules/strict.js +9 -0
  29. package/dist/rules/style.d.ts +320 -0
  30. package/dist/rules/style.js +530 -0
  31. package/dist/rules/typescript.d.ts +4 -0
  32. package/dist/rules/typescript.js +264 -0
  33. package/dist/rules/variables.d.ts +35 -0
  34. package/dist/rules/variables.js +65 -0
  35. package/dist/typescript/index.d.ts +5 -0
  36. package/dist/typescript/index.js +9 -0
  37. package/dist/typescript/recommended.d.ts +6 -0
  38. package/dist/typescript/recommended.js +62 -0
  39. package/package.json +6 -7
  40. package/CHANGELOG.md +0 -7
  41. package/base/index.ts +0 -21
  42. package/base/recommended.ts +0 -17
  43. package/index.ts +0 -25
  44. package/react/index.ts +0 -11
  45. package/react/recommended.ts +0 -6
  46. package/rules/best-practices.ts +0 -462
  47. package/rules/errors.ts +0 -199
  48. package/rules/es6.ts +0 -224
  49. package/rules/imports.ts +0 -308
  50. package/rules/node.ts +0 -49
  51. package/rules/react-a11y.ts +0 -295
  52. package/rules/react-hooks.ts +0 -26
  53. package/rules/react.ts +0 -692
  54. package/rules/strict.ts +0 -9
  55. package/rules/style.ts +0 -632
  56. package/rules/typescript.ts +0 -312
  57. package/rules/variables.ts +0 -76
  58. package/tsconfig.json +0 -22
  59. package/typescript/index.ts +0 -7
  60. package/typescript/recommended.ts +0 -30
@@ -0,0 +1,841 @@
1
+ declare const _default: {
2
+ bestPractices: {
3
+ name: string;
4
+ rules: {
5
+ 'accessor-pairs': "off";
6
+ 'array-callback-return': ["error", {
7
+ allowImplicit: boolean;
8
+ }];
9
+ 'block-scoped-var': "error";
10
+ complexity: ["off", number];
11
+ 'class-methods-use-this': ["error", {
12
+ exceptMethods: never[];
13
+ }];
14
+ 'consistent-return': "error";
15
+ curly: ["error", string];
16
+ 'default-case': ["error", {
17
+ commentPattern: string;
18
+ }];
19
+ 'default-case-last': "error";
20
+ 'default-param-last': "error";
21
+ 'dot-notation': ["error", {
22
+ allowKeywords: boolean;
23
+ }];
24
+ 'dot-location': ["error", string];
25
+ eqeqeq: ["error", string, {
26
+ null: string;
27
+ }];
28
+ 'grouped-accessor-pairs': "error";
29
+ 'guard-for-in': "error";
30
+ 'max-classes-per-file': ["error", number];
31
+ 'no-alert': "warn";
32
+ 'no-caller': "error";
33
+ 'no-case-declarations': "error";
34
+ 'no-constructor-return': "error";
35
+ 'no-div-regex': "off";
36
+ 'no-else-return': ["error", {
37
+ allowElseIf: boolean;
38
+ }];
39
+ 'no-empty-function': ["error", {
40
+ allow: string[];
41
+ }];
42
+ 'no-empty-pattern': "error";
43
+ 'no-empty-static-block': "off";
44
+ 'no-eq-null': "off";
45
+ 'no-eval': "error";
46
+ 'no-extend-native': "error";
47
+ 'no-extra-bind': "error";
48
+ 'no-extra-label': "error";
49
+ 'no-fallthrough': "error";
50
+ 'no-floating-decimal': "error";
51
+ 'no-global-assign': ["error", {
52
+ exceptions: never[];
53
+ }];
54
+ 'no-native-reassign': "off";
55
+ 'no-implicit-coercion': ["off", {
56
+ boolean: boolean;
57
+ number: boolean;
58
+ string: boolean;
59
+ allow: never[];
60
+ }];
61
+ 'no-implicit-globals': "off";
62
+ 'no-implied-eval': "error";
63
+ 'no-invalid-this': "off";
64
+ 'no-iterator': "error";
65
+ 'no-labels': ["error", {
66
+ allowLoop: boolean;
67
+ allowSwitch: boolean;
68
+ }];
69
+ 'no-lone-blocks': "error";
70
+ 'no-loop-func': "error";
71
+ 'no-magic-numbers': ["off", {
72
+ ignore: never[];
73
+ ignoreArrayIndexes: boolean;
74
+ enforceConst: boolean;
75
+ detectObjects: boolean;
76
+ }];
77
+ 'no-multi-spaces': ["error", {
78
+ ignoreEOLComments: boolean;
79
+ }];
80
+ 'no-multi-str': "error";
81
+ 'no-new': "error";
82
+ 'no-new-func': "error";
83
+ 'no-new-wrappers': "error";
84
+ 'no-nonoctal-decimal-escape': "error";
85
+ 'no-object-constructor': "off";
86
+ 'no-octal': "error";
87
+ 'no-octal-escape': "error";
88
+ 'no-param-reassign': ["error", {
89
+ props: boolean;
90
+ ignorePropertyModificationsFor: string[];
91
+ }];
92
+ 'no-proto': "error";
93
+ 'no-redeclare': "error";
94
+ 'no-restricted-properties': ["error", {
95
+ object: string;
96
+ property: string;
97
+ message: string;
98
+ }, {
99
+ object: string;
100
+ property: string;
101
+ message: string;
102
+ }, {
103
+ object: string;
104
+ property: string;
105
+ message: string;
106
+ }, {
107
+ object: string;
108
+ property: string;
109
+ message: string;
110
+ }, {
111
+ object: string;
112
+ property: string;
113
+ message: string;
114
+ }, {
115
+ object: string;
116
+ property: string;
117
+ message: string;
118
+ }, {
119
+ object: string;
120
+ property: string;
121
+ message: string;
122
+ }, {
123
+ property: string;
124
+ message: string;
125
+ }, {
126
+ property: string;
127
+ message: string;
128
+ }, {
129
+ object: string;
130
+ property: string;
131
+ message: string;
132
+ }];
133
+ 'no-return-assign': ["error", string];
134
+ 'no-return-await': "error";
135
+ 'no-script-url': "error";
136
+ 'no-self-assign': ["error", {
137
+ props: boolean;
138
+ }];
139
+ 'no-self-compare': "error";
140
+ 'no-sequences': "error";
141
+ 'no-throw-literal': "error";
142
+ 'no-unmodified-loop-condition': "off";
143
+ 'no-unused-expressions': ["error", {
144
+ allowShortCircuit: boolean;
145
+ allowTernary: boolean;
146
+ allowTaggedTemplates: boolean;
147
+ }];
148
+ 'no-unused-labels': "error";
149
+ 'no-useless-call': "off";
150
+ 'no-useless-catch': "error";
151
+ 'no-useless-concat': "error";
152
+ 'no-useless-escape': "error";
153
+ 'no-useless-return': "error";
154
+ 'no-void': "error";
155
+ 'no-warning-comments': ["off", {
156
+ terms: string[];
157
+ location: string;
158
+ }];
159
+ 'no-with': "error";
160
+ 'prefer-promise-reject-errors': ["error", {
161
+ allowEmptyReject: boolean;
162
+ }];
163
+ 'prefer-named-capture-group': "off";
164
+ 'prefer-object-has-own': "off";
165
+ 'prefer-regex-literals': ["error", {
166
+ disallowRedundantWrapping: boolean;
167
+ }];
168
+ radix: "error";
169
+ 'require-await': "off";
170
+ 'require-unicode-regexp': "off";
171
+ 'vars-on-top': "error";
172
+ 'wrap-iife': ["error", string, {
173
+ functionPrototypeMethods: boolean;
174
+ }];
175
+ yoda: "error";
176
+ };
177
+ };
178
+ errors: {
179
+ name: string;
180
+ rules: {
181
+ 'for-direction': "error";
182
+ 'getter-return': ["error", {
183
+ allowImplicit: boolean;
184
+ }];
185
+ 'no-async-promise-executor': "error";
186
+ 'no-await-in-loop': "error";
187
+ 'no-compare-neg-zero': "error";
188
+ 'no-cond-assign': ["error", string];
189
+ 'no-console': "warn";
190
+ 'no-constant-binary-expression': "off";
191
+ 'no-constant-condition': "warn";
192
+ 'no-control-regex': "error";
193
+ 'no-debugger': "error";
194
+ 'no-dupe-args': "error";
195
+ 'no-dupe-else-if': "error";
196
+ 'no-dupe-keys': "error";
197
+ 'no-duplicate-case': "error";
198
+ 'no-empty': "error";
199
+ 'no-empty-character-class': "error";
200
+ 'no-ex-assign': "error";
201
+ 'no-extra-boolean-cast': "error";
202
+ 'no-extra-parens': ["off", string, {
203
+ conditionalAssign: boolean;
204
+ nestedBinaryExpressions: boolean;
205
+ returnAssign: boolean;
206
+ ignoreJSX: string;
207
+ enforceForArrowConditionals: boolean;
208
+ }];
209
+ 'no-extra-semi': "error";
210
+ 'no-func-assign': "error";
211
+ 'no-import-assign': "error";
212
+ 'no-inner-declarations': "error";
213
+ 'no-invalid-regexp': "error";
214
+ 'no-irregular-whitespace': "error";
215
+ 'no-loss-of-precision': "error";
216
+ 'no-misleading-character-class': "error";
217
+ 'no-obj-calls': "error";
218
+ 'no-new-native-nonconstructor': "off";
219
+ 'no-promise-executor-return': "error";
220
+ 'no-prototype-builtins': "error";
221
+ 'no-regex-spaces': "error";
222
+ 'no-setter-return': "error";
223
+ 'no-sparse-arrays': "error";
224
+ 'no-template-curly-in-string': "error";
225
+ 'no-unexpected-multiline': "error";
226
+ 'no-unreachable': "error";
227
+ 'no-unreachable-loop': ["error", {
228
+ ignore: never[];
229
+ }];
230
+ 'no-unsafe-finally': "error";
231
+ 'no-unsafe-negation': "error";
232
+ 'no-unsafe-optional-chaining': ["error", {
233
+ disallowArithmeticOperators: boolean;
234
+ }];
235
+ 'no-unused-private-class-members': "off";
236
+ 'no-useless-backreference': "error";
237
+ 'no-negated-in-lhs': "off";
238
+ 'require-atomic-updates': "off";
239
+ 'use-isnan': "error";
240
+ 'valid-jsdoc': "off";
241
+ 'valid-typeof': ["error", {
242
+ requireStringLiterals: boolean;
243
+ }];
244
+ };
245
+ };
246
+ es6: {
247
+ name: string;
248
+ languageOptions: {
249
+ globals: {
250
+ Array: false;
251
+ ArrayBuffer: false;
252
+ Boolean: false;
253
+ DataView: false;
254
+ Date: false;
255
+ decodeURI: false;
256
+ decodeURIComponent: false;
257
+ encodeURI: false;
258
+ encodeURIComponent: false;
259
+ Error: false;
260
+ escape: false;
261
+ eval: false;
262
+ EvalError: false;
263
+ Float32Array: false;
264
+ Float64Array: false;
265
+ Function: false;
266
+ Infinity: false;
267
+ Int16Array: false;
268
+ Int32Array: false;
269
+ Int8Array: false;
270
+ Intl: false;
271
+ isFinite: false;
272
+ isNaN: false;
273
+ JSON: false;
274
+ Map: false;
275
+ Math: false;
276
+ NaN: false;
277
+ Number: false;
278
+ Object: false;
279
+ parseFloat: false;
280
+ parseInt: false;
281
+ Promise: false;
282
+ Proxy: false;
283
+ RangeError: false;
284
+ ReferenceError: false;
285
+ Reflect: false;
286
+ RegExp: false;
287
+ Set: false;
288
+ String: false;
289
+ Symbol: false;
290
+ SyntaxError: false;
291
+ TypeError: false;
292
+ Uint16Array: false;
293
+ Uint32Array: false;
294
+ Uint8Array: false;
295
+ Uint8ClampedArray: false;
296
+ undefined: false;
297
+ unescape: false;
298
+ URIError: false;
299
+ WeakMap: false;
300
+ WeakSet: false;
301
+ };
302
+ parserOptions: {
303
+ ecmaVersion: 6;
304
+ sourceType: "module";
305
+ ecmaFeatures: {
306
+ generators: boolean;
307
+ objectLiteralDuplicateProperties: boolean;
308
+ };
309
+ };
310
+ };
311
+ rules: {
312
+ 'arrow-body-style': ["error", string, {
313
+ requireReturnForObjectLiteral: boolean;
314
+ }];
315
+ 'arrow-parens': ["error", string];
316
+ 'arrow-spacing': ["error", {
317
+ before: boolean;
318
+ after: boolean;
319
+ }];
320
+ 'constructor-super': "error";
321
+ 'generator-star-spacing': ["error", {
322
+ before: boolean;
323
+ after: boolean;
324
+ }];
325
+ 'no-class-assign': "error";
326
+ 'no-confusing-arrow': ["error", {
327
+ allowParens: boolean;
328
+ }];
329
+ 'no-const-assign': "error";
330
+ 'no-dupe-class-members': "error";
331
+ 'no-duplicate-imports': "off";
332
+ 'no-new-symbol': "error";
333
+ 'no-restricted-exports': ["error", {
334
+ restrictedNamedExports: string[];
335
+ }];
336
+ 'no-restricted-imports': ["off", {
337
+ paths: never[];
338
+ patterns: never[];
339
+ }];
340
+ 'no-this-before-super': "error";
341
+ 'no-useless-computed-key': "error";
342
+ 'no-useless-constructor': "error";
343
+ 'no-useless-rename': ["error", {
344
+ ignoreDestructuring: boolean;
345
+ ignoreImport: boolean;
346
+ ignoreExport: boolean;
347
+ }];
348
+ 'no-var': "error";
349
+ 'object-shorthand': ["error", string, {
350
+ ignoreConstructors: boolean;
351
+ avoidQuotes: boolean;
352
+ }];
353
+ 'prefer-arrow-callback': ["error", {
354
+ allowNamedFunctions: boolean;
355
+ allowUnboundThis: boolean;
356
+ }];
357
+ 'prefer-const': ["error", {
358
+ destructuring: string;
359
+ ignoreReadBeforeAssign: boolean;
360
+ }];
361
+ 'prefer-destructuring': ["error", {
362
+ VariableDeclarator: {
363
+ array: boolean;
364
+ object: boolean;
365
+ };
366
+ AssignmentExpression: {
367
+ array: boolean;
368
+ object: boolean;
369
+ };
370
+ }, {
371
+ enforceForRenamedProperties: boolean;
372
+ }];
373
+ 'prefer-numeric-literals': "error";
374
+ 'prefer-reflect': "off";
375
+ 'prefer-rest-params': "error";
376
+ 'prefer-spread': "error";
377
+ 'prefer-template': "error";
378
+ 'require-yield': "error";
379
+ 'rest-spread-spacing': ["error", string];
380
+ 'sort-imports': ["off", {
381
+ ignoreCase: boolean;
382
+ ignoreDeclarationSort: boolean;
383
+ ignoreMemberSort: boolean;
384
+ memberSyntaxSortOrder: string[];
385
+ }];
386
+ 'symbol-description': "error";
387
+ 'template-curly-spacing': "error";
388
+ 'yield-star-spacing': ["error", string];
389
+ };
390
+ };
391
+ imports: any;
392
+ node: {
393
+ name: string;
394
+ languageOptions: {
395
+ globals: {
396
+ AbortController: false;
397
+ AbortSignal: false;
398
+ atob: false;
399
+ Blob: false;
400
+ BroadcastChannel: false;
401
+ btoa: false;
402
+ Buffer: false;
403
+ ByteLengthQueuingStrategy: false;
404
+ clearImmediate: false;
405
+ clearInterval: false;
406
+ clearTimeout: false;
407
+ CloseEvent: false;
408
+ CompressionStream: false;
409
+ console: false;
410
+ CountQueuingStrategy: false;
411
+ crypto: false;
412
+ Crypto: false;
413
+ CryptoKey: false;
414
+ CustomEvent: false;
415
+ DecompressionStream: false;
416
+ DOMException: false;
417
+ Event: false;
418
+ EventTarget: false;
419
+ fetch: false;
420
+ File: false;
421
+ FormData: false;
422
+ global: false;
423
+ Headers: false;
424
+ MessageChannel: false;
425
+ MessageEvent: false;
426
+ MessagePort: false;
427
+ navigator: false;
428
+ Navigator: false;
429
+ performance: false;
430
+ Performance: false;
431
+ PerformanceEntry: false;
432
+ PerformanceMark: false;
433
+ PerformanceMeasure: false;
434
+ PerformanceObserver: false;
435
+ PerformanceObserverEntryList: false;
436
+ PerformanceResourceTiming: false;
437
+ process: false;
438
+ queueMicrotask: false;
439
+ ReadableByteStreamController: false;
440
+ ReadableStream: false;
441
+ ReadableStreamBYOBReader: false;
442
+ ReadableStreamBYOBRequest: false;
443
+ ReadableStreamDefaultController: false;
444
+ ReadableStreamDefaultReader: false;
445
+ Request: false;
446
+ Response: false;
447
+ setImmediate: false;
448
+ setInterval: false;
449
+ setTimeout: false;
450
+ structuredClone: false;
451
+ SubtleCrypto: false;
452
+ TextDecoder: false;
453
+ TextDecoderStream: false;
454
+ TextEncoder: false;
455
+ TextEncoderStream: false;
456
+ TransformStream: false;
457
+ TransformStreamDefaultController: false;
458
+ URL: false;
459
+ URLSearchParams: false;
460
+ WebAssembly: false;
461
+ WebSocket: false;
462
+ WritableStream: false;
463
+ WritableStreamDefaultController: false;
464
+ WritableStreamDefaultWriter: false;
465
+ };
466
+ };
467
+ rules: {
468
+ 'callback-return': "off";
469
+ 'global-require': "error";
470
+ 'handle-callback-err': "off";
471
+ 'no-buffer-constructor': "error";
472
+ 'no-mixed-requires': ["off", boolean];
473
+ 'no-new-require': "error";
474
+ 'no-path-concat': "error";
475
+ 'no-process-env': "off";
476
+ 'no-process-exit': "off";
477
+ 'no-restricted-modules': "off";
478
+ 'no-sync': "off";
479
+ };
480
+ };
481
+ strict: {
482
+ name: string;
483
+ rules: {
484
+ strict: ["error", string];
485
+ };
486
+ };
487
+ style: {
488
+ name: string;
489
+ rules: {
490
+ 'array-bracket-newline': ["off", string];
491
+ 'array-element-newline': ["off", {
492
+ multiline: boolean;
493
+ minItems: number;
494
+ }];
495
+ 'array-bracket-spacing': ["error", string];
496
+ 'block-spacing': ["error", string];
497
+ 'brace-style': ["error", string, {
498
+ allowSingleLine: boolean;
499
+ }];
500
+ camelcase: ["error", {
501
+ properties: string;
502
+ ignoreDestructuring: boolean;
503
+ }];
504
+ 'capitalized-comments': ["off", string, {
505
+ line: {
506
+ ignorePattern: string;
507
+ ignoreInlineComments: boolean;
508
+ ignoreConsecutiveComments: boolean;
509
+ };
510
+ block: {
511
+ ignorePattern: string;
512
+ ignoreInlineComments: boolean;
513
+ ignoreConsecutiveComments: boolean;
514
+ };
515
+ }];
516
+ 'comma-dangle': ["error", {
517
+ arrays: string;
518
+ objects: string;
519
+ imports: string;
520
+ exports: string;
521
+ functions: string;
522
+ }];
523
+ 'comma-spacing': ["error", {
524
+ before: boolean;
525
+ after: boolean;
526
+ }];
527
+ 'comma-style': ["error", string, {
528
+ exceptions: {
529
+ ArrayExpression: boolean;
530
+ ArrayPattern: boolean;
531
+ ArrowFunctionExpression: boolean;
532
+ CallExpression: boolean;
533
+ FunctionDeclaration: boolean;
534
+ FunctionExpression: boolean;
535
+ ImportDeclaration: boolean;
536
+ ObjectExpression: boolean;
537
+ ObjectPattern: boolean;
538
+ VariableDeclaration: boolean;
539
+ NewExpression: boolean;
540
+ };
541
+ }];
542
+ 'computed-property-spacing': ["error", string];
543
+ 'consistent-this': "off";
544
+ 'eol-last': ["error", string];
545
+ 'function-call-argument-newline': ["error", string];
546
+ 'func-call-spacing': ["error", string];
547
+ 'func-name-matching': ["off", string, {
548
+ includeCommonJSModuleExports: boolean;
549
+ considerPropertyDescriptor: boolean;
550
+ }];
551
+ 'func-names': "warn";
552
+ 'func-style': ["off", string];
553
+ 'function-paren-newline': ["error", string];
554
+ 'id-denylist': "off";
555
+ 'id-length': "off";
556
+ 'id-match': "off";
557
+ 'implicit-arrow-linebreak': ["error", string];
558
+ indent: ["error", number, {
559
+ SwitchCase: number;
560
+ VariableDeclarator: number;
561
+ outerIIFEBody: number;
562
+ FunctionDeclaration: {
563
+ parameters: number;
564
+ body: number;
565
+ };
566
+ FunctionExpression: {
567
+ parameters: number;
568
+ body: number;
569
+ };
570
+ CallExpression: {
571
+ arguments: number;
572
+ };
573
+ ArrayExpression: number;
574
+ ObjectExpression: number;
575
+ ImportDeclaration: number;
576
+ flatTernaryExpressions: boolean;
577
+ ignoredNodes: string[];
578
+ ignoreComments: boolean;
579
+ }];
580
+ 'jsx-quotes': ["off", string];
581
+ 'key-spacing': ["error", {
582
+ beforeColon: boolean;
583
+ afterColon: boolean;
584
+ }];
585
+ 'keyword-spacing': ["error", {
586
+ before: boolean;
587
+ after: boolean;
588
+ overrides: {
589
+ return: {
590
+ after: boolean;
591
+ };
592
+ throw: {
593
+ after: boolean;
594
+ };
595
+ case: {
596
+ after: boolean;
597
+ };
598
+ };
599
+ }];
600
+ 'line-comment-position': ["off", {
601
+ position: string;
602
+ ignorePattern: string;
603
+ applyDefaultPatterns: boolean;
604
+ }];
605
+ 'linebreak-style': ["error", string];
606
+ 'lines-between-class-members': ["error", string, {
607
+ exceptAfterSingleLine: boolean;
608
+ }];
609
+ 'lines-around-comment': "off";
610
+ 'lines-around-directive': ["error", {
611
+ before: string;
612
+ after: string;
613
+ }];
614
+ 'logical-assignment-operators': ["off", string, {
615
+ enforceForIfStatements: boolean;
616
+ }];
617
+ 'max-depth': ["off", number];
618
+ 'max-len': ["error", number, number, {
619
+ ignoreUrls: boolean;
620
+ ignoreComments: boolean;
621
+ ignoreRegExpLiterals: boolean;
622
+ ignoreStrings: boolean;
623
+ ignoreTemplateLiterals: boolean;
624
+ }];
625
+ 'max-lines': ["off", {
626
+ max: number;
627
+ skipBlankLines: boolean;
628
+ skipComments: boolean;
629
+ }];
630
+ 'max-lines-per-function': ["off", {
631
+ max: number;
632
+ skipBlankLines: boolean;
633
+ skipComments: boolean;
634
+ IIFEs: boolean;
635
+ }];
636
+ 'max-nested-callbacks': "off";
637
+ 'max-params': ["off", number];
638
+ 'max-statements': ["off", number];
639
+ 'max-statements-per-line': ["off", {
640
+ max: number;
641
+ }];
642
+ 'multiline-comment-style': ["off", string];
643
+ 'multiline-ternary': ["off", string];
644
+ 'new-cap': ["error", {
645
+ newIsCap: boolean;
646
+ newIsCapExceptions: never[];
647
+ capIsNew: boolean;
648
+ capIsNewExceptions: string[];
649
+ }];
650
+ 'new-parens': "error";
651
+ 'newline-after-var': "off";
652
+ 'newline-before-return': "off";
653
+ 'newline-per-chained-call': ["error", {
654
+ ignoreChainWithDepth: number;
655
+ }];
656
+ 'no-array-constructor': "error";
657
+ 'no-bitwise': "error";
658
+ 'no-continue': "error";
659
+ 'no-inline-comments': "off";
660
+ 'no-lonely-if': "error";
661
+ 'no-mixed-operators': ["error", {
662
+ groups: string[][];
663
+ allowSamePrecedence: boolean;
664
+ }];
665
+ 'no-mixed-spaces-and-tabs': "error";
666
+ 'no-multi-assign': ["error"];
667
+ 'no-multiple-empty-lines': ["error", {
668
+ max: number;
669
+ maxBOF: number;
670
+ maxEOF: number;
671
+ }];
672
+ 'no-negated-condition': "off";
673
+ 'no-nested-ternary': "error";
674
+ 'no-new-object': "error";
675
+ 'no-plusplus': "error";
676
+ 'no-restricted-syntax': ["error", {
677
+ selector: string;
678
+ message: string;
679
+ }, {
680
+ selector: string;
681
+ message: string;
682
+ }, {
683
+ selector: string;
684
+ message: string;
685
+ }, {
686
+ selector: string;
687
+ message: string;
688
+ }];
689
+ 'no-spaced-func': "off";
690
+ 'no-tabs': "error";
691
+ 'no-ternary': "off";
692
+ 'no-trailing-spaces': ["error", {
693
+ skipBlankLines: boolean;
694
+ ignoreComments: boolean;
695
+ }];
696
+ 'no-underscore-dangle': ["error", {
697
+ allow: never[];
698
+ allowAfterThis: boolean;
699
+ allowAfterSuper: boolean;
700
+ enforceInMethodNames: boolean;
701
+ }];
702
+ 'no-unneeded-ternary': ["error", {
703
+ defaultAssignment: boolean;
704
+ }];
705
+ 'no-whitespace-before-property': "error";
706
+ 'nonblock-statement-body-position': ["error", string, {
707
+ overrides: {};
708
+ }];
709
+ 'object-curly-spacing': ["error", string];
710
+ 'object-curly-newline': ["error", {
711
+ ObjectExpression: {
712
+ minProperties: number;
713
+ multiline: boolean;
714
+ consistent: boolean;
715
+ };
716
+ ObjectPattern: {
717
+ minProperties: number;
718
+ multiline: boolean;
719
+ consistent: boolean;
720
+ };
721
+ ImportDeclaration: {
722
+ minProperties: number;
723
+ multiline: boolean;
724
+ consistent: boolean;
725
+ };
726
+ ExportDeclaration: {
727
+ minProperties: number;
728
+ multiline: boolean;
729
+ consistent: boolean;
730
+ };
731
+ }];
732
+ 'object-property-newline': ["error", {
733
+ allowAllPropertiesOnSameLine: boolean;
734
+ }];
735
+ 'one-var': ["error", string];
736
+ 'one-var-declaration-per-line': ["error", string];
737
+ 'operator-assignment': ["error", string];
738
+ 'operator-linebreak': ["error", string, {
739
+ overrides: {
740
+ '=': string;
741
+ };
742
+ }];
743
+ 'padded-blocks': ["error", {
744
+ blocks: string;
745
+ classes: string;
746
+ switches: string;
747
+ }, {
748
+ allowSingleLineBlocks: boolean;
749
+ }];
750
+ 'padding-line-between-statements': "off";
751
+ 'prefer-exponentiation-operator': "error";
752
+ 'prefer-object-spread': "error";
753
+ 'quote-props': ["error", string, {
754
+ keywords: boolean;
755
+ unnecessary: boolean;
756
+ numbers: boolean;
757
+ }];
758
+ quotes: ["error", string, {
759
+ avoidEscape: boolean;
760
+ }];
761
+ 'require-jsdoc': "off";
762
+ semi: ["error", string];
763
+ 'semi-spacing': ["error", {
764
+ before: boolean;
765
+ after: boolean;
766
+ }];
767
+ 'semi-style': ["error", string];
768
+ 'sort-keys': ["off", string, {
769
+ caseSensitive: boolean;
770
+ natural: boolean;
771
+ }];
772
+ 'sort-vars': "off";
773
+ 'space-before-blocks': "error";
774
+ 'space-before-function-paren': ["error", {
775
+ anonymous: string;
776
+ named: string;
777
+ asyncArrow: string;
778
+ }];
779
+ 'space-in-parens': ["error", string];
780
+ 'space-infix-ops': "error";
781
+ 'space-unary-ops': ["error", {
782
+ words: boolean;
783
+ nonwords: boolean;
784
+ overrides: {};
785
+ }];
786
+ 'spaced-comment': ["error", string, {
787
+ line: {
788
+ exceptions: string[];
789
+ markers: string[];
790
+ };
791
+ block: {
792
+ exceptions: string[];
793
+ markers: string[];
794
+ balanced: boolean;
795
+ };
796
+ }];
797
+ 'switch-colon-spacing': ["error", {
798
+ after: boolean;
799
+ before: boolean;
800
+ }];
801
+ 'template-tag-spacing': ["error", string];
802
+ 'unicode-bom': ["error", string];
803
+ 'wrap-regex': "off";
804
+ };
805
+ };
806
+ variables: {
807
+ name: string;
808
+ rules: {
809
+ 'init-declarations': "off";
810
+ 'no-catch-shadow': "off";
811
+ 'no-delete-var': "error";
812
+ 'no-label-var': "error";
813
+ 'no-restricted-globals': ["error", {
814
+ name: string;
815
+ message: string;
816
+ }, {
817
+ name: string;
818
+ message: string;
819
+ }, ...{
820
+ name: "self" | "location" | "external" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
821
+ message: string;
822
+ }[]];
823
+ 'no-shadow': "error";
824
+ 'no-shadow-restricted-names': "error";
825
+ 'no-undef': "error";
826
+ 'no-undef-init': "error";
827
+ 'no-undefined': "off";
828
+ 'no-unused-vars': ["error", {
829
+ vars: string;
830
+ args: string;
831
+ ignoreRestSiblings: boolean;
832
+ }];
833
+ 'no-use-before-define': ["error", {
834
+ functions: boolean;
835
+ classes: boolean;
836
+ variables: boolean;
837
+ }];
838
+ };
839
+ };
840
+ };
841
+ export default _default;