@pplancq/eslint-config 5.0.9 → 5.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rules/base.js CHANGED
@@ -20,35 +20,35 @@ const baseRules = {
20
20
  // eslint https://eslint.org
21
21
  // Possible Problems - These rules relate to possible logic errors in code
22
22
 
23
- // Enforce return statements in callbacks of array methods
23
+ // Enforce `return` statements in callbacks of array methods
24
24
  // https://eslint.org/docs/latest/rules/array-callback-return
25
25
  'array-callback-return': ['error', { allowImplicit: true }],
26
26
 
27
- // Require super() calls in constructors
27
+ // Require `super()` calls in constructors
28
28
  // https://eslint.org/docs/latest/rules/constructor-super
29
29
  'constructor-super': 'error',
30
30
 
31
- // Enforce "for" loop update clause moving the counter in the right direction
31
+ // Enforce `for` loop update clause moving the counter in the right direction
32
32
  // https://eslint.org/docs/latest/rules/for-direction
33
33
  'for-direction': 'error',
34
34
 
35
- // Enforce return statements in getters
35
+ // Enforce `return` statements in getters
36
36
  // https://eslint.org/docs/latest/rules/getter-return
37
37
  'getter-return': ['error', { allowImplicit: true }],
38
38
 
39
- // Disallow using an async function as a Promise executor
39
+ // Disallow using an `async` function as a `Promise` executor
40
40
  // https://eslint.org/docs/latest/rules/no-async-promise-executor
41
41
  'no-async-promise-executor': 'error',
42
42
 
43
- // Disallow await inside of loops
43
+ // Disallow `await` inside of loops
44
44
  // https://eslint.org/docs/lates/rules/no-await-in-loop
45
45
  'no-await-in-loop': 'error',
46
46
 
47
- // Disallow reassigning class members
47
+ // Disallow reassigning `class` members
48
48
  // https://eslint.org/docs/lates/rules/no-class-assign
49
49
  'no-class-assign': 'error',
50
50
 
51
- // Disallow comparing against -0
51
+ // Disallow comparing against `-0`
52
52
  // https://eslint.org/docs/lates/rules/no-compare-neg-zero
53
53
  'no-compare-neg-zero': 'error',
54
54
 
@@ -56,7 +56,7 @@ const baseRules = {
56
56
  // https://eslint.org/docs/lates/rules/no-cond-assign
57
57
  'no-cond-assign': ['error', 'always'],
58
58
 
59
- // Disallow reassigning const variables
59
+ // Disallow reassigning `const` variables
60
60
  // https://eslint.org/docs/lates/rules/no-const-assign
61
61
  'no-const-assign': 'error',
62
62
 
@@ -68,7 +68,7 @@ const baseRules = {
68
68
  // https://eslint.org/docs/lates/rules/no-constant-condition
69
69
  'no-constant-condition': 'warn',
70
70
 
71
- // Disallow returning value from constructor
71
+ // Disallow returning value from `constructor`
72
72
  // https://eslint.org/docs/lates/rules/no-constructor-return
73
73
  'no-constructor-return': 'error',
74
74
 
@@ -76,19 +76,19 @@ const baseRules = {
76
76
  // https://eslint.org/docs/lates/rules/no-control-regex
77
77
  'no-control-regex': 'error',
78
78
 
79
- // Disallow the use of debugger
79
+ // Disallow the use of `debugger`
80
80
  // https://eslint.org/docs/lates/rules/no-debugger
81
81
  'no-debugger': 'error',
82
82
 
83
- // Disallow duplicate arguments in function definitions
83
+ // Disallow duplicate arguments in `function` definitions
84
84
  // https://eslint.org/docs/lates/rules/no-dupe-args
85
85
  'no-dupe-args': 'error',
86
86
 
87
- // Disallow duplicate class members
87
+ // Disallow duplicate `class` members
88
88
  // https://eslint.org/docs/lates/rules/no-dupe-class-members
89
89
  'no-dupe-class-members': 'error',
90
90
 
91
- // Disallow duplicate conditions in if-else-if chains
91
+ // Disallow duplicate conditions in `if-else-if` chains
92
92
  // https://eslint.org/docs/lates/rules/no-dupe-else-if
93
93
  'no-dupe-else-if': 'error',
94
94
 
@@ -96,7 +96,7 @@ const baseRules = {
96
96
  // https://eslint.org/docs/lates/rules/no-dupe-keys
97
97
  'no-dupe-keys': 'error',
98
98
 
99
- // Disallow duplicate case labels
99
+ // Disallow duplicate `case` labels
100
100
  // https://eslint.org/docs/latest/rules/no-duplicate-case
101
101
  'no-duplicate-case': 'error',
102
102
 
@@ -112,15 +112,15 @@ const baseRules = {
112
112
  // https://eslint.org/docs/latest/rules/no-empty-pattern
113
113
  'no-empty-pattern': 'error',
114
114
 
115
- // Disallow reassigning exceptions in catch clauses
115
+ // Disallow reassigning exceptions in `catch` clauses
116
116
  // https://eslint.org/docs/latest/rules/no-ex-assign
117
117
  'no-ex-assign': 'error',
118
118
 
119
- // Disallow fallthrough of case statements
119
+ // Disallow fallthrough of `case` statements
120
120
  // https://eslint.org/docs/latest/rules/no-fallthrough
121
121
  'no-fallthrough': 'error',
122
122
 
123
- // Disallow reassigning function declarations
123
+ // Disallow reassigning `function` declarations
124
124
  // https://eslint.org/docs/latest/rules/no-func-assign
125
125
  'no-func-assign': 'error',
126
126
 
@@ -128,11 +128,11 @@ const baseRules = {
128
128
  // https://eslint.org/docs/latest/rules/no-import-assign
129
129
  'no-import-assign': 'error',
130
130
 
131
- // Disallow variable or function declarations in nested blocks
131
+ // Disallow variable or `function` declarations in nested blocks
132
132
  // https://eslint.org/docs/latest/rules/no-inner-declarations
133
133
  'no-inner-declarations': 'error',
134
134
 
135
- // Disallow invalid regular expression strings in RegExp constructors
135
+ // Disallow invalid regular expression strings in `RegExp` constructors
136
136
  // https://eslint.org/docs/latest/rules/no-invalid-regexp
137
137
  'no-invalid-regexp': 'error',
138
138
 
@@ -148,11 +148,11 @@ const baseRules = {
148
148
  // https://eslint.org/docs/latest/rules/no-misleading-character-class
149
149
  'no-misleading-character-class': 'error',
150
150
 
151
- // Disallow new operators with global non-constructor functions
151
+ // Disallow `new` operators with global non-constructor functions
152
152
  // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
153
153
  'no-new-native-nonconstructor': 'off',
154
154
 
155
- // Disallow new operators with the Symbol object
155
+ // Disallow `new` operators with the `Symbol` object
156
156
  // https://eslint.org/docs/latest/rules/no-new-symbol
157
157
  'no-new-symbol': 'error',
158
158
 
@@ -160,11 +160,11 @@ const baseRules = {
160
160
  // https://eslint.org/docs/latest/rules/no-obj-calls
161
161
  'no-obj-calls': 'error',
162
162
 
163
- // Disallow returning values from Promise executor functions
163
+ // Disallow returning values from `Promise` executor functions
164
164
  // https://eslint.org/docs/latest/rules/no-promise-executor-return
165
165
  'no-promise-executor-return': 'error',
166
166
 
167
- // Disallow calling some Object.prototype methods directly on objects
167
+ // Disallow calling some `Object.prototype` methods directly on objects
168
168
  // https://eslint.org/docs/latest/rules/no-prototype-builtins
169
169
  'no-prototype-builtins': 'error',
170
170
 
@@ -193,11 +193,11 @@ const baseRules = {
193
193
  // https://eslint.org/docs/latest/rules/no-template-curly-in-string
194
194
  'no-template-curly-in-string': 'error',
195
195
 
196
- // Disallow this/super before calling super() in constructors
196
+ // Disallow `this`/`super` before calling `super()` in constructors
197
197
  // https://eslint.org/docs/latest/rules/no-this-before-super
198
198
  'no-this-before-super': 'error',
199
199
 
200
- // Disallow the use of undeclared variables unless mentioned in /*global */ comments
200
+ // Disallow the use of undeclared variables unless mentioned in `/*global */` comments
201
201
  // https://eslint.org/docs/latest/rules/no-undef
202
202
  'no-undef': 'error',
203
203
 
@@ -209,7 +209,7 @@ const baseRules = {
209
209
  // https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
210
210
  'no-unmodified-loop-condition': 'off',
211
211
 
212
- // Disallow unreachable code after return, throw, continue, and break statements
212
+ // Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements
213
213
  // https://eslint.org/docs/latest/rules/no-unreachable
214
214
  'no-unreachable': 'error',
215
215
 
@@ -222,7 +222,7 @@ const baseRules = {
222
222
  },
223
223
  ],
224
224
 
225
- // Disallow control flow statements in finally blocks
225
+ // Disallow control flow statements in `finally` blocks
226
226
  // https://eslint.org/docs/latest/rules/no-unsafe-finally
227
227
  'no-unsafe-finally': 'error',
228
228
 
@@ -230,7 +230,7 @@ const baseRules = {
230
230
  // https://eslint.org/docs/latest/rules/no-unsafe-negation
231
231
  'no-unsafe-negation': 'error',
232
232
 
233
- // Disallow use of optional chaining in contexts where the undefined value is not allowed
233
+ // Disallow use of optional chaining in contexts where the `undefined` value is not allowed
234
234
  // https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining
235
235
  'no-unsafe-optional-chaining': ['error', { disallowArithmeticOperators: true }],
236
236
 
@@ -250,15 +250,15 @@ const baseRules = {
250
250
  // https://eslint.org/docs/latest/rules/no-useless-backreference
251
251
  'no-useless-backreference': 'error',
252
252
 
253
- // Disallow assignments that can lead to race conditions due to usage of await or yield
253
+ // Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
254
254
  // https://eslint.org/docs/latest/rules/require-atomic-updates
255
255
  'require-atomic-updates': 'off',
256
256
 
257
- // Require calls to isNaN() when checking for NaN
257
+ // Require calls to `isNaN()` when checking for `NaN`
258
258
  // https://eslint.org/docs/latest/rules/use-isnan
259
259
  'use-isnan': 'error',
260
260
 
261
- // Enforce comparing typeof expressions against valid strings
261
+ // Enforce comparing `typeof` expressions against valid strings
262
262
  // https://eslint.org/docs/latest/rules/valid-typeof
263
263
  'valid-typeof': ['error', { requireStringLiterals: true }],
264
264
 
@@ -282,7 +282,7 @@ const baseRules = {
282
282
  // https://eslint.org/docs/latest/rules/block-scoped-var
283
283
  'block-scoped-var': 'error',
284
284
 
285
- // Enforce camelcase naming convention
285
+ // Enforce `camelcase` naming convention
286
286
  // https://eslint.org/docs/latest/rules/camelcase
287
287
  camelcase: ['error', { properties: 'never', ignoreDestructuring: false }],
288
288
 
@@ -305,7 +305,7 @@ const baseRules = {
305
305
  },
306
306
  ],
307
307
 
308
- // Enforce that class methods utilize this
308
+ // Enforce that class methods utilize `this`
309
309
  // https://eslint.org/docs/latest/rules/class-methods-use-this
310
310
  'class-methods-use-this': [
311
311
  'error',
@@ -318,7 +318,7 @@ const baseRules = {
318
318
  // https://eslint.org/docs/latest/rules/complexity
319
319
  complexity: ['off', 20],
320
320
 
321
- // Require return statements to either always or never specify values
321
+ // Require `return` statements to either always or never specify values
322
322
  // https://eslint.org/docs/latest/rules/consistent-return
323
323
  'consistent-return': 'error',
324
324
 
@@ -330,11 +330,11 @@ const baseRules = {
330
330
  // https://eslint.org/docs/latest/rules/curly
331
331
  curly: ['error', 'multi-line'],
332
332
 
333
- // Require default cases in switch statements
333
+ // Require `default` cases in `switch` statements
334
334
  // https://eslint.org/docs/latest/rules/default-case
335
335
  'default-case': ['error', { commentPattern: '^no default$' }],
336
336
 
337
- // Enforce default clauses in switch statements to be last
337
+ // Enforce `default` clauses in `switch` statements to be last
338
338
  // https://eslint.org/docs/latest/rules/default-case-last
339
339
  'default-case-last': 'error',
340
340
 
@@ -346,11 +346,11 @@ const baseRules = {
346
346
  // https://eslint.org/docs/latest/rules/dot-notation
347
347
  'dot-notation': ['error', { allowKeywords: true }],
348
348
 
349
- // Require the use of === and !==
349
+ // Require the use of `===` and `!==`
350
350
  // https://eslint.org/docs/latest/rules/eqeqeq
351
351
  eqeqeq: ['error', 'always', { null: 'ignore' }],
352
352
 
353
- // Require function names to match the name of the variable or property to which they are assigned
353
+ // Require `function` names to match the name of the variable or property to which they are assigned
354
354
  // https://eslint.org/docs/latest/rules/func-name-matching
355
355
  'func-name-matching': [
356
356
  'off',
@@ -361,11 +361,11 @@ const baseRules = {
361
361
  },
362
362
  ],
363
363
 
364
- // Require or disallow named function expressions
364
+ // Require or disallow named `function` expressions
365
365
  // https://eslint.org/docs/latest/rules/func-names
366
366
  'func-names': 'warn',
367
367
 
368
- // Enforce the consistent use of either function declarations or expressions
368
+ // Enforce the consistent use of either `function` declarations or expressions
369
369
  // https://eslint.org/docs/latest/rules/func-style
370
370
  'func-style': ['off', 'expression'],
371
371
 
@@ -373,7 +373,7 @@ const baseRules = {
373
373
  // https://eslint.org/docs/latest/rules/grouped-accessor-pairs
374
374
  'grouped-accessor-pairs': 'error',
375
375
 
376
- // Require for-in loops to include an if statement
376
+ // Require `for-in` loops to include an `if` statement
377
377
  // https://eslint.org/docs/latest/rules/guard-for-in
378
378
  'guard-for-in': 'error',
379
379
 
@@ -456,11 +456,11 @@ const baseRules = {
456
456
  },
457
457
  ],
458
458
 
459
- // Disallow the use of alert, confirm, and prompt
459
+ // Disallow the use of `alert`, `confirm`, and `prompt`
460
460
  // https://eslint.org/docs/latest/rules/no-alert
461
461
  'no-alert': 'warn',
462
462
 
463
- // Disallow Array constructors
463
+ // Disallow `Array` constructors
464
464
  // https://eslint.org/docs/latest/rules/no-array-constructor
465
465
  'no-array-constructor': 'error',
466
466
 
@@ -468,15 +468,15 @@ const baseRules = {
468
468
  // https://eslint.org/docs/latest/rules/no-bitwise
469
469
  'no-bitwise': 'error',
470
470
 
471
- // Disallow the use of arguments.caller or arguments.callee
471
+ // Disallow the use of `arguments.caller` or `arguments.callee`
472
472
  // https://eslint.org/docs/latest/rules/no-caller
473
473
  'no-caller': 'error',
474
474
 
475
- // Disallow lexical declarations in case clauses
475
+ // Disallow lexical declarations in `case` clauses
476
476
  // https://eslint.org/docs/latest/rules/no-case-declarations
477
477
  'no-case-declarations': 'error',
478
478
 
479
- // Disallow the use of console
479
+ // Disallow the use of `console`
480
480
  // https://eslint.org/docs/latest/rules/no-console
481
481
  'no-console': [
482
482
  'error',
@@ -485,7 +485,7 @@ const baseRules = {
485
485
  },
486
486
  ],
487
487
 
488
- // Disallow continue statements
488
+ // Disallow `continue` statements
489
489
  // https://eslint.org/docs/latest/rules/no-continue
490
490
  'no-continue': 'error',
491
491
 
@@ -497,7 +497,7 @@ const baseRules = {
497
497
  // https://eslint.org/docs/latest/rules/no-div-regex
498
498
  'no-div-regex': 'off',
499
499
 
500
- // Disallow else blocks after return statements in if statements
500
+ // Disallow `else` blocks after `return` statements in `if` statements
501
501
  // https://eslint.org/docs/latest/rules/no-else-return
502
502
  'no-else-return': ['error', { allowElseIf: false }],
503
503
 
@@ -518,11 +518,11 @@ const baseRules = {
518
518
  // https://eslint.org/docs/latest/rules/no-empty-static-block
519
519
  'no-empty-static-block': 'off',
520
520
 
521
- // Disallow null comparisons without type-checking operators
521
+ // Disallow `null` comparisons without type-checking operators
522
522
  // https://eslint.org/docs/latest/rules/no-eq-null
523
523
  'no-eq-null': 'off',
524
524
 
525
- // Disallow the use of eval()
525
+ // Disallow the use of `eval()`
526
526
  // https://eslint.org/docs/latest/rules/no-eval
527
527
  'no-eval': 'error',
528
528
 
@@ -530,7 +530,7 @@ const baseRules = {
530
530
  // https://eslint.org/docs/latest/rules/no-extend-native
531
531
  'no-extend-native': 'error',
532
532
 
533
- // Disallow unnecessary calls to .bind()
533
+ // Disallow unnecessary calls to `.bind()`
534
534
  // https://eslint.org/docs/latest/rules/no-extra-bind
535
535
  'no-extra-bind': 'error',
536
536
 
@@ -562,7 +562,7 @@ const baseRules = {
562
562
  // https://eslint.org/docs/latest/rules/no-implicit-globals
563
563
  'no-implicit-globals': 'off',
564
564
 
565
- // Disallow the use of eval()-like methods
565
+ // Disallow the use of `eval()`-like methods
566
566
  // https://eslint.org/docs/latest/rules/no-implied-eval
567
567
  'no-implied-eval': 'error',
568
568
 
@@ -570,11 +570,11 @@ const baseRules = {
570
570
  // https://eslint.org/docs/latest/rules/no-inline-comments
571
571
  'no-inline-comments': 'off',
572
572
 
573
- // Disallow use of this in contexts where the value of this is undefined
573
+ // Disallow use of `this` in contexts where the value of `this` is `undefined`
574
574
  // https://eslint.org/docs/latest/rules/no-invalid-this
575
575
  'no-invalid-this': 'off',
576
576
 
577
- // Disallow the use of the __iterator__ property
577
+ // Disallow the use of the `__iterator__` property
578
578
  // https://eslint.org/docs/latest/rules/no-iterator
579
579
  'no-iterator': 'error',
580
580
 
@@ -590,11 +590,11 @@ const baseRules = {
590
590
  // https://eslint.org/docs/latest/rules/no-lone-blocks
591
591
  'no-lone-blocks': 'error',
592
592
 
593
- // Disallow if statements as the only statement in else blocks
593
+ // Disallow `if` statements as the only statement in `else` blocks
594
594
  // https://eslint.org/docs/latest/rules/no-lonely-if
595
595
  'no-lonely-if': 'error',
596
596
 
597
- // Disallow function declarations that contain unsafe references inside loop statements
597
+ // Disallow `function` declarations that contain unsafe references inside loop statements
598
598
  // https://eslint.org/docs/latest/rules/no-loop-func
599
599
  'no-loop-func': 'error',
600
600
 
@@ -626,23 +626,23 @@ const baseRules = {
626
626
  // https://eslint.org/docs/latest/rules/no-nested-ternary
627
627
  'no-nested-ternary': 'error',
628
628
 
629
- // Disallow new operators outside of assignments or comparisons
629
+ // Disallow `new` operators outside of assignments or comparisons
630
630
  // https://eslint.org/docs/latest/rules/no-new
631
631
  'no-new': 'error',
632
632
 
633
- // Disallow new operators with the Function object
633
+ // Disallow `new` operators with the `Function` object
634
634
  // https://eslint.org/docs/latest/rules/no-new-func
635
635
  'no-new-func': 'error',
636
636
 
637
- // Disallow new operators with the String, Number, and Boolean objects
637
+ // Disallow `new` operators with the `String`, `Number`, and `Boolean` objects
638
638
  // https://eslint.org/docs/latest/rules/no-new-wrappers
639
639
  'no-new-wrappers': 'error',
640
640
 
641
- // Disallow \8 and \9 escape sequences in string literals
641
+ // Disallow `\8` and `\9` escape sequences in string literals
642
642
  // https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape
643
643
  'no-nonoctal-decimal-escape': 'error',
644
644
 
645
- // Disallow calls to the Object constructor without an argument
645
+ // Disallow calls to the `Object` constructor without an argument
646
646
  // https://eslint.org/docs/latest/rules/no-object-constructor
647
647
  'no-object-constructor': 'off',
648
648
 
@@ -654,8 +654,8 @@ const baseRules = {
654
654
  // https://eslint.org/docs/latest/rules/no-octal-escape
655
655
  'no-octal-escape': 'error',
656
656
 
657
- //
658
- //
657
+ // Disallow reassignment of `function` parameters
658
+ // https://eslint.org/docs/latest/rules/no-param-reassign
659
659
  'no-param-reassign': [
660
660
  'error',
661
661
  {
@@ -676,7 +676,7 @@ const baseRules = {
676
676
  },
677
677
  ],
678
678
 
679
- // Disallow the unary operators ++ and --
679
+ // Disallow the unary operators `++` and `--`
680
680
  // https://eslint.org/docs/latest/rules/no-plusplus
681
681
  'no-plusplus': [
682
682
  'error',
@@ -685,7 +685,7 @@ const baseRules = {
685
685
  },
686
686
  ],
687
687
 
688
- // Disallow the use of the __proto__ property
688
+ // Disallow the use of the `__proto__` property
689
689
  // https://eslint.org/docs/latest/rules/no-proto
690
690
  'no-proto': 'error',
691
691
 
@@ -795,50 +795,50 @@ const baseRules = {
795
795
  {
796
796
  object: 'arguments',
797
797
  property: 'callee',
798
- message: 'arguments.callee is deprecated',
798
+ message: '`arguments.callee` is deprecated',
799
799
  },
800
800
  {
801
801
  object: 'global',
802
802
  property: 'isFinite',
803
- message: 'Please use Number.isFinite instead',
803
+ message: 'Please use `Number.isFinite` instead',
804
804
  },
805
805
  {
806
806
  object: 'self',
807
807
  property: 'isFinite',
808
- message: 'Please use Number.isFinite instead',
808
+ message: 'Please use `Number.isFinite` instead',
809
809
  },
810
810
  {
811
811
  object: 'window',
812
812
  property: 'isFinite',
813
- message: 'Please use Number.isFinite instead',
813
+ message: 'Please use `Number.isFinite` instead',
814
814
  },
815
815
  {
816
816
  object: 'global',
817
817
  property: 'isNaN',
818
- message: 'Please use Number.isNaN instead',
818
+ message: 'Please use `Number.isNaN` instead',
819
819
  },
820
820
  {
821
821
  object: 'self',
822
822
  property: 'isNaN',
823
- message: 'Please use Number.isNaN instead',
823
+ message: 'Please use `Number.isNaN` instead',
824
824
  },
825
825
  {
826
826
  object: 'window',
827
827
  property: 'isNaN',
828
- message: 'Please use Number.isNaN instead',
828
+ message: 'Please use `Number.isNaN` instead',
829
829
  },
830
830
  {
831
831
  property: '__defineGetter__',
832
- message: 'Please use Object.defineProperty instead.',
832
+ message: 'Please use `Object.defineProperty` instead.',
833
833
  },
834
834
  {
835
835
  property: '__defineSetter__',
836
- message: 'Please use Object.defineProperty instead.',
836
+ message: 'Please use `Object.defineProperty` instead.',
837
837
  },
838
838
  {
839
839
  object: 'Math',
840
840
  property: 'pow',
841
- message: 'Use the exponentiation operator (**) instead.',
841
+ message: 'Use the exponentiation operator (`**`) instead.',
842
842
  },
843
843
  ],
844
844
 
@@ -849,7 +849,7 @@ const baseRules = {
849
849
  {
850
850
  selector: 'ForInStatement',
851
851
  message:
852
- 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
852
+ '`for..in` loops iterate over the entire prototype chain, which is virtually never what you want. Use `Object.{keys,values,entries}`, and iterate over the resulting array.',
853
853
  },
854
854
  {
855
855
  selector: 'ForOfStatement',
@@ -866,11 +866,11 @@ const baseRules = {
866
866
  },
867
867
  ],
868
868
 
869
- // Disallow assignment operators in return statements
869
+ // Disallow assignment operators in `return` statements
870
870
  // https://eslint.org/docs/latest/rules/no-return-assign
871
871
  'no-return-assign': ['error', 'always'],
872
872
 
873
- // Disallow javascript: urls
873
+ // Disallow `javascript:` urls
874
874
  // https://eslint.org/docs/latest/rules/no-script-url
875
875
  'no-script-url': 'error',
876
876
 
@@ -894,11 +894,11 @@ const baseRules = {
894
894
  // https://eslint.org/docs/latest/rules/no-throw-literal
895
895
  'no-throw-literal': 'error',
896
896
 
897
- // Disallow initializing variables to undefined
897
+ // Disallow initializing variables to `undefined`
898
898
  // https://eslint.org/docs/latest/rules/no-undef-init
899
899
  'no-undef-init': 'error',
900
900
 
901
- // Disallow the use of undefined as an identifier
901
+ // Disallow the use of `undefined` as an identifier
902
902
  // https://eslint.org/docs/latest/rules/no-undefined
903
903
  'no-undefined': 'off',
904
904
 
@@ -919,7 +919,7 @@ const baseRules = {
919
919
  'no-unneeded-ternary': ['error', { defaultAssignment: false }],
920
920
 
921
921
  // Disallow unused expressions
922
- // no-unused-expressions
922
+ // https://eslint.org/docs/latest/rules/no-unused-expressions
923
923
  'no-unused-expressions': [
924
924
  'error',
925
925
  {
@@ -933,11 +933,11 @@ const baseRules = {
933
933
  // https://eslint.org/docs/latest/rules/no-unused-labels
934
934
  'no-unused-labels': 'error',
935
935
 
936
- // Disallow unnecessary calls to .call() and .apply()
936
+ // Disallow unnecessary calls to `.call()` and `.apply()`
937
937
  // https://eslint.org/docs/latest/rules/no-useless-call
938
938
  'no-useless-call': 'off',
939
939
 
940
- // Disallow unnecessary catch clauses
940
+ // Disallow unnecessary `catch` clauses
941
941
  // https://eslint.org/docs/latest/rules/no-useless-catch
942
942
  'no-useless-catch': 'error',
943
943
 
@@ -968,15 +968,15 @@ const baseRules = {
968
968
  },
969
969
  ],
970
970
 
971
- // Require let or const instead of var
971
+ // Require `let` or `const` instead of `var`
972
972
  // https://eslint.org/docs/latest/rules/no-var
973
973
  'no-var': 'error',
974
974
 
975
- // Disallow redundant return statements
975
+ // Disallow redundant `return` statements
976
976
  // https://eslint.org/docs/latest/rules/no-useless-return
977
977
  'no-useless-return': 'error',
978
978
 
979
- // Disallow void operators
979
+ // Disallow `void` operators
980
980
  // https://eslint.org/docs/latest/rules/no-void
981
981
  'no-void': 'error',
982
982
 
@@ -984,7 +984,7 @@ const baseRules = {
984
984
  // https://eslint.org/docs/latest/rules/no-warning-comments
985
985
  'no-warning-comments': ['off', { terms: ['todo', 'fixme', 'xxx'], location: 'start' }],
986
986
 
987
- // Disallow with statements
987
+ // Disallow `with` statements
988
988
  // https://eslint.org/docs/latest/rules/no-with
989
989
  'no-with': 'error',
990
990
 
@@ -1017,7 +1017,7 @@ const baseRules = {
1017
1017
  },
1018
1018
  ],
1019
1019
 
1020
- // Require const declarations for variables that are never reassigned after declared
1020
+ // Require `const` declarations for variables that are never reassigned after declared
1021
1021
  // https://eslint.org/docs/latest/rules/prefer-const
1022
1022
  'prefer-const': [
1023
1023
  'error',
@@ -1046,7 +1046,7 @@ const baseRules = {
1046
1046
  },
1047
1047
  ],
1048
1048
 
1049
- // Disallow the use of Math.pow in favor of the ** operator
1049
+ // Disallow the use of `Math.pow` in favor of the `**` operator
1050
1050
  // https://eslint.org/docs/latest/rules/prefer-exponentiation-operator
1051
1051
  'prefer-exponentiation-operator': 'error',
1052
1052
 
@@ -1054,23 +1054,23 @@ const baseRules = {
1054
1054
  // https://eslint.org/docs/latest/rules/prefer-named-capture-group
1055
1055
  'prefer-named-capture-group': 'off',
1056
1056
 
1057
- // Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
1057
+ // Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals
1058
1058
  // https://eslint.org/docs/latest/rules/prefer-numeric-literals
1059
1059
  'prefer-numeric-literals': 'error',
1060
1060
 
1061
- // Disallow use of Object.prototype.hasOwnProperty.call() and prefer use of Object.hasOwn()
1061
+ // Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`
1062
1062
  // https://eslint.org/docs/latest/rules/prefer-object-has-own
1063
1063
  'prefer-object-has-own': 'off',
1064
1064
 
1065
- // Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead
1065
+ // Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead
1066
1066
  // https://eslint.org/docs/latest/rules/prefer-object-spread
1067
1067
  'prefer-object-spread': 'error',
1068
1068
 
1069
- // Require using Error objects as Promise rejection reasons
1069
+ // Require using `Error` objects as `Promise` rejection reasons
1070
1070
  // https://eslint.org/docs/latest/rules/prefer-promise-reject-errors
1071
1071
  'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],
1072
1072
 
1073
- // Disallow use of the RegExp constructor in favor of regular expression literals
1073
+ // Disallow use of the `RegExp` constructor in favor of regular expression literals
1074
1074
  // https://eslint.org/docs/latest/rules/prefer-regex-literals
1075
1075
  'prefer-regex-literals': [
1076
1076
  'error',
@@ -1079,11 +1079,11 @@ const baseRules = {
1079
1079
  },
1080
1080
  ],
1081
1081
 
1082
- // Require rest parameters instead of arguments
1082
+ // Require rest parameters instead of `arguments`
1083
1083
  // https://eslint.org/docs/latest/rules/prefer-rest-params
1084
1084
  'prefer-rest-params': 'error',
1085
1085
 
1086
- // Require spread operators instead of .apply()
1086
+ // Require spread operators instead of `.apply()`
1087
1087
  // https://eslint.org/docs/latest/rules/prefer-spread
1088
1088
  'prefer-spread': 'error',
1089
1089
 
@@ -1091,23 +1091,23 @@ const baseRules = {
1091
1091
  // https://eslint.org/docs/latest/rules/prefer-template
1092
1092
  'prefer-template': 'error',
1093
1093
 
1094
- // Enforce the consistent use of the radix argument when using parseInt()
1094
+ // Enforce the consistent use of the radix argument when using `parseInt()`
1095
1095
  // https://eslint.org/docs/latest/rules/radix
1096
1096
  radix: 'error',
1097
1097
 
1098
- // Disallow async functions which have no await expression
1098
+ // Disallow `async` functions which have no `await` expression
1099
1099
  // https://eslint.org/docs/latest/rules/require-await
1100
1100
  'require-await': 'off',
1101
1101
 
1102
- // Enforce the use of u or v flag on RegExp
1102
+ // Enforce the use of `u` or `v` flag on `RegExp`
1103
1103
  // https://eslint.org/docs/latest/rules/require-unicode-regexp
1104
1104
  'require-unicode-regexp': 'off',
1105
1105
 
1106
- // Require generator functions to contain yield
1106
+ // Require generator functions to contain `yield`
1107
1107
  // https://eslint.org/docs/latest/rules/require-yield
1108
1108
  'require-yield': 'error',
1109
1109
 
1110
- // Enforce sorted import declarations within modules
1110
+ // Enforce sorted `import` declarations within modules
1111
1111
  // https://eslint.org/docs/latest/rules/sort-imports
1112
1112
  'sort-imports': [
1113
1113
  'off',
@@ -1131,11 +1131,11 @@ const baseRules = {
1131
1131
  // https://eslint.org/docs/latest/rules/strict
1132
1132
  strict: ['error', 'never'],
1133
1133
 
1134
- // Require symbol descriptions
1134
+ // Require `symbol` descriptions
1135
1135
  // https://eslint.org/docs/latest/rules/symbol-description
1136
1136
  'symbol-description': 'error',
1137
1137
 
1138
- // Require var declarations be placed at the top of their containing scope
1138
+ // Require `var` declarations be placed at the top of their containing scope
1139
1139
  // https://eslint.org/docs/latest/rules/vars-on-top
1140
1140
  'vars-on-top': 'error',
1141
1141