@newsteam/eslint-config 0.0.215 → 0.0.217

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.
@@ -244,9 +244,11 @@ module.exports = {
244
244
  /*
245
245
  * Enforce PascalCase for user-defined JSX components
246
246
  *
247
+ * Handled by @stylistic
248
+ *
247
249
  * https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md
248
250
  */
249
- "react/jsx-pascal-case": "error",
251
+ "react/jsx-pascal-case": "off",
250
252
  /*
251
253
  * Disallow multiple spaces between inline JSX props (fixable)
252
254
  *
@@ -260,6 +260,12 @@ var rules = {
260
260
  * https://eslint.style/rules/default/jsx-one-expression-per-line
261
261
  */
262
262
  "@stylistic/jsx-one-expression-per-line": "error",
263
+ /*
264
+ * Enforces coding style that user-defined JSX components are defined and referenced in PascalCase.
265
+ *
266
+ * https://eslint.style/rules/default/jsx-pascal-case
267
+ */
268
+ "@stylistic/jsx-pascal-case": "error",
263
269
  /*
264
270
  * Disallow multiple spaces between inline JSX props (fixable)
265
271
  *
@@ -25,61 +25,61 @@ var settings_1 = require("../settings");
25
25
  /*
26
26
  * Lint rules for the TypeScript language.
27
27
  *
28
- * https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
28
+ * https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin
29
29
  */
30
30
  var rules = {
31
31
  /*
32
32
  * Require that member overloads be consecutive
33
33
  *
34
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md
34
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md
35
35
  */
36
36
  "@typescript-eslint/adjacent-overload-signatures": "error",
37
37
  /*
38
38
  * Requires using either T[] or Array<T> for arrays
39
39
  *
40
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.md
40
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/array-type.md
41
41
  */
42
42
  "@typescript-eslint/array-type": "error",
43
43
  /*
44
44
  * Disallows awaiting a value that is not a Promise
45
45
  *
46
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md
46
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/await-thenable.md
47
47
  */
48
48
  "@typescript-eslint/await-thenable": "error",
49
49
  /*
50
50
  * Bans // @ts-<directive> comments from being used
51
51
  *
52
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md
52
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-ts-comment.md
53
53
  */
54
54
  "@typescript-eslint/ban-ts-comment": "error",
55
55
  /*
56
56
  * Bans // tslint:<rule-flag> comments from being used
57
57
  *
58
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-tslint-comment.md
58
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-tslint-comment.md
59
59
  */
60
60
  "@typescript-eslint/ban-tslint-comment": "error",
61
61
  /*
62
62
  * Enforces that types will not to be used
63
63
  *
64
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-types.md
64
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-types.md
65
65
  */
66
66
  "@typescript-eslint/ban-types": "error",
67
67
  /*
68
68
  * Ensures that literals on classes are exposed in a consistent style
69
69
  *
70
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/class-literal-property-style.md
70
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/class-literal-property-style.md
71
71
  */
72
72
  "@typescript-eslint/class-literal-property-style": "error",
73
73
  /*
74
74
  * Enforce that literals on classes are exposed in a consistent style.
75
75
  *
76
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/class-methods-use-this.md
76
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/class-methods-use-this.md
77
77
  */
78
78
  "@typescript-eslint/class-methods-use-this": "error",
79
79
  /*
80
80
  * Enforces specifying generic type arguments on type annotation or constructor name of a constructor call.
81
81
  *
82
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-generic-constructors.md
82
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-generic-constructors.md
83
83
  */
84
84
  "@typescript-eslint/consistent-generic-constructors": [
85
85
  "error",
@@ -88,13 +88,13 @@ var rules = {
88
88
  /*
89
89
  * Enforce or disallow the use of the record type
90
90
  *
91
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-indexed-object-style.md
91
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-indexed-object-style.md
92
92
  */
93
93
  "@typescript-eslint/consistent-indexed-object-style": "error",
94
94
  /*
95
95
  * Enforces consistent usage of type assertions.
96
96
  *
97
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-assertions.md
97
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-assertions.md
98
98
  */
99
99
  "@typescript-eslint/consistent-type-assertions": [
100
100
  "error",
@@ -108,19 +108,19 @@ var rules = {
108
108
  *
109
109
  * There are pros and cons of both - not going to force this for now
110
110
  *
111
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
111
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
112
112
  */
113
113
  "@typescript-eslint/consistent-type-definitions": "off",
114
114
  /*
115
115
  * Enforces consistent usage of type exports
116
116
  *
117
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-exports.md
117
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-exports.md
118
118
  */
119
119
  "@typescript-eslint/consistent-type-exports": "error",
120
120
  /*
121
121
  * Enforces consistent usage of type imports
122
122
  *
123
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-imports.md
123
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md
124
124
  */
125
125
  "@typescript-eslint/consistent-type-imports": [
126
126
  "error",
@@ -133,25 +133,25 @@ var rules = {
133
133
  /*
134
134
  * Enforce default parameters to be last
135
135
  *
136
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/default-param-last.md
136
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/default-param-last.md
137
137
  */
138
138
  "@typescript-eslint/default-param-last": "error",
139
139
  /*
140
140
  * Enforce dot notation whenever possible
141
141
  *
142
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/dot-notation.md
142
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/dot-notation.md
143
143
  */
144
144
  "@typescript-eslint/dot-notation": "error",
145
145
  /*
146
146
  * Require explicit return types on functions and class methods
147
147
  *
148
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
148
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
149
149
  */
150
150
  "@typescript-eslint/explicit-function-return-type": "error",
151
151
  /*
152
152
  * Require explicit accessibility modifiers on class properties and methods
153
153
  *
154
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
154
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
155
155
  */
156
156
  "@typescript-eslint/explicit-member-accessibility": [
157
157
  "error",
@@ -162,13 +162,13 @@ var rules = {
162
162
  /*
163
163
  * Require explicit return and argument types on exported functions' and classes' public class methods
164
164
  *
165
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
165
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
166
166
  */
167
167
  "@typescript-eslint/explicit-module-boundary-types": "error",
168
168
  /*
169
169
  * Require or disallow initialization in variable declarations
170
170
  *
171
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/init-declarations.md
171
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/init-declarations.md
172
172
  */
173
173
  "@typescript-eslint/init-declarations": [
174
174
  "error",
@@ -177,7 +177,7 @@ var rules = {
177
177
  /*
178
178
  *
179
179
  *
180
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/max-params.md
180
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/max-params.md
181
181
  */
182
182
  "@typescript-eslint/max-params": [
183
183
  "error",
@@ -188,7 +188,7 @@ var rules = {
188
188
  /*
189
189
  * Require a consistent member declaration order
190
190
  *
191
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md
191
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/member-ordering.md
192
192
  */
193
193
  "@typescript-eslint/member-ordering": [
194
194
  "error",
@@ -302,13 +302,13 @@ var rules = {
302
302
  /*
303
303
  * Enforces using a particular method signature syntax.
304
304
  *
305
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/method-signature-style.md
305
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/method-signature-style.md
306
306
  */
307
307
  "@typescript-eslint/method-signature-style": "error",
308
308
  /*
309
309
  * Enforces naming conventions for everything across a codebase
310
310
  *
311
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md
311
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md
312
312
  */
313
313
  "@typescript-eslint/naming-convention": [
314
314
  "error",
@@ -366,109 +366,109 @@ var rules = {
366
366
  /*
367
367
  * Disallow generic Array constructors
368
368
  *
369
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md
369
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-array-constructor.md
370
370
  */
371
371
  "@typescript-eslint/no-array-constructor": "error",
372
372
  /*
373
373
  * Disallow generic `Array` constructors.
374
374
  *
375
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-delete.md
375
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-array-delete.md
376
376
  */
377
377
  "@typescript-eslint/no-array-delete": "error",
378
378
  /*
379
379
  * Requires that .toString() is only called on objects which provide useful information when stringified
380
380
  *
381
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-base-to-string.md
381
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-base-to-string.md
382
382
  */
383
383
  "@typescript-eslint/no-base-to-string": "error",
384
384
  /*
385
385
  * Disallow non-null assertion in locations that may be confusing
386
386
  *
387
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md
387
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md
388
388
  */
389
389
  "@typescript-eslint/no-confusing-non-null-assertion": "error",
390
390
  /*
391
391
  * Requires expressions of type void to appear in statement position
392
392
  *
393
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-void-expression.md
393
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-confusing-void-expression.md
394
394
  */
395
395
  "@typescript-eslint/no-confusing-void-expression": "error",
396
396
  /*
397
397
  * Disallow duplicate class members
398
398
  *
399
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md
399
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-dupe-class-members.md
400
400
  */
401
401
  "@typescript-eslint/no-dupe-class-members": "error",
402
402
  /*
403
403
  * Disallow duplicate enum member values.
404
404
  *
405
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.md
405
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.md
406
406
  */
407
407
  "@typescript-eslint/no-duplicate-enum-values": "error",
408
408
  /*
409
409
  * Disallow duplicate enum member values.
410
410
  *
411
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.md
411
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.md
412
412
  */
413
413
  "@typescript-eslint/no-duplicate-type-constituents": "error",
414
414
  /*
415
415
  * Disallow the delete operator with computed key expressions
416
416
  *
417
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dynamic-delete.md
417
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-dynamic-delete.md
418
418
  */
419
419
  "@typescript-eslint/no-dynamic-delete": "error",
420
420
  /*
421
421
  * Disallow Empty Functions
422
422
  *
423
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-function.md
423
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-function.md
424
424
  */
425
425
  "@typescript-eslint/no-empty-function": "error",
426
426
  /*
427
427
  * Disallow the declaration of empty interfaces
428
428
  *
429
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-interface.md
429
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-interface.md
430
430
  */
431
431
  "@typescript-eslint/no-empty-interface": "error",
432
432
  /*
433
433
  * Disallow usage of the any type
434
434
  *
435
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md
435
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-explicit-any.md
436
436
  */
437
437
  "@typescript-eslint/no-explicit-any": "error",
438
438
  /*
439
439
  * Disallow extra non-null assertion
440
440
  *
441
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.md
441
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.md
442
442
  */
443
443
  "@typescript-eslint/no-extra-non-null-assertion": "error",
444
444
  /*
445
445
  * Forbids the use of classes as namespaces
446
446
  *
447
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extraneous-class.md
447
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-extraneous-class.md
448
448
  */
449
449
  "@typescript-eslint/no-extraneous-class": "error",
450
450
  /*
451
451
  * Requires Promise-like values to be handled appropriately
452
452
  *
453
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md
453
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-floating-promises.md
454
454
  */
455
455
  "@typescript-eslint/no-floating-promises": "error",
456
456
  /*
457
457
  * Disallow iterating over an array with a for-in loop
458
458
  *
459
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-for-in-array.md
459
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-for-in-array.md
460
460
  */
461
461
  "@typescript-eslint/no-for-in-array": "error",
462
462
  /*
463
463
  * Disallow the use of eval()-like methods
464
464
  *
465
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implied-eval.md
465
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-implied-eval.md
466
466
  */
467
467
  "@typescript-eslint/no-implied-eval": "error",
468
468
  /*
469
469
  * Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers.
470
470
  *
471
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md
471
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md
472
472
  */
473
473
  "@typescript-eslint/no-import-type-side-effects": "error",
474
474
  /*
@@ -476,38 +476,38 @@ var rules = {
476
476
  *
477
477
  * This is off for now
478
478
  *
479
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-inferrable-types.md
479
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-inferrable-types.md
480
480
  */
481
481
  "@typescript-eslint/no-inferrable-types": "error",
482
482
  /*
483
483
  * Disallow this keywords outside of classes or class-like objects
484
484
  *
485
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-invalid-this.md
485
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-invalid-this.md
486
486
  */
487
487
  "@typescript-eslint/no-invalid-this": "error",
488
488
  /*
489
489
  * Disallows usage of void type outside of return types or generic type arguments.
490
490
  * If void is used as return type, it shouldn’t be a part of intersection/union type.
491
491
  *
492
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-invalid-void-type.md
492
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-invalid-void-type.md
493
493
  */
494
494
  "@typescript-eslint/no-invalid-void-type": "error",
495
495
  /*
496
496
  * Disallow function declarations that contain unsafe references inside loop statements
497
497
  *
498
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loop-func.md
498
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-loop-func.md
499
499
  */
500
500
  "@typescript-eslint/no-loop-func": "error",
501
501
  /*
502
502
  * Disallow literal numbers that lose precision
503
503
  *
504
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loss-of-precision.md
504
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-loss-of-precision.md
505
505
  */
506
506
  "@typescript-eslint/no-loss-of-precision": "error",
507
507
  /*
508
508
  * Disallow Magic Numbers
509
509
  *
510
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-magic-numbers.md
510
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-magic-numbers.md
511
511
  */
512
512
  "@typescript-eslint/no-magic-numbers": [
513
513
  "error",
@@ -516,25 +516,25 @@ var rules = {
516
516
  /*
517
517
  * Disallow the void operator except when used to discard a value
518
518
  *
519
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-meaningless-void-operator.md
519
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-meaningless-void-operator.md
520
520
  */
521
521
  "@typescript-eslint/no-meaningless-void-operator": "error",
522
522
  /*
523
523
  * Enforce valid definition of new and constructor.
524
524
  *
525
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-new.md
525
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-new.md
526
526
  */
527
527
  "@typescript-eslint/no-misused-new": "error",
528
528
  /*
529
529
  * Avoid using promises in places not designed to handle them
530
530
  *
531
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-promises.md
531
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.md
532
532
  */
533
533
  "@typescript-eslint/no-misused-promises": "error",
534
534
  /*
535
535
  * Disallow enums from having both number and string members.
536
536
  *
537
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-mixed-enums.md
537
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-mixed-enums.md
538
538
  */
539
539
  "@typescript-eslint/no-mixed-enums": "error",
540
540
  /*
@@ -542,19 +542,19 @@ var rules = {
542
542
  *
543
543
  * This is off because sometimes it's nice to be able to define a type namespace
544
544
  *
545
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-namespace.md
545
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-namespace.md
546
546
  */
547
547
  "@typescript-eslint/no-namespace": "off",
548
548
  /*
549
549
  * Disallows using a non-null assertion in the left operand of the nullish coalescing operator
550
550
  *
551
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md
551
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md
552
552
  */
553
553
  "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
554
554
  /*
555
555
  * Disallows using a non-null assertion after an optional chain expression
556
556
  *
557
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md
557
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md
558
558
  */
559
559
  "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
560
560
  /*
@@ -562,61 +562,61 @@ var rules = {
562
562
  *
563
563
  * We like this language feature
564
564
  *
565
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
565
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
566
566
  */
567
567
  "@typescript-eslint/no-non-null-assertion": "off",
568
568
  /*
569
569
  * Disallow variable redeclaration
570
570
  *
571
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md
571
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redeclare.md
572
572
  */
573
573
  "@typescript-eslint/no-redeclare": "error",
574
574
  /*
575
575
  * Disallow members of unions and intersections that do nothing or override type information.
576
576
  *
577
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redundant-type-constituents.md
577
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redundant-type-constituents.md
578
578
  */
579
579
  "@typescript-eslint/no-redundant-type-constituents": "error",
580
580
  /*
581
581
  * Prefer the newer ES6-style imports over require().
582
582
  *
583
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-require-imports.md
583
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-require-imports.md
584
584
  */
585
585
  "@typescript-eslint/no-require-imports": "error",
586
586
  /*
587
587
  * Disallows invocation of require()
588
588
  *
589
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-restricted-imports.md
589
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-restricted-imports.md
590
590
  */
591
591
  "@typescript-eslint/no-restricted-imports": "error",
592
592
  /*
593
593
  * Disallow variable declarations from shadowing variables declared in the outer scope
594
594
  *
595
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md
595
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-shadow.md
596
596
  */
597
597
  "@typescript-eslint/no-shadow": "error",
598
598
  /*
599
599
  * Disallow aliasing this
600
600
  *
601
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-this-alias.md
601
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-this-alias.md
602
602
  */
603
603
  "@typescript-eslint/no-this-alias": "error",
604
604
  /*
605
605
  * Disallow throwing literals as exceptions
606
606
  *
607
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-throw-literal.md
607
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-throw-literal.md
608
608
  */
609
609
  "@typescript-eslint/no-throw-literal": "error",
610
610
  /*
611
611
  * Flags unnecessary equality comparisons against boolean literals
612
612
  *
613
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
613
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
614
614
  */
615
615
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
616
616
  /*
617
617
  * Condition expressions must be necessary
618
618
  *
619
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md
619
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md
620
620
  */
621
621
  "@typescript-eslint/no-unnecessary-condition": [
622
622
  "error",
@@ -627,55 +627,55 @@ var rules = {
627
627
  /*
628
628
  * Warns when a namespace qualifier is unnecessary.
629
629
  *
630
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.md
630
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.md
631
631
  */
632
632
  "@typescript-eslint/no-unnecessary-qualifier": "error",
633
633
  /*
634
634
  * Enforces that types will not to be used
635
635
  *
636
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md
636
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md
637
637
  */
638
638
  "@typescript-eslint/no-unnecessary-type-arguments": "error",
639
639
  /*
640
640
  * Warns if a type assertion does not change the type of an expression
641
641
  *
642
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
642
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
643
643
  */
644
644
  "@typescript-eslint/no-unnecessary-type-assertion": "error",
645
645
  /*
646
646
  * Disallows unnecessary constraints on generic types
647
647
  *
648
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md
648
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md
649
649
  */
650
650
  "@typescript-eslint/no-unnecessary-type-constraint": "error",
651
651
  /*
652
652
  * Disallows calling an function with an any type value
653
653
  *
654
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-argument.md
654
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-argument.md
655
655
  */
656
656
  "@typescript-eslint/no-unsafe-argument": "error",
657
657
  /*
658
658
  * Disallows assigning any to variables and properties
659
659
  *
660
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md
660
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md
661
661
  */
662
662
  "@typescript-eslint/no-unsafe-assignment": "error",
663
663
  /*
664
664
  * Disallows calling an any type value
665
665
  *
666
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-call.md
666
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-call.md
667
667
  */
668
668
  "@typescript-eslint/no-unsafe-call": "error",
669
669
  /*
670
670
  * Disallow unsafe declaration merging.
671
671
  *
672
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md
672
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md
673
673
  */
674
674
  "@typescript-eslint/no-unsafe-declaration-merging": "error",
675
675
  /*
676
676
  * Disallow comparing an enum value with a non-enum value.
677
677
  *
678
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-enum-comparison.md
678
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-enum-comparison.md
679
679
  */
680
680
  "@typescript-eslint/no-unsafe-enum-comparison": "error",
681
681
  /*
@@ -683,37 +683,37 @@ var rules = {
683
683
  *
684
684
  * This rule seems to be very buggy and often reports incorrectly
685
685
  *
686
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-member-access.md
686
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-member-access.md
687
687
  */
688
688
  "@typescript-eslint/no-unsafe-member-access": "off",
689
689
  /*
690
690
  * Disallows returning any from a function
691
691
  *
692
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-return.md
692
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-return.md
693
693
  */
694
694
  "@typescript-eslint/no-unsafe-return": "error",
695
695
  /*
696
696
  * Require unary negation to take a number.
697
697
  *
698
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-unary-minus.md
698
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-unary-minus.md
699
699
  */
700
700
  "@typescript-eslint/no-unsafe-unary-minus": "error",
701
701
  /*
702
702
  * Disallow unused expressions
703
703
  *
704
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-expressions.md
704
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-expressions.md
705
705
  */
706
706
  "@typescript-eslint/no-unused-expressions": "error",
707
707
  /*
708
708
  * Disallow unused variables
709
709
  *
710
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
710
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-vars.md
711
711
  */
712
712
  "@typescript-eslint/no-unused-vars": "error",
713
713
  /*
714
714
  * Disallow the use of variables before they are defined
715
715
  *
716
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md
716
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-use-before-define.md
717
717
  */
718
718
  "@typescript-eslint/no-use-before-define": [
719
719
  "error",
@@ -726,49 +726,49 @@ var rules = {
726
726
  /*
727
727
  * Disallow unnecessary constructors
728
728
  *
729
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md
729
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-constructor.md
730
730
  */
731
731
  "@typescript-eslint/no-useless-constructor": "error",
732
732
  /*
733
733
  * Disallow empty exports that don't change anything in a module file.
734
734
  *
735
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-empty-export.md
735
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-empty-export.md
736
736
  */
737
737
  "@typescript-eslint/no-useless-empty-export": "error",
738
738
  /*
739
739
  * Disallow unnecessary template literals.
740
740
  *
741
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-template-literals.md
741
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-template-literals.md
742
742
  */
743
743
  "@typescript-eslint/no-useless-template-literals": "error",
744
744
  /*
745
745
  * Disallows the use of require statements except in import statements
746
746
  *
747
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-var-requires.md
747
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-var-requires.md
748
748
  */
749
749
  "@typescript-eslint/no-var-requires": "error",
750
750
  /*
751
751
  * This rule detects when an as cast is doing the same job as a ! would, and suggests fixing the code to be an !.
752
752
  *
753
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md
753
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md
754
754
  */
755
755
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
756
756
  /*
757
757
  * Disallow the use of parameter properties in class constructors.
758
758
  *
759
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/parameter-properties.md
759
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/parameter-properties.md
760
760
  */
761
761
  "@typescript-eslint/parameter-properties": "error",
762
762
  /*
763
763
  * Prefer usage of as const over literal type
764
764
  *
765
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-as-const.md
765
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-as-const.md
766
766
  */
767
767
  "@typescript-eslint/prefer-as-const": "error",
768
768
  /*
769
769
  *
770
770
  *
771
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-destructuring.md
771
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-destructuring.md
772
772
  */
773
773
  "@typescript-eslint/prefer-destructuring": [
774
774
  "error",
@@ -780,61 +780,67 @@ var rules = {
780
780
  /*
781
781
  * Prefer initializing each enums member value
782
782
  *
783
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md
783
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md
784
784
  */
785
785
  "@typescript-eslint/prefer-enum-initializers": "error",
786
+ /*
787
+ * Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.
788
+ *
789
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-find.md
790
+ */
791
+ "@typescript-eslint/prefer-find": "error",
786
792
  /*
787
793
  * Use for-of loops instead of standard for loops over arrays
788
794
  *
789
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-for-of.md
795
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-for-of.md
790
796
  */
791
797
  "@typescript-eslint/prefer-for-of": "error",
792
798
  /*
793
799
  * Use function types instead of interfaces with call signatures
794
800
  *
795
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-function-type.md
801
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-function-type.md
796
802
  */
797
803
  "@typescript-eslint/prefer-function-type": "error",
798
804
  /*
799
805
  * Enforce includes method over indexOf method
800
806
  *
801
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-includes.md
807
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-includes.md
802
808
  */
803
809
  "@typescript-eslint/prefer-includes": "error",
804
810
  /*
805
811
  * Require that all enum members be literal values to prevent unintended enum member name shadow issues
806
812
  *
807
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-literal-enum-member.md
813
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-literal-enum-member.md
808
814
  */
809
815
  "@typescript-eslint/prefer-literal-enum-member": "error",
810
816
  /*
811
817
  * Require the use of the namespace keyword instead of the module keyword to declare custom TypeScript modules.
812
818
  *
813
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-namespace-keyword.md
819
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-namespace-keyword.md
814
820
  */
815
821
  "@typescript-eslint/prefer-namespace-keyword": "error",
816
822
  /*
817
823
  * Enforce the usage of the nullish coalescing operator instead of logical chaining
818
824
  *
819
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
825
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
820
826
  */
821
827
  "@typescript-eslint/prefer-nullish-coalescing": "error",
822
828
  /*
823
829
  * Prefer using concise optional chain expressions instead of chained logical ands
824
830
  *
825
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-optional-chain.md
831
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-optional-chain.md
826
832
  */
827
833
  "@typescript-eslint/prefer-optional-chain": "error",
828
834
  /*
829
835
  * Require using Error objects as Promise rejection reasons.
830
836
  *
831
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-promise-reject-errors.md
837
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-promise-reject-errors.md
832
838
  */
833
839
  "@typescript-eslint/prefer-promise-reject-errors": "error",
834
840
  /*
835
841
  * Require never-modified private members be marked as readonly
836
842
  *
837
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly.md
843
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-readonly.md
838
844
  */
839
845
  "@typescript-eslint/prefer-readonly": "error",
840
846
  /*
@@ -842,37 +848,37 @@ var rules = {
842
848
  *
843
849
  * Appears like there are bugs in the rule and it's covered by no-param-reassign.
844
850
  *
845
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
851
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
846
852
  */
847
853
  "@typescript-eslint/prefer-readonly-parameter-types": "off",
848
854
  /*
849
855
  * Prefer using type parameter when calling Array#reduce instead of casting
850
856
  *
851
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md
857
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md
852
858
  */
853
859
  "@typescript-eslint/prefer-reduce-type-parameter": "error",
854
860
  /*
855
861
  * Enforce to use RegExp#exec over String#match
856
862
  *
857
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md
863
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md
858
864
  */
859
865
  "@typescript-eslint/prefer-regexp-exec": "error",
860
866
  /*
861
867
  * Enforce that this is used when only this type is returned
862
868
  *
863
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-return-this-type.md
869
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-return-this-type.md
864
870
  */
865
871
  "@typescript-eslint/prefer-return-this-type": "error",
866
872
  /*
867
873
  * Enforce the use of String#startsWith and String#endsWith instead of other equivalent methods of checking substrings
868
874
  *
869
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md
875
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md
870
876
  */
871
877
  "@typescript-eslint/prefer-string-starts-ends-with": "error",
872
878
  /*
873
879
  * Recommends using // @ts-expect-error over // @ts-ignore
874
880
  *
875
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md
881
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md
876
882
  */
877
883
  "@typescript-eslint/prefer-ts-expect-error": "error",
878
884
  /*
@@ -880,31 +886,31 @@ var rules = {
880
886
  *
881
887
  * This is off for now because it conflicts with require-await in some cases
882
888
  *
883
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/promise-function-async.md
889
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/promise-function-async.md
884
890
  */
885
891
  "@typescript-eslint/promise-function-async": "off",
886
892
  /*
887
893
  * Enforce giving compare argument to Array#sort
888
894
  *
889
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-array-sort-compare.md
895
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/require-array-sort-compare.md
890
896
  */
891
897
  "@typescript-eslint/require-array-sort-compare": "error",
892
898
  /*
893
899
  * Disallow async functions which have no await expression
894
900
  *
895
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-await.md
901
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/require-await.md
896
902
  */
897
903
  "@typescript-eslint/require-await": "error",
898
904
  /*
899
905
  * When adding two variables, operands must both be of type number or of type string.
900
906
  *
901
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-plus-operands.md
907
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-plus-operands.md
902
908
  */
903
909
  "@typescript-eslint/restrict-plus-operands": "error",
904
910
  /*
905
911
  * Enforce template literal expressions to be of string type.
906
912
  *
907
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-template-expressions.md
913
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.md
908
914
  */
909
915
  "@typescript-eslint/restrict-template-expressions": [
910
916
  "error",
@@ -917,13 +923,13 @@ var rules = {
917
923
  /*
918
924
  * Require/Disallow returning awaited values in specific contexts
919
925
  *
920
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md
926
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/return-await.md
921
927
  */
922
928
  "@typescript-eslint/return-await": "error",
923
929
  /*
924
930
  * Enforce constituents of a type union/intersection to be sorted alphabetically.
925
931
  *
926
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/sort-type-constituents.md
932
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-type-constituents.md
927
933
  */
928
934
  "@typescript-eslint/sort-type-constituents": "error",
929
935
  /*
@@ -931,19 +937,19 @@ var rules = {
931
937
  *
932
938
  * Off until ignoreRhs lands
933
939
  *
934
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
940
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
935
941
  */
936
942
  "@typescript-eslint/strict-boolean-expressions": "off",
937
943
  /*
938
944
  * Exhaustiveness checking in switch with union type
939
945
  *
940
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md
946
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md
941
947
  */
942
948
  "@typescript-eslint/switch-exhaustiveness-check": "error",
943
949
  /*
944
950
  * Sets preference level for triple slash directives versus ES6-style import declarations.
945
951
  *
946
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/triple-slash-reference.md
952
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/triple-slash-reference.md
947
953
  */
948
954
  "@typescript-eslint/triple-slash-reference": [
949
955
  "error",
@@ -963,19 +969,19 @@ var rules = {
963
969
  * and/or --strictPropertyInitialization compiler options to enforce type
964
970
  * annotations only when useful. (we do this)
965
971
  *
966
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/typedef.md
972
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/typedef.md
967
973
  */
968
974
  "@typescript-eslint/typedef": "off",
969
975
  /*
970
976
  * Enforces unbound methods are called with their expected scope.
971
977
  *
972
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md
978
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/unbound-method.md
973
979
  */
974
980
  "@typescript-eslint/unbound-method": "error",
975
981
  /*
976
982
  * Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
977
983
  *
978
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unified-signatures.md
984
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/unified-signatures.md
979
985
  */
980
986
  "@typescript-eslint/unified-signatures": "error",
981
987
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.215",
3
+ "version": "0.0.217",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
@@ -54,12 +54,12 @@
54
54
  "eslint-plugin-you-dont-need-lodash-underscore": "6.13.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@stylistic/eslint-plugin": "1.5.4",
57
+ "@stylistic/eslint-plugin": "1.6.1",
58
58
  "@types/eslint": "8.56.2",
59
59
  "@types/jasmine": "^5.1.4",
60
- "@types/node": "20.11.16",
61
- "@typescript-eslint/eslint-plugin": "6.20.0",
62
- "@typescript-eslint/parser": "6.20.0",
60
+ "@types/node": "20.11.17",
61
+ "@typescript-eslint/eslint-plugin": "7.0.1",
62
+ "@typescript-eslint/parser": "7.0.1",
63
63
  "eslint": "8.56.0",
64
64
  "eslint-find-rules": "4.1.0",
65
65
  "eslint-plugin-array-func": "^4.0.0",
@@ -86,15 +86,15 @@
86
86
  "eslint-plugin-react-refresh": "^0.4.5",
87
87
  "eslint-plugin-security": "2.1.0",
88
88
  "eslint-plugin-sort-keys-fix": "1.1.2",
89
- "eslint-plugin-unicorn": "50.0.1",
89
+ "eslint-plugin-unicorn": "51.0.1",
90
90
  "jasmine": "^5.1.0",
91
91
  "json-schema": "0.4.0",
92
92
  "typescript": "5.3.3"
93
93
  },
94
94
  "peerDependencies": {
95
- "@stylistic/eslint-plugin": "1.5.4",
96
- "@typescript-eslint/eslint-plugin": "6.20.0",
97
- "@typescript-eslint/parser": "6.20.0",
95
+ "@stylistic/eslint-plugin": "1.6.1",
96
+ "@typescript-eslint/eslint-plugin": "7.0.1",
97
+ "@typescript-eslint/parser": "7.0.1",
98
98
  "eslint": "8.56.0",
99
99
  "eslint-plugin-array-func": "^4.0.0",
100
100
  "eslint-plugin-css-modules": "2.12.0",
@@ -119,7 +119,7 @@
119
119
  "eslint-plugin-react-refresh": "^0.4.5",
120
120
  "eslint-plugin-security": "2.1.0",
121
121
  "eslint-plugin-sort-keys-fix": "1.1.2",
122
- "eslint-plugin-unicorn": "50.0.1",
122
+ "eslint-plugin-unicorn": "51.0.1",
123
123
  "eslint-plugin-you-dont-need-lodash-underscore": "6.13.0",
124
124
  "json-schema": "0.4.0",
125
125
  "typescript": "5.3.3"