immosquare-cleaner 0.1.63 → 0.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +2 -2
  4. data/linters/rubocop/cop/custom_cops/style/font_awesome_normalization.rb +104 -0
  5. data/linters/rubocop-3.4.1.yml +3 -1
  6. data/linters/rubocop.yml +4 -0
  7. data/node_modules/@eslint/config-helpers/LICENSE +201 -0
  8. data/node_modules/@eslint/config-helpers/README.md +97 -0
  9. data/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +546 -0
  10. data/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +22 -0
  11. data/node_modules/@eslint/config-helpers/dist/cjs/types.cts +31 -0
  12. data/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +22 -0
  13. data/node_modules/@eslint/config-helpers/dist/esm/index.js +544 -0
  14. data/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +23 -0
  15. data/node_modules/@eslint/config-helpers/dist/esm/types.ts +31 -0
  16. data/node_modules/@eslint/config-helpers/package.json +60 -0
  17. data/node_modules/@eslint/js/package.json +1 -1
  18. data/node_modules/eslint/README.md +6 -4
  19. data/node_modules/eslint/lib/config-api.js +12 -0
  20. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +18 -14
  21. data/node_modules/eslint/lib/rules/no-console.js +19 -11
  22. data/node_modules/eslint/lib/rules/no-native-reassign.js +1 -1
  23. data/node_modules/eslint/lib/rules/no-negated-in-lhs.js +1 -1
  24. data/node_modules/eslint/lib/types/config-api.d.ts +8 -0
  25. data/node_modules/eslint/lib/types/rules.d.ts +5199 -0
  26. data/node_modules/eslint/package.json +14 -6
  27. data/node_modules/eslint-scope/README.md +4 -3
  28. data/node_modules/eslint-scope/dist/eslint-scope.cjs +59 -2
  29. data/node_modules/eslint-scope/lib/index.js +1 -0
  30. data/node_modules/eslint-scope/lib/referencer.js +52 -0
  31. data/node_modules/eslint-scope/lib/scope-manager.js +4 -0
  32. data/node_modules/eslint-scope/lib/scope.js +1 -1
  33. data/node_modules/eslint-scope/lib/version.js +1 -1
  34. data/node_modules/eslint-scope/package.json +1 -1
  35. data/package.json +2 -2
  36. metadata +16 -11
  37. data/node_modules/eslint/lib/types/rules/best-practices.d.ts +0 -1143
  38. data/node_modules/eslint/lib/types/rules/deprecated.d.ts +0 -252
  39. data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +0 -647
  40. data/node_modules/eslint/lib/types/rules/index.d.ts +0 -50
  41. data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +0 -171
  42. data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +0 -685
  43. data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +0 -38
  44. data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +0 -2043
  45. data/node_modules/eslint/lib/types/rules/variables.d.ts +0 -234
@@ -1,1143 +0,0 @@
1
- /**
2
- * @fileoverview This file contains the rule types for ESLint. It was initially extracted
3
- * from the `@types/eslint` package.
4
- */
5
-
6
- /*
7
- * MIT License
8
- * Copyright (c) Microsoft Corporation.
9
- *
10
- * Permission is hereby granted, free of charge, to any person obtaining a copy
11
- * of this software and associated documentation files (the "Software"), to deal
12
- * in the Software without restriction, including without limitation the rights
13
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- * copies of the Software, and to permit persons to whom the Software is
15
- * furnished to do so, subject to the following conditions:
16
- * The above copyright notice and this permission notice shall be included in all
17
- * copies or substantial portions of the Software.
18
- *
19
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- * SOFTWARE
26
- */
27
-
28
- import { Linter } from "../index";
29
-
30
- export interface BestPractices extends Linter.RulesRecord {
31
- /**
32
- * Rule to enforce getter and setter pairs in objects and classes.
33
- *
34
- * @since 0.22.0
35
- * @see https://eslint.org/docs/latest/rules/accessor-pairs
36
- */
37
- "accessor-pairs": Linter.RuleEntry<
38
- [
39
- Partial<{
40
- /**
41
- * @default true
42
- */
43
- setWithoutGet: boolean;
44
- /**
45
- * @default false
46
- */
47
- getWithoutSet: boolean;
48
- /**
49
- * @default true
50
- */
51
- enforceForClassMembers: boolean;
52
- }>,
53
- ]
54
- >;
55
-
56
- /**
57
- * Rule to enforce `return` statements in callbacks of array methods.
58
- *
59
- * @since 2.0.0-alpha-1
60
- * @see https://eslint.org/docs/latest/rules/array-callback-return
61
- */
62
- "array-callback-return": Linter.RuleEntry<
63
- [
64
- Partial<{
65
- /**
66
- * @default false
67
- */
68
- allowImplicit: boolean;
69
- /**
70
- * @default false
71
- */
72
- checkForEach: boolean;
73
- /**
74
- * @default false
75
- */
76
- allowVoid: boolean;
77
- }>,
78
- ]
79
- >;
80
-
81
- /**
82
- * Rule to enforce the use of variables within the scope they are defined.
83
- *
84
- * @since 0.1.0
85
- * @see https://eslint.org/docs/latest/rules/block-scoped-var
86
- */
87
- "block-scoped-var": Linter.RuleEntry<[]>;
88
-
89
- /**
90
- * Rule to enforce that class methods utilize `this`.
91
- *
92
- * @since 3.4.0
93
- * @see https://eslint.org/docs/latest/rules/class-methods-use-this
94
- */
95
- "class-methods-use-this": Linter.RuleEntry<
96
- [
97
- Partial<{
98
- exceptMethods: string[];
99
- }>,
100
- ]
101
- >;
102
-
103
- /**
104
- * Rule to enforce a maximum cyclomatic complexity allowed in a program.
105
- *
106
- * @since 0.0.9
107
- * @see https://eslint.org/docs/latest/rules/complexity
108
- */
109
- complexity: Linter.RuleEntry<
110
- [
111
- | Partial<{
112
- /**
113
- * @default 20
114
- */
115
- max: number;
116
- /**
117
- * @deprecated
118
- * @default 20
119
- */
120
- maximum: number;
121
- /**
122
- * @default "classic"
123
- * @since 9.12.0
124
- */
125
- variant: "classic" | "modified";
126
- }>
127
- | number,
128
- ]
129
- >;
130
-
131
- /**
132
- * Rule to require `return` statements to either always or never specify values.
133
- *
134
- * @since 0.4.0
135
- * @see https://eslint.org/docs/latest/rules/consistent-return
136
- */
137
- "consistent-return": Linter.RuleEntry<
138
- [
139
- Partial<{
140
- /**
141
- * @default false
142
- */
143
- treatUndefinedAsUnspecified: boolean;
144
- }>,
145
- ]
146
- >;
147
-
148
- /**
149
- * Rule to enforce consistent brace style for all control statements.
150
- *
151
- * @since 0.0.2
152
- * @see https://eslint.org/docs/latest/rules/curly
153
- */
154
- curly: Linter.RuleEntry<["all" | "multi" | "multi-line" | "multi-or-nest" | "consistent"]>;
155
-
156
- /**
157
- * Rule to require `default` cases in `switch` statements.
158
- *
159
- * @since 0.6.0
160
- * @see https://eslint.org/docs/latest/rules/default-case
161
- */
162
- "default-case": Linter.RuleEntry<
163
- [
164
- Partial<{
165
- /**
166
- * @default '^no default$'
167
- */
168
- commentPattern: string;
169
- }>,
170
- ]
171
- >;
172
-
173
- /**
174
- * Rule to enforce `default` clauses in `switch` statements to be last.
175
- *
176
- * @since 7.0.0-alpha.0
177
- * @see https://eslint.org/docs/latest/rules/default-case-last
178
- */
179
- "default-case-last": Linter.RuleEntry<[]>;
180
-
181
- /**
182
- * Rule to enforce default parameters to be last.
183
- *
184
- * @since 6.4.0
185
- * @see https://eslint.org/docs/latest/rules/default-param-last
186
- */
187
- "default-param-last": Linter.RuleEntry<[]>;
188
-
189
- /**
190
- * Rule to enforce consistent newlines before and after dots.
191
- *
192
- * @since 0.21.0
193
- * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/dot-location) in `@stylistic/eslint-plugin-js`.
194
- * @see https://eslint.org/docs/latest/rules/dot-location
195
- */
196
- "dot-location": Linter.RuleEntry<["object" | "property"]>;
197
-
198
- /**
199
- * Rule to enforce dot notation whenever possible.
200
- *
201
- * @since 0.0.7
202
- * @see https://eslint.org/docs/latest/rules/dot-notation
203
- */
204
- "dot-notation": Linter.RuleEntry<
205
- [
206
- Partial<{
207
- /**
208
- * @default true
209
- */
210
- allowKeywords: boolean;
211
- allowPattern: string;
212
- }>,
213
- ]
214
- >;
215
-
216
- /**
217
- * Rule to require the use of `===` and `!==`.
218
- *
219
- * @since 0.0.2
220
- * @see https://eslint.org/docs/latest/rules/eqeqeq
221
- */
222
- eqeqeq:
223
- | Linter.RuleEntry<
224
- [
225
- "always",
226
- Partial<{
227
- /**
228
- * @default 'always'
229
- */
230
- null: "always" | "never" | "ignore";
231
- }>,
232
- ]
233
- >
234
- | Linter.RuleEntry<["smart" | "allow-null"]>;
235
-
236
- /**
237
- * Rule to require grouped accessor pairs in object literals and classes.
238
- *
239
- * @since 6.7.0
240
- * @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs
241
- */
242
- "grouped-accessor-pairs": Linter.RuleEntry<["anyOrder" | "getBeforeSet" | "setBeforeGet"]>;
243
-
244
- /**
245
- * Rule to require `for-in` loops to include an `if` statement.
246
- *
247
- * @since 0.0.6
248
- * @see https://eslint.org/docs/latest/rules/guard-for-in
249
- */
250
- "guard-for-in": Linter.RuleEntry<[]>;
251
-
252
- /**
253
- * Rule to enforce a maximum number of classes per file.
254
- *
255
- * @since 5.0.0-alpha.3
256
- * @see https://eslint.org/docs/latest/rules/max-classes-per-file
257
- */
258
- "max-classes-per-file": Linter.RuleEntry<[number]>;
259
-
260
- /**
261
- * Rule to disallow the use of `alert`, `confirm`, and `prompt`.
262
- *
263
- * @since 0.0.5
264
- * @see https://eslint.org/docs/latest/rules/no-alert
265
- */
266
- "no-alert": Linter.RuleEntry<[]>;
267
-
268
- /**
269
- * Rule to disallow the use of `arguments.caller` or `arguments.callee`.
270
- *
271
- * @since 0.0.6
272
- * @see https://eslint.org/docs/latest/rules/no-caller
273
- */
274
- "no-caller": Linter.RuleEntry<[]>;
275
-
276
- /**
277
- * Rule to disallow lexical declarations in case clauses.
278
- *
279
- * @remarks
280
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
281
- *
282
- * @since 1.9.0
283
- * @see https://eslint.org/docs/latest/rules/no-case-declarations
284
- */
285
- "no-case-declarations": Linter.RuleEntry<[]>;
286
-
287
- /**
288
- * Rule to disallow equal signs explicitly at the beginning of regular expressions.
289
- *
290
- * @since 0.1.0
291
- * @see https://eslint.org/docs/latest/rules/no-div-regex
292
- */
293
- "no-div-regex": Linter.RuleEntry<[]>;
294
-
295
- /**
296
- * Rule to disallow `else` blocks after `return` statements in `if` statements.
297
- *
298
- * @since 0.0.9
299
- * @see https://eslint.org/docs/latest/rules/no-else-return
300
- */
301
- "no-else-return": Linter.RuleEntry<
302
- [
303
- Partial<{
304
- /**
305
- * @default true
306
- */
307
- allowElseIf: boolean;
308
- }>,
309
- ]
310
- >;
311
-
312
- /**
313
- * Rule to disallow empty functions.
314
- *
315
- * @since 2.0.0
316
- * @see https://eslint.org/docs/latest/rules/no-empty-function
317
- */
318
- "no-empty-function": Linter.RuleEntry<
319
- [
320
- Partial<{
321
- /**
322
- * @default []
323
- */
324
- allow: Array<
325
- | "functions"
326
- | "arrowFunctions"
327
- | "generatorFunctions"
328
- | "methods"
329
- | "generatorMethods"
330
- | "getters"
331
- | "setters"
332
- | "constructors"
333
- | "asyncFunctions"
334
- | "asyncMethods"
335
- >;
336
- }>,
337
- ]
338
- >;
339
-
340
- /**
341
- * Rule to disallow empty destructuring patterns.
342
- *
343
- * @remarks
344
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
345
- *
346
- * @since 1.7.0
347
- * @see https://eslint.org/docs/latest/rules/no-empty-pattern
348
- */
349
- "no-empty-pattern": Linter.RuleEntry<[]>;
350
-
351
- /**
352
- * Rule to disallow empty static blocks.
353
- *
354
- * @remarks
355
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
356
- *
357
- * @since 8.27.0
358
- * @see https://eslint.org/docs/latest/rules/no-empty-static-block
359
- */
360
- "no-empty-static-block": Linter.RuleEntry<[]>;
361
-
362
- /**
363
- * Rule to disallow `null` comparisons without type-checking operators.
364
- *
365
- * @since 0.0.9
366
- * @see https://eslint.org/docs/latest/rules/no-eq-null
367
- */
368
- "no-eq-null": Linter.RuleEntry<[]>;
369
-
370
- /**
371
- * Rule to disallow the use of `eval()`.
372
- *
373
- * @since 0.0.2
374
- * @see https://eslint.org/docs/latest/rules/no-eval
375
- */
376
- "no-eval": Linter.RuleEntry<
377
- [
378
- Partial<{
379
- /**
380
- * @default false
381
- */
382
- allowIndirect: boolean;
383
- }>,
384
- ]
385
- >;
386
-
387
- /**
388
- * Rule to disallow extending native types.
389
- *
390
- * @since 0.1.4
391
- * @see https://eslint.org/docs/latest/rules/no-extend-native
392
- */
393
- "no-extend-native": Linter.RuleEntry<
394
- [
395
- Partial<{
396
- exceptions: string[];
397
- }>,
398
- ]
399
- >;
400
-
401
- /**
402
- * Rule to disallow unnecessary calls to `.bind()`.
403
- *
404
- * @since 0.8.0
405
- * @see https://eslint.org/docs/latest/rules/no-extra-bind
406
- */
407
- "no-extra-bind": Linter.RuleEntry<[]>;
408
-
409
- /**
410
- * Rule to disallow unnecessary labels.
411
- *
412
- * @since 2.0.0-rc.0
413
- * @see https://eslint.org/docs/latest/rules/no-extra-label
414
- */
415
- "no-extra-label": Linter.RuleEntry<[]>;
416
-
417
- /**
418
- * Rule to disallow fallthrough of `case` statements.
419
- *
420
- * @remarks
421
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
422
- *
423
- * @since 0.0.7
424
- * @see https://eslint.org/docs/latest/rules/no-fallthrough
425
- */
426
- "no-fallthrough": Linter.RuleEntry<
427
- [
428
- Partial<{
429
- /**
430
- * @default 'falls?\s?through'
431
- */
432
- commentPattern: string;
433
- /**
434
- * @default false
435
- */
436
- allowEmptyCase: boolean;
437
- /**
438
- * @default false
439
- */
440
- reportUnusedFallthroughComment: boolean;
441
- }>,
442
- ]
443
- >;
444
-
445
- /**
446
- * Rule to disallow leading or trailing decimal points in numeric literals.
447
- *
448
- * @since 0.0.6
449
- * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-floating-decimal) in `@stylistic/eslint-plugin-js`.
450
- * @see https://eslint.org/docs/latest/rules/no-floating-decimal
451
- */
452
- "no-floating-decimal": Linter.RuleEntry<[]>;
453
-
454
- /**
455
- * Rule to disallow assignments to native objects or read-only global variables.
456
- *
457
- * @remarks
458
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
459
- *
460
- * @since 3.3.0
461
- * @see https://eslint.org/docs/latest/rules/no-global-assign
462
- */
463
- "no-global-assign": Linter.RuleEntry<
464
- [
465
- Partial<{
466
- exceptions: string[];
467
- }>,
468
- ]
469
- >;
470
-
471
- /**
472
- * Rule to disallow shorthand type conversions.
473
- *
474
- * @since 1.0.0-rc-2
475
- * @see https://eslint.org/docs/latest/rules/no-implicit-coercion
476
- */
477
- "no-implicit-coercion": Linter.RuleEntry<
478
- [
479
- Partial<{
480
- /**
481
- * @default true
482
- */
483
- boolean: boolean;
484
- /**
485
- * @default true
486
- */
487
- number: boolean;
488
- /**
489
- * @default true
490
- */
491
- string: boolean;
492
- /**
493
- * @default false
494
- */
495
- disallowTemplateShorthand: boolean;
496
- /**
497
- * @default []
498
- */
499
- allow: Array<"~" | "!!" | "+" | "- -" | "-" | "*">;
500
- }>,
501
- ]
502
- >;
503
-
504
- /**
505
- * Rule to disallow declarations in the global scope.
506
- *
507
- * @since 2.0.0-alpha-1
508
- * @see https://eslint.org/docs/latest/rules/no-implicit-globals
509
- */
510
- "no-implicit-globals": Linter.RuleEntry<[]>;
511
-
512
- /**
513
- * Rule to disallow the use of `eval()`-like methods.
514
- *
515
- * @since 0.0.7
516
- * @see https://eslint.org/docs/latest/rules/no-implied-eval
517
- */
518
- "no-implied-eval": Linter.RuleEntry<[]>;
519
-
520
- /**
521
- * Rule to disallow assigning to imported bindings.
522
- *
523
- * @remarks
524
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
525
- *
526
- * @since 6.4.0
527
- * @see https://eslint.org/docs/latest/rules/no-import-assign
528
- */
529
- "no-import-assign": Linter.RuleEntry<[]>;
530
-
531
- /**
532
- * Rule to disallow use of `this` in contexts where the value of `this` is `undefined`.
533
- *
534
- * @since 1.0.0-rc-2
535
- * @see https://eslint.org/docs/latest/rules/no-invalid-this
536
- */
537
- "no-invalid-this": Linter.RuleEntry<
538
- [
539
- Partial<{
540
- /**
541
- * @default true
542
- */
543
- capIsConstructor: boolean;
544
- }>,
545
- ]
546
- >;
547
-
548
- /**
549
- * Rule to disallow the use of the `__iterator__` property.
550
- *
551
- * @since 0.0.9
552
- * @see https://eslint.org/docs/latest/rules/no-iterator
553
- */
554
- "no-iterator": Linter.RuleEntry<[]>;
555
-
556
- /**
557
- * Rule to disallow labeled statements.
558
- *
559
- * @since 0.4.0
560
- * @see https://eslint.org/docs/latest/rules/no-labels
561
- */
562
- "no-labels": Linter.RuleEntry<
563
- [
564
- Partial<{
565
- /**
566
- * @default false
567
- */
568
- allowLoop: boolean;
569
- /**
570
- * @default false
571
- */
572
- allowSwitch: boolean;
573
- }>,
574
- ]
575
- >;
576
-
577
- /**
578
- * Rule to disallow unnecessary nested blocks.
579
- *
580
- * @since 0.4.0
581
- * @see https://eslint.org/docs/latest/rules/no-lone-blocks
582
- */
583
- "no-lone-blocks": Linter.RuleEntry<[]>;
584
-
585
- /**
586
- * Rule to disallow function declarations that contain unsafe references inside loop statements.
587
- *
588
- * @since 0.0.9
589
- * @see https://eslint.org/docs/latest/rules/no-loop-func
590
- */
591
- "no-loop-func": Linter.RuleEntry<[]>;
592
-
593
- /**
594
- * Rule to disallow magic numbers.
595
- *
596
- * @since 1.7.0
597
- * @see https://eslint.org/docs/latest/rules/no-magic-numbers
598
- */
599
- "no-magic-numbers": Linter.RuleEntry<
600
- [
601
- Partial<{
602
- /**
603
- * @default []
604
- */
605
- ignore: number[];
606
- /**
607
- * @default false
608
- */
609
- ignoreArrayIndexes: boolean;
610
- /**
611
- * @default false
612
- */
613
- enforceConst: boolean;
614
- /**
615
- * @default false
616
- */
617
- detectObjects: boolean;
618
- }>,
619
- ]
620
- >;
621
-
622
- /**
623
- * Rule to disallow multiple spaces.
624
- *
625
- * @since 0.9.0
626
- * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-multi-spaces) in `@stylistic/eslint-plugin-js`.
627
- * @see https://eslint.org/docs/latest/rules/no-multi-spaces
628
- */
629
- "no-multi-spaces": Linter.RuleEntry<
630
- [
631
- Partial<{
632
- /**
633
- * @default false
634
- */
635
- ignoreEOLComments: boolean;
636
- /**
637
- * @default { Property: true }
638
- */
639
- exceptions: Record<string, boolean>;
640
- }>,
641
- ]
642
- >;
643
-
644
- /**
645
- * Rule to disallow multiline strings.
646
- *
647
- * @since 0.0.9
648
- * @see https://eslint.org/docs/latest/rules/no-multi-str
649
- */
650
- "no-multi-str": Linter.RuleEntry<[]>;
651
-
652
- /**
653
- * Rule to disallow `new` operators outside of assignments or comparisons.
654
- *
655
- * @since 0.0.7
656
- * @see https://eslint.org/docs/latest/rules/no-new
657
- */
658
- "no-new": Linter.RuleEntry<[]>;
659
-
660
- /**
661
- * Rule to disallow `new` operators with the `Function` object.
662
- *
663
- * @since 0.0.7
664
- * @see https://eslint.org/docs/latest/rules/no-new-func
665
- */
666
- "no-new-func": Linter.RuleEntry<[]>;
667
-
668
- /**
669
- * Rule to disallow `new` operators with the `String`, `Number`, and `Boolean` objects.
670
- *
671
- * @since 0.0.6
672
- * @see https://eslint.org/docs/latest/rules/no-new-wrappers
673
- */
674
- "no-new-wrappers": Linter.RuleEntry<[]>;
675
-
676
- /**
677
- * Rule to disallow `\8` and `\9` escape sequences in string literals.
678
- *
679
- * @remarks
680
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
681
- *
682
- * @since 7.14.0
683
- * @see https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape
684
- */
685
- "no-nonoctal-decimal-escape": Linter.RuleEntry<[]>;
686
-
687
- /**
688
- * Rule to disallow octal literals.
689
- *
690
- * @remarks
691
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
692
- *
693
- * @since 0.0.6
694
- * @see https://eslint.org/docs/latest/rules/no-octal
695
- */
696
- "no-octal": Linter.RuleEntry<[]>;
697
-
698
- /**
699
- * Rule to disallow octal escape sequences in string literals.
700
- *
701
- * @since 0.0.9
702
- * @see https://eslint.org/docs/latest/rules/no-octal-escape
703
- */
704
- "no-octal-escape": Linter.RuleEntry<[]>;
705
-
706
- /**
707
- * Rule to disallow reassigning function parameters.
708
- *
709
- * @since 0.18.0
710
- * @see https://eslint.org/docs/latest/rules/no-param-reassign
711
- */
712
- "no-param-reassign": Linter.RuleEntry<
713
- [
714
- | {
715
- props?: false;
716
- }
717
- | ({
718
- props: true;
719
- } & Partial<{
720
- /**
721
- * @default []
722
- */
723
- ignorePropertyModificationsFor: string[];
724
- /**
725
- * @since 6.6.0
726
- * @default []
727
- */
728
- ignorePropertyModificationsForRegex: string[];
729
- }>),
730
- ]
731
- >;
732
-
733
- /**
734
- * Rule to disallow the use of the `__proto__` property.
735
- *
736
- * @since 0.0.9
737
- * @see https://eslint.org/docs/latest/rules/no-proto
738
- */
739
- "no-proto": Linter.RuleEntry<[]>;
740
-
741
- /**
742
- * Rule to disallow variable redeclaration.
743
- *
744
- * @remarks
745
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
746
- *
747
- * @since 0.0.9
748
- * @see https://eslint.org/docs/latest/rules/no-redeclare
749
- */
750
- "no-redeclare": Linter.RuleEntry<
751
- [
752
- Partial<{
753
- /**
754
- * @default true
755
- */
756
- builtinGlobals: boolean;
757
- }>,
758
- ]
759
- >;
760
-
761
- /**
762
- * Rule to disallow certain properties on certain objects.
763
- *
764
- * @since 3.5.0
765
- * @see https://eslint.org/docs/latest/rules/no-restricted-properties
766
- */
767
- "no-restricted-properties": Linter.RuleEntry<
768
- [
769
- ...Array<
770
- | {
771
- object: string;
772
- property?: string | undefined;
773
- message?: string | undefined;
774
- }
775
- | {
776
- property: string;
777
- message?: string | undefined;
778
- }
779
- >,
780
- ]
781
- >;
782
-
783
- /**
784
- * Rule to disallow assignment operators in `return` statements.
785
- *
786
- * @since 0.0.9
787
- * @see https://eslint.org/docs/latest/rules/no-return-assign
788
- */
789
- "no-return-assign": Linter.RuleEntry<["except-parens" | "always"]>;
790
-
791
- /**
792
- * Rule to disallow unnecessary `return await`.
793
- *
794
- * @since 3.10.0
795
- * @deprecated
796
- * @see https://eslint.org/docs/latest/rules/no-return-await
797
- */
798
- "no-return-await": Linter.RuleEntry<[]>;
799
-
800
- /**
801
- * Rule to disallow `javascript:` URLs.
802
- *
803
- * @since 0.0.9
804
- * @see https://eslint.org/docs/latest/rules/no-script-url
805
- */
806
- "no-script-url": Linter.RuleEntry<[]>;
807
-
808
- /**
809
- * Rule to disallow assignments where both sides are exactly the same.
810
- *
811
- * @remarks
812
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
813
- *
814
- * @since 2.0.0-rc.0
815
- * @see https://eslint.org/docs/latest/rules/no-self-assign
816
- */
817
- "no-self-assign": Linter.RuleEntry<[]>;
818
-
819
- /**
820
- * Rule to disallow comparisons where both sides are exactly the same.
821
- *
822
- * @since 0.0.9
823
- * @see https://eslint.org/docs/latest/rules/no-self-compare
824
- */
825
- "no-self-compare": Linter.RuleEntry<[]>;
826
-
827
- /**
828
- * Rule to disallow comma operators.
829
- *
830
- * @since 0.5.1
831
- * @see https://eslint.org/docs/latest/rules/no-sequences
832
- */
833
- "no-sequences": Linter.RuleEntry<
834
- [
835
- Partial<{
836
- /**
837
- * @since 7.23.0
838
- * @default true
839
- */
840
- allowInParentheses: boolean;
841
- }>,
842
- ]
843
- >;
844
-
845
- /**
846
- * Rule to disallow throwing literals as exceptions.
847
- *
848
- * @since 0.15.0
849
- * @see https://eslint.org/docs/latest/rules/no-throw-literal
850
- */
851
- "no-throw-literal": Linter.RuleEntry<[]>;
852
-
853
- /**
854
- * Rule to disallow unmodified loop conditions.
855
- *
856
- * @since 2.0.0-alpha-2
857
- * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
858
- */
859
- "no-unmodified-loop-condition": Linter.RuleEntry<[]>;
860
-
861
- /**
862
- * Rule to disallow unused expressions.
863
- *
864
- * @since 0.1.0
865
- * @see https://eslint.org/docs/latest/rules/no-unused-expressions
866
- */
867
- "no-unused-expressions": Linter.RuleEntry<
868
- [
869
- Partial<{
870
- /**
871
- * @default false
872
- */
873
- allowShortCircuit: boolean;
874
- /**
875
- * @default false
876
- */
877
- allowTernary: boolean;
878
- /**
879
- * @default false
880
- */
881
- allowTaggedTemplates: boolean;
882
- /**
883
- * @since 7.20.0
884
- * @default false
885
- */
886
- enforceForJSX: boolean;
887
- }>,
888
- ]
889
- >;
890
-
891
- /**
892
- * Rule to disallow unused labels.
893
- *
894
- * @remarks
895
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
896
- *
897
- * @since 2.0.0-rc.0
898
- * @see https://eslint.org/docs/latest/rules/no-unused-labels
899
- */
900
- "no-unused-labels": Linter.RuleEntry<[]>;
901
-
902
- /**
903
- * Rule to disallow variable assignments when the value is not used.
904
- *
905
- * @since 9.0.0-alpha.1
906
- * @see https://eslint.org/docs/latest/rules/no-useless-assignment
907
- */
908
- "no-useless-assignment": Linter.RuleEntry<[]>;
909
-
910
- /**
911
- * Rule to disallow useless backreferences in regular expressions.
912
- *
913
- * @remarks
914
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
915
- *
916
- * @since 7.0.0-alpha.0
917
- * @see https://eslint.org/docs/latest/rules/no-useless-backreference
918
- */
919
- "no-useless-backreference": Linter.RuleEntry<[]>;
920
-
921
- /**
922
- * Rule to disallow unnecessary calls to `.call()` and `.apply()`.
923
- *
924
- * @since 1.0.0-rc-1
925
- * @see https://eslint.org/docs/latest/rules/no-useless-call
926
- */
927
- "no-useless-call": Linter.RuleEntry<[]>;
928
-
929
- /**
930
- * Rule to disallow unnecessary `catch` clauses.
931
- *
932
- * @remarks
933
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
934
- *
935
- * @since 5.11.0
936
- * @see https://eslint.org/docs/latest/rules/no-useless-catch
937
- */
938
- "no-useless-catch": Linter.RuleEntry<[]>;
939
-
940
- /**
941
- * Rule to disallow unnecessary concatenation of literals or template literals.
942
- *
943
- * @since 1.3.0
944
- * @see https://eslint.org/docs/latest/rules/no-useless-concat
945
- */
946
- "no-useless-concat": Linter.RuleEntry<[]>;
947
-
948
- /**
949
- * Rule to disallow unnecessary escape characters.
950
- *
951
- * @remarks
952
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
953
- *
954
- * @since 2.5.0
955
- * @see https://eslint.org/docs/latest/rules/no-useless-escape
956
- */
957
- "no-useless-escape": Linter.RuleEntry<[]>;
958
-
959
- /**
960
- * Rule to disallow redundant return statements.
961
- *
962
- * @since 3.9.0
963
- * @see https://eslint.org/docs/latest/rules/no-useless-return
964
- */
965
- "no-useless-return": Linter.RuleEntry<[]>;
966
-
967
- /**
968
- * Rule to disallow `void` operators.
969
- *
970
- * @since 0.8.0
971
- * @see https://eslint.org/docs/latest/rules/no-void
972
- */
973
- "no-void": Linter.RuleEntry<
974
- [
975
- Partial<{
976
- /**
977
- * @default false
978
- */
979
- allowAsStatement: boolean;
980
- }>,
981
- ]
982
- >;
983
-
984
- /**
985
- * Rule to disallow specified warning terms in comments.
986
- *
987
- * @since 0.4.4
988
- * @see https://eslint.org/docs/latest/rules/no-warning-comments
989
- */
990
- "no-warning-comments": Linter.RuleEntry<
991
- [
992
- {
993
- /**
994
- * @default ["todo", "fixme", "xxx"]
995
- */
996
- terms: string[];
997
- /**
998
- * @default 'start'
999
- */
1000
- location: "start" | "anywhere";
1001
- },
1002
- ]
1003
- >;
1004
-
1005
- /**
1006
- * Rule to disallow `with` statements.
1007
- *
1008
- * @remarks
1009
- * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
1010
- *
1011
- * @since 0.0.2
1012
- * @see https://eslint.org/docs/latest/rules/no-with
1013
- */
1014
- "no-with": Linter.RuleEntry<[]>;
1015
-
1016
- /**
1017
- * Rule to enforce using named capture group in regular expression.
1018
- *
1019
- * @since 5.15.0
1020
- * @see https://eslint.org/docs/latest/rules/prefer-named-capture-group
1021
- */
1022
- "prefer-named-capture-group": Linter.RuleEntry<[]>;
1023
-
1024
- /**
1025
- * Rule to disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`.
1026
- *
1027
- * @since 8.5.0
1028
- * @see https://eslint.org/docs/latest/rules/prefer-object-has-own
1029
- */
1030
- "prefer-object-has-own": Linter.RuleEntry<[]>;
1031
-
1032
- /**
1033
- * Rule to require using Error objects as Promise rejection reasons.
1034
- *
1035
- * @since 3.14.0
1036
- * @see https://eslint.org/docs/latest/rules/prefer-promise-reject-errors
1037
- */
1038
- "prefer-promise-reject-errors": Linter.RuleEntry<
1039
- [
1040
- Partial<{
1041
- /**
1042
- * @default false
1043
- */
1044
- allowEmptyReject: boolean;
1045
- }>,
1046
- ]
1047
- >;
1048
-
1049
- /**
1050
- * Rule to disallow use of the `RegExp` constructor in favor of regular expression literals.
1051
- *
1052
- * @since 6.4.0
1053
- * @see https://eslint.org/docs/latest/rules/prefer-regex-literals
1054
- */
1055
- "prefer-regex-literals": Linter.RuleEntry<
1056
- [
1057
- Partial<{
1058
- /**
1059
- * @default false
1060
- */
1061
- disallowRedundantWrapping: boolean;
1062
- }>,
1063
- ]
1064
- >;
1065
-
1066
- /**
1067
- * Rule to enforce the consistent use of the radix argument when using `parseInt()`.
1068
- *
1069
- * @since 0.0.7
1070
- * @see https://eslint.org/docs/latest/rules/radix
1071
- */
1072
- radix: Linter.RuleEntry<["always" | "as-needed"]>;
1073
-
1074
- /**
1075
- * Rule to disallow async functions which have no `await` expression.
1076
- *
1077
- * @since 3.11.0
1078
- * @see https://eslint.org/docs/latest/rules/require-await
1079
- */
1080
- "require-await": Linter.RuleEntry<[]>;
1081
-
1082
- /**
1083
- * Rule to enforce the use of `u` or `v` flag on regular expressions.
1084
- *
1085
- * @since 5.3.0
1086
- * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
1087
- */
1088
- "require-unicode-regexp": Linter.RuleEntry<
1089
- [
1090
- Partial<{
1091
- /**
1092
- * @default false
1093
- */
1094
- requireFlag: "u" | "v";
1095
- }>,
1096
- ]
1097
- >;
1098
-
1099
- /**
1100
- * Rule to require `var` declarations be placed at the top of their containing scope.
1101
- *
1102
- * @since 0.8.0
1103
- * @see https://eslint.org/docs/latest/rules/vars-on-top
1104
- */
1105
- "vars-on-top": Linter.RuleEntry<[]>;
1106
-
1107
- /**
1108
- * Rule to require parentheses around immediate `function` invocations.
1109
- *
1110
- * @since 0.0.9
1111
- * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/wrap-iife) in `@stylistic/eslint-plugin-js`.
1112
- * @see https://eslint.org/docs/latest/rules/wrap-iife
1113
- */
1114
- "wrap-iife": Linter.RuleEntry<
1115
- [
1116
- "outside" | "inside" | "any",
1117
- Partial<{
1118
- /**
1119
- * @default false
1120
- */
1121
- functionPrototypeMethods: boolean;
1122
- }>,
1123
- ]
1124
- >;
1125
-
1126
- /**
1127
- * Rule to require or disallow "Yoda" conditions.
1128
- *
1129
- * @since 0.7.1
1130
- * @see https://eslint.org/docs/latest/rules/yoda
1131
- */
1132
- yoda:
1133
- | Linter.RuleEntry<
1134
- [
1135
- "never",
1136
- Partial<{
1137
- exceptRange: boolean;
1138
- onlyEquality: boolean;
1139
- }>,
1140
- ]
1141
- >
1142
- | Linter.RuleEntry<["always"]>;
1143
- }