eslint 9.18.0 → 9.20.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.
@@ -28,12 +28,29 @@
28
28
  import { Linter } from "../index";
29
29
 
30
30
  export interface Deprecated extends Linter.RulesRecord {
31
+
32
+ /**
33
+ * Rule to enforce line breaks between arguments of a function call.
34
+ *
35
+ * @since 6.2.0
36
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-call-argument-newline) in `@stylistic/eslint-plugin-js`.
37
+ * @see https://eslint.org/docs/latest/rules/function-call-argument-newline
38
+ */
39
+ "function-call-argument-newline": Linter.RuleEntry<
40
+ [
41
+ /**
42
+ * @default "always"
43
+ */
44
+ "always" | "never" | "consistent"
45
+ ]
46
+ >;
47
+
31
48
  /**
32
49
  * Rule to enforce consistent indentation.
33
50
  *
34
51
  * @since 4.0.0-alpha.0
35
52
  * @deprecated since 4.0.0, use [`indent`](https://eslint.org/docs/rules/indent) instead.
36
- * @see https://eslint.org/docs/rules/indent-legacy
53
+ * @see https://eslint.org/docs/latest/rules/indent-legacy
37
54
  */
38
55
  "indent-legacy": Linter.RuleEntry<
39
56
  [
@@ -136,7 +153,7 @@ export interface Deprecated extends Linter.RulesRecord {
136
153
  *
137
154
  * @since 3.5.0
138
155
  * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead.
139
- * @see https://eslint.org/docs/rules/lines-around-directive
156
+ * @see https://eslint.org/docs/latest/rules/lines-around-directive
140
157
  */
141
158
  "lines-around-directive": Linter.RuleEntry<["always" | "never"]>;
142
159
 
@@ -145,7 +162,7 @@ export interface Deprecated extends Linter.RulesRecord {
145
162
  *
146
163
  * @since 0.18.0
147
164
  * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead.
148
- * @see https://eslint.org/docs/rules/newline-after-var
165
+ * @see https://eslint.org/docs/latest/rules/newline-after-var
149
166
  */
150
167
  "newline-after-var": Linter.RuleEntry<["always" | "never"]>;
151
168
 
@@ -154,25 +171,25 @@ export interface Deprecated extends Linter.RulesRecord {
154
171
  *
155
172
  * @since 2.3.0
156
173
  * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead.
157
- * @see https://eslint.org/docs/rules/newline-before-return
174
+ * @see https://eslint.org/docs/latest/rules/newline-before-return
158
175
  */
159
176
  "newline-before-return": Linter.RuleEntry<[]>;
160
177
 
161
178
  /**
162
- * Rule to disallow shadowing of variables inside of `catch`.
179
+ * Rule to disallow `catch` clause parameters from shadowing variables in the outer scope.
163
180
  *
164
181
  * @since 0.0.9
165
182
  * @deprecated since 5.1.0, use [`no-shadow`](https://eslint.org/docs/rules/no-shadow) instead.
166
- * @see https://eslint.org/docs/rules/no-catch-shadow
183
+ * @see https://eslint.org/docs/latest/rules/no-catch-shadow
167
184
  */
168
185
  "no-catch-shadow": Linter.RuleEntry<[]>;
169
186
 
170
187
  /**
171
- * Rule to disallow reassignment of native objects.
188
+ * Rule to disallow assignments to native objects or read-only global variables.
172
189
  *
173
190
  * @since 0.0.9
174
191
  * @deprecated since 3.3.0, use [`no-global-assign`](https://eslint.org/docs/rules/no-global-assign) instead.
175
- * @see https://eslint.org/docs/rules/no-native-reassign
192
+ * @see https://eslint.org/docs/latest/rules/no-native-reassign
176
193
  */
177
194
  "no-native-reassign": Linter.RuleEntry<
178
195
  [
@@ -187,7 +204,7 @@ export interface Deprecated extends Linter.RulesRecord {
187
204
  *
188
205
  * @since 0.1.2
189
206
  * @deprecated since 3.3.0, use [`no-unsafe-negation`](https://eslint.org/docs/rules/no-unsafe-negation) instead.
190
- * @see https://eslint.org/docs/rules/no-negated-in-lhs
207
+ * @see https://eslint.org/docs/latest/rules/no-negated-in-lhs
191
208
  */
192
209
  "no-negated-in-lhs": Linter.RuleEntry<[]>;
193
210
 
@@ -196,7 +213,7 @@ export interface Deprecated extends Linter.RulesRecord {
196
213
  *
197
214
  * @since 0.0.9
198
215
  * @deprecated since 8.50.0, use [`no-object-constructor`](https://eslint.org/docs/rules/no-object-constructor) instead.
199
- * @see https://eslint.org/docs/rules/no-object-constructor
216
+ * @see https://eslint.org/docs/latest/rules/no-new-object
200
217
  */
201
218
  "no-new-object": Linter.RuleEntry<[]>;
202
219
 
@@ -205,25 +222,25 @@ export interface Deprecated extends Linter.RulesRecord {
205
222
  *
206
223
  * @since 2.0.0-beta.1
207
224
  * @deprecated since 8.27.0, use [`no-new-native-nonconstructor`](https://eslint.org/docs/rules/no-new-native-nonconstructor) instead.
208
- * @see https://eslint.org/docs/rules/no-new-symbol
225
+ * @see https://eslint.org/docs/latest/rules/no-new-symbol
209
226
  */
210
227
  "no-new-symbol": Linter.RuleEntry<[]>;
211
228
 
212
229
  /**
213
- * Rule to disallow spacing between function identifiers and their applications.
230
+ * Rule to disallow spacing between function identifiers and their applications (deprecated).
214
231
  *
215
232
  * @since 0.1.2
216
233
  * @deprecated since 3.3.0, use [`func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing) instead.
217
- * @see https://eslint.org/docs/rules/no-spaced-func
234
+ * @see https://eslint.org/docs/latest/rules/no-spaced-func
218
235
  */
219
236
  "no-spaced-func": Linter.RuleEntry<[]>;
220
237
 
221
238
  /**
222
- * Rule to suggest using `Reflect` methods where applicable.
239
+ * Rule to require `Reflect` methods where applicable.
223
240
  *
224
241
  * @since 1.0.0-rc-2
225
242
  * @deprecated since 3.9.0
226
- * @see https://eslint.org/docs/rules/prefer-reflect
243
+ * @see https://eslint.org/docs/latest/rules/prefer-reflect
227
244
  */
228
245
  "prefer-reflect": Linter.RuleEntry<
229
246
  [
@@ -63,7 +63,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
63
63
  * Rule to require braces around arrow function bodies.
64
64
  *
65
65
  * @since 1.8.0
66
- * @see https://eslint.org/docs/rules/arrow-body-style
66
+ * @see https://eslint.org/docs/latest/rules/arrow-body-style
67
67
  */
68
68
  "arrow-body-style":
69
69
  | Linter.RuleEntry<
@@ -84,7 +84,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
84
84
  *
85
85
  * @since 1.0.0-rc-1
86
86
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/arrow-parens) in `@stylistic/eslint-plugin-js`.
87
- * @see https://eslint.org/docs/rules/arrow-parens
87
+ * @see https://eslint.org/docs/latest/rules/arrow-parens
88
88
  */
89
89
  "arrow-parens":
90
90
  | Linter.RuleEntry<["always"]>
@@ -105,7 +105,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
105
105
  *
106
106
  * @since 1.0.0-rc-1
107
107
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/arrow-spacing) in `@stylistic/eslint-plugin-js`.
108
- * @see https://eslint.org/docs/rules/arrow-spacing
108
+ * @see https://eslint.org/docs/latest/rules/arrow-spacing
109
109
  */
110
110
  "arrow-spacing": Linter.RuleEntry<[]>;
111
111
 
@@ -116,7 +116,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
116
116
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
117
117
  *
118
118
  * @since 0.24.0
119
- * @see https://eslint.org/docs/rules/constructor-super
119
+ * @see https://eslint.org/docs/latest/rules/constructor-super
120
120
  */
121
121
  "constructor-super": Linter.RuleEntry<[]>;
122
122
 
@@ -125,7 +125,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
125
125
  *
126
126
  * @since 0.17.0
127
127
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/generator-star-spacing) in `@stylistic/eslint-plugin-js`.
128
- * @see https://eslint.org/docs/rules/generator-star-spacing
128
+ * @see https://eslint.org/docs/latest/rules/generator-star-spacing
129
129
  */
130
130
  "generator-star-spacing": Linter.RuleEntry<
131
131
  [
@@ -168,10 +168,10 @@ export interface ECMAScript6 extends Linter.RulesRecord {
168
168
  >;
169
169
 
170
170
  /**
171
- * Require or disallow logical assignment operator shorthand.
171
+ * Rule to require or disallow logical assignment operator shorthand.
172
172
  *
173
173
  * @since 8.24.0
174
- * @see https://eslint.org/docs/rules/logical-assignment-operators
174
+ * @see https://eslint.org/docs/latest/rules/logical-assignment-operators
175
175
  */
176
176
  "logical-assignment-operators":
177
177
  | Linter.RuleEntry<
@@ -194,7 +194,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
194
194
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
195
195
  *
196
196
  * @since 1.0.0-rc-1
197
- * @see https://eslint.org/docs/rules/no-class-assign
197
+ * @see https://eslint.org/docs/latest/rules/no-class-assign
198
198
  */
199
199
  "no-class-assign": Linter.RuleEntry<[]>;
200
200
 
@@ -203,7 +203,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
203
203
  *
204
204
  * @since 2.0.0-alpha-2
205
205
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-confusing-arrow) in `@stylistic/eslint-plugin-js`.
206
- * @see https://eslint.org/docs/rules/no-confusing-arrow
206
+ * @see https://eslint.org/docs/latest/rules/no-confusing-arrow
207
207
  */
208
208
  "no-confusing-arrow": Linter.RuleEntry<
209
209
  [
@@ -223,7 +223,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
223
223
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
224
224
  *
225
225
  * @since 1.0.0-rc-1
226
- * @see https://eslint.org/docs/rules/no-const-assign
226
+ * @see https://eslint.org/docs/latest/rules/no-const-assign
227
227
  */
228
228
  "no-const-assign": Linter.RuleEntry<[]>;
229
229
 
@@ -234,7 +234,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
234
234
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
235
235
  *
236
236
  * @since 1.2.0
237
- * @see https://eslint.org/docs/rules/no-dupe-class-members
237
+ * @see https://eslint.org/docs/latest/rules/no-dupe-class-members
238
238
  */
239
239
  "no-dupe-class-members": Linter.RuleEntry<[]>;
240
240
 
@@ -242,7 +242,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
242
242
  * Rule to disallow duplicate module imports.
243
243
  *
244
244
  * @since 2.5.0
245
- * @see https://eslint.org/docs/rules/no-duplicate-imports
245
+ * @see https://eslint.org/docs/latest/rules/no-duplicate-imports
246
246
  */
247
247
  "no-duplicate-imports": Linter.RuleEntry<
248
248
  [
@@ -256,13 +256,13 @@ export interface ECMAScript6 extends Linter.RulesRecord {
256
256
  >;
257
257
 
258
258
  /**
259
- * Rule to disallow `new` operator with global non-constructor functions
260
- *
259
+ * Rule to disallow `new` operators with global non-constructor functions.
260
+ *
261
261
  * @remarks
262
262
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
263
263
  *
264
264
  * @since 8.27.0
265
- * @see https://eslint.org/docs/rules/no-new-native-nonconstructor
265
+ * @see https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
266
266
  */
267
267
  "no-new-native-nonconstructor": Linter.RuleEntry<[]>;
268
268
 
@@ -270,7 +270,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
270
270
  * Rule to disallow specified names in exports.
271
271
  *
272
272
  * @since 7.0.0-alpha.0
273
- * @see https://eslint.org/docs/rules/no-restricted-exports
273
+ * @see https://eslint.org/docs/latest/rules/no-restricted-exports
274
274
  */
275
275
  "no-restricted-exports": Linter.RuleEntry<
276
276
  [
@@ -316,7 +316,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
316
316
  * Rule to disallow specified modules when loaded by `import`.
317
317
  *
318
318
  * @since 2.0.0-alpha-1
319
- * @see https://eslint.org/docs/rules/no-restricted-imports
319
+ * @see https://eslint.org/docs/latest/rules/no-restricted-imports
320
320
  */
321
321
  "no-restricted-imports": Linter.RuleEntry<
322
322
  [
@@ -338,15 +338,15 @@ export interface ECMAScript6 extends Linter.RulesRecord {
338
338
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
339
339
  *
340
340
  * @since 0.24.0
341
- * @see https://eslint.org/docs/rules/no-this-before-super
341
+ * @see https://eslint.org/docs/latest/rules/no-this-before-super
342
342
  */
343
343
  "no-this-before-super": Linter.RuleEntry<[]>;
344
344
 
345
345
  /**
346
- * Rule to disallow unnecessary computed property keys in object literals.
346
+ * Rule to disallow unnecessary computed property keys in objects and classes.
347
347
  *
348
348
  * @since 2.9.0
349
- * @see https://eslint.org/docs/rules/no-useless-computed-key
349
+ * @see https://eslint.org/docs/latest/rules/no-useless-computed-key
350
350
  */
351
351
  "no-useless-computed-key": Linter.RuleEntry<
352
352
  [
@@ -363,7 +363,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
363
363
  * Rule to disallow unnecessary constructors.
364
364
  *
365
365
  * @since 2.0.0-beta.1
366
- * @see https://eslint.org/docs/rules/no-useless-constructor
366
+ * @see https://eslint.org/docs/latest/rules/no-useless-constructor
367
367
  */
368
368
  "no-useless-constructor": Linter.RuleEntry<[]>;
369
369
 
@@ -371,7 +371,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
371
371
  * Rule to disallow renaming import, export, and destructured assignments to the same name.
372
372
  *
373
373
  * @since 2.11.0
374
- * @see https://eslint.org/docs/rules/no-useless-rename
374
+ * @see https://eslint.org/docs/latest/rules/no-useless-rename
375
375
  */
376
376
  "no-useless-rename": Linter.RuleEntry<
377
377
  [
@@ -396,7 +396,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
396
396
  * Rule to require `let` or `const` instead of `var`.
397
397
  *
398
398
  * @since 0.12.0
399
- * @see https://eslint.org/docs/rules/no-var
399
+ * @see https://eslint.org/docs/latest/rules/no-var
400
400
  */
401
401
  "no-var": Linter.RuleEntry<[]>;
402
402
 
@@ -404,7 +404,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
404
404
  * Rule to require or disallow method and property shorthand syntax for object literals.
405
405
  *
406
406
  * @since 0.20.0
407
- * @see https://eslint.org/docs/rules/object-shorthand
407
+ * @see https://eslint.org/docs/latest/rules/object-shorthand
408
408
  */
409
409
  "object-shorthand":
410
410
  | Linter.RuleEntry<
@@ -447,7 +447,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
447
447
  * Rule to require using arrow functions for callbacks.
448
448
  *
449
449
  * @since 1.2.0
450
- * @see https://eslint.org/docs/rules/prefer-arrow-callback
450
+ * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
451
451
  */
452
452
  "prefer-arrow-callback": Linter.RuleEntry<
453
453
  [
@@ -468,7 +468,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
468
468
  * Rule to require `const` declarations for variables that are never reassigned after declared.
469
469
  *
470
470
  * @since 0.23.0
471
- * @see https://eslint.org/docs/rules/prefer-const
471
+ * @see https://eslint.org/docs/latest/rules/prefer-const
472
472
  */
473
473
  "prefer-const": Linter.RuleEntry<
474
474
  [
@@ -489,7 +489,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
489
489
  * Rule to require destructuring from arrays and/or objects.
490
490
  *
491
491
  * @since 3.13.0
492
- * @see https://eslint.org/docs/rules/prefer-destructuring
492
+ * @see https://eslint.org/docs/latest/rules/prefer-destructuring
493
493
  */
494
494
  "prefer-destructuring": Linter.RuleEntry<
495
495
  [
@@ -516,7 +516,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
516
516
  >;
517
517
 
518
518
  /**
519
- * Disallow the use of `Math.pow` in favor of the `**` operator.
519
+ * Rule to disallow the use of `Math.pow` in favor of the `**` operator.
520
520
  *
521
521
  * @since 6.7.0
522
522
  * @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator
@@ -527,7 +527,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
527
527
  * Rule to disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals.
528
528
  *
529
529
  * @since 3.5.0
530
- * @see https://eslint.org/docs/rules/prefer-numeric-literals
530
+ * @see https://eslint.org/docs/latest/rules/prefer-numeric-literals
531
531
  */
532
532
  "prefer-numeric-literals": Linter.RuleEntry<[]>;
533
533
 
@@ -535,7 +535,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
535
535
  * Rule to require rest parameters instead of `arguments`.
536
536
  *
537
537
  * @since 2.0.0-alpha-1
538
- * @see https://eslint.org/docs/rules/prefer-rest-params
538
+ * @see https://eslint.org/docs/latest/rules/prefer-rest-params
539
539
  */
540
540
  "prefer-rest-params": Linter.RuleEntry<[]>;
541
541
 
@@ -543,7 +543,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
543
543
  * Rule to require spread operators instead of `.apply()`.
544
544
  *
545
545
  * @since 1.0.0-rc-1
546
- * @see https://eslint.org/docs/rules/prefer-spread
546
+ * @see https://eslint.org/docs/latest/rules/prefer-spread
547
547
  */
548
548
  "prefer-spread": Linter.RuleEntry<[]>;
549
549
 
@@ -551,7 +551,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
551
551
  * Rule to require template literals instead of string concatenation.
552
552
  *
553
553
  * @since 1.2.0
554
- * @see https://eslint.org/docs/rules/prefer-template
554
+ * @see https://eslint.org/docs/latest/rules/prefer-template
555
555
  */
556
556
  "prefer-template": Linter.RuleEntry<[]>;
557
557
 
@@ -562,7 +562,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
562
562
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
563
563
  *
564
564
  * @since 1.0.0-rc-1
565
- * @see https://eslint.org/docs/rules/require-yield
565
+ * @see https://eslint.org/docs/latest/rules/require-yield
566
566
  */
567
567
  "require-yield": Linter.RuleEntry<[]>;
568
568
 
@@ -571,15 +571,15 @@ export interface ECMAScript6 extends Linter.RulesRecord {
571
571
  *
572
572
  * @since 2.12.0
573
573
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/rest-spread-spacing) in `@stylistic/eslint-plugin-js`.
574
- * @see https://eslint.org/docs/rules/rest-spread-spacing
574
+ * @see https://eslint.org/docs/latest/rules/rest-spread-spacing
575
575
  */
576
576
  "rest-spread-spacing": Linter.RuleEntry<["never" | "always"]>;
577
577
 
578
578
  /**
579
- * Rule to enforce sorted import declarations within modules.
579
+ * Rule to enforce sorted `import` declarations within modules.
580
580
  *
581
581
  * @since 2.0.0-beta.1
582
- * @see https://eslint.org/docs/rules/sort-imports
582
+ * @see https://eslint.org/docs/latest/rules/sort-imports
583
583
  */
584
584
  "sort-imports": Linter.RuleEntry<
585
585
  [
@@ -612,7 +612,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
612
612
  * Rule to require symbol descriptions.
613
613
  *
614
614
  * @since 3.4.0
615
- * @see https://eslint.org/docs/rules/symbol-description
615
+ * @see https://eslint.org/docs/latest/rules/symbol-description
616
616
  */
617
617
  "symbol-description": Linter.RuleEntry<[]>;
618
618
 
@@ -621,7 +621,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
621
621
  *
622
622
  * @since 2.0.0-rc.0
623
623
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/template-curly-spacing) in `@stylistic/eslint-plugin-js`.
624
- * @see https://eslint.org/docs/rules/template-curly-spacing
624
+ * @see https://eslint.org/docs/latest/rules/template-curly-spacing
625
625
  */
626
626
  "template-curly-spacing": Linter.RuleEntry<["never" | "always"]>;
627
627
 
@@ -630,7 +630,7 @@ export interface ECMAScript6 extends Linter.RulesRecord {
630
630
  *
631
631
  * @since 2.0.0-alpha-1
632
632
  * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/yield-star-spacing) in `@stylistic/eslint-plugin-js`.
633
- * @see https://eslint.org/docs/rules/yield-star-spacing
633
+ * @see https://eslint.org/docs/latest/rules/yield-star-spacing
634
634
  */
635
635
  "yield-star-spacing": Linter.RuleEntry<
636
636
  [
@@ -32,7 +32,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
32
32
  * Rule to require `return` statements after callbacks.
33
33
  *
34
34
  * @since 1.0.0-rc-1
35
- * @see https://eslint.org/docs/rules/callback-return
35
+ * @deprecated
36
+ * @see https://eslint.org/docs/latest/rules/callback-return
36
37
  */
37
38
  "callback-return": Linter.RuleEntry<[string[]]>;
38
39
 
@@ -40,7 +41,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
40
41
  * Rule to require `require()` calls to be placed at top-level module scope.
41
42
  *
42
43
  * @since 1.4.0
43
- * @see https://eslint.org/docs/rules/global-require
44
+ * @deprecated
45
+ * @see https://eslint.org/docs/latest/rules/global-require
44
46
  */
45
47
  "global-require": Linter.RuleEntry<[]>;
46
48
 
@@ -48,7 +50,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
48
50
  * Rule to require error handling in callbacks.
49
51
  *
50
52
  * @since 0.4.5
51
- * @see https://eslint.org/docs/rules/handle-callback-err
53
+ * @deprecated
54
+ * @see https://eslint.org/docs/latest/rules/handle-callback-err
52
55
  */
53
56
  "handle-callback-err": Linter.RuleEntry<[string]>;
54
57
 
@@ -56,7 +59,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
56
59
  * Rule to disallow use of the `Buffer()` constructor.
57
60
  *
58
61
  * @since 4.0.0-alpha.0
59
- * @see https://eslint.org/docs/rules/no-buffer-constructor
62
+ * @deprecated
63
+ * @see https://eslint.org/docs/latest/rules/no-buffer-constructor
60
64
  */
61
65
  "no-buffer-constructor": Linter.RuleEntry<[]>;
62
66
 
@@ -64,7 +68,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
64
68
  * Rule to disallow `require` calls to be mixed with regular variable declarations.
65
69
  *
66
70
  * @since 0.0.9
67
- * @see https://eslint.org/docs/rules/no-mixed-requires
71
+ * @deprecated
72
+ * @see https://eslint.org/docs/latest/rules/no-mixed-requires
68
73
  */
69
74
  "no-mixed-requires": Linter.RuleEntry<
70
75
  [
@@ -85,15 +90,17 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
85
90
  * Rule to disallow `new` operators with calls to `require`.
86
91
  *
87
92
  * @since 0.6.0
88
- * @see https://eslint.org/docs/rules/no-new-require
93
+ * @deprecated
94
+ * @see https://eslint.org/docs/latest/rules/no-new-require
89
95
  */
90
96
  "no-new-require": Linter.RuleEntry<[]>;
91
97
 
92
98
  /**
93
- * Rule to disallow string concatenation when using `__dirname` and `__filename`.
99
+ * Rule to disallow string concatenation with `__dirname` and `__filename`.
94
100
  *
95
101
  * @since 0.4.0
96
- * @see https://eslint.org/docs/rules/no-path-concat
102
+ * @deprecated
103
+ * @see https://eslint.org/docs/latest/rules/no-path-concat
97
104
  */
98
105
  "no-path-concat": Linter.RuleEntry<[]>;
99
106
 
@@ -101,7 +108,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
101
108
  * Rule to disallow the use of `process.env`.
102
109
  *
103
110
  * @since 0.9.0
104
- * @see https://eslint.org/docs/rules/no-process-env
111
+ * @deprecated
112
+ * @see https://eslint.org/docs/latest/rules/no-process-env
105
113
  */
106
114
  "no-process-env": Linter.RuleEntry<[]>;
107
115
 
@@ -109,7 +117,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
109
117
  * Rule to disallow the use of `process.exit()`.
110
118
  *
111
119
  * @since 0.4.0
112
- * @see https://eslint.org/docs/rules/no-process-exit
120
+ * @deprecated
121
+ * @see https://eslint.org/docs/latest/rules/no-process-exit
113
122
  */
114
123
  "no-process-exit": Linter.RuleEntry<[]>;
115
124
 
@@ -117,7 +126,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
117
126
  * Rule to disallow specified modules when loaded by `require`.
118
127
  *
119
128
  * @since 0.6.0
120
- * @see https://eslint.org/docs/rules/no-restricted-modules
129
+ * @deprecated
130
+ * @see https://eslint.org/docs/latest/rules/no-restricted-modules
121
131
  */
122
132
  "no-restricted-modules": Linter.RuleEntry<
123
133
  [
@@ -145,7 +155,8 @@ export interface NodeJSAndCommonJS extends Linter.RulesRecord {
145
155
  * Rule to disallow synchronous methods.
146
156
  *
147
157
  * @since 0.0.9
148
- * @see https://eslint.org/docs/rules/no-sync
158
+ * @deprecated
159
+ * @see https://eslint.org/docs/latest/rules/no-sync
149
160
  */
150
161
  "no-sync": Linter.RuleEntry<
151
162
  [