@rhyster/eslint-config 1.0.0

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