@jimmy.codes/eslint-config 5.19.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,26 @@
1
1
  import * as eslint from 'eslint';
2
2
  import { Linter } from 'eslint';
3
+ import * as _next_eslint_plugin_next_dist_rules_no_unwanted_polyfillio from '@next/eslint-plugin-next/dist/rules/no-unwanted-polyfillio';
4
+ import * as _next_eslint_plugin_next_dist_rules_no_typos from '@next/eslint-plugin-next/dist/rules/no-typos';
5
+ import * as _next_eslint_plugin_next_dist_rules_no_title_in_document_head from '@next/eslint-plugin-next/dist/rules/no-title-in-document-head';
6
+ import * as _next_eslint_plugin_next_dist_rules_no_sync_scripts from '@next/eslint-plugin-next/dist/rules/no-sync-scripts';
7
+ import * as _next_eslint_plugin_next_dist_rules_no_styled_jsx_in_document from '@next/eslint-plugin-next/dist/rules/no-styled-jsx-in-document';
8
+ import * as _next_eslint_plugin_next_dist_rules_no_script_component_in_head from '@next/eslint-plugin-next/dist/rules/no-script-component-in-head';
9
+ import * as _next_eslint_plugin_next_dist_rules_no_page_custom_font from '@next/eslint-plugin-next/dist/rules/no-page-custom-font';
10
+ import * as _next_eslint_plugin_next_dist_rules_no_img_element from '@next/eslint-plugin-next/dist/rules/no-img-element';
11
+ import * as _next_eslint_plugin_next_dist_rules_no_html_link_for_pages from '@next/eslint-plugin-next/dist/rules/no-html-link-for-pages';
12
+ import * as _next_eslint_plugin_next_dist_rules_no_head_import_in_document from '@next/eslint-plugin-next/dist/rules/no-head-import-in-document';
13
+ import * as _next_eslint_plugin_next_dist_rules_no_head_element from '@next/eslint-plugin-next/dist/rules/no-head-element';
14
+ import * as _next_eslint_plugin_next_dist_rules_no_duplicate_head from '@next/eslint-plugin-next/dist/rules/no-duplicate-head';
15
+ import * as _next_eslint_plugin_next_dist_rules_no_document_import_in_page from '@next/eslint-plugin-next/dist/rules/no-document-import-in-page';
16
+ import * as _next_eslint_plugin_next_dist_rules_no_css_tags from '@next/eslint-plugin-next/dist/rules/no-css-tags';
17
+ import * as _next_eslint_plugin_next_dist_rules_no_before_interactive_script_outside_document from '@next/eslint-plugin-next/dist/rules/no-before-interactive-script-outside-document';
18
+ import * as _next_eslint_plugin_next_dist_rules_no_async_client_component from '@next/eslint-plugin-next/dist/rules/no-async-client-component';
19
+ import * as _next_eslint_plugin_next_dist_rules_no_assign_module_variable from '@next/eslint-plugin-next/dist/rules/no-assign-module-variable';
20
+ import * as _next_eslint_plugin_next_dist_rules_next_script_for_ga from '@next/eslint-plugin-next/dist/rules/next-script-for-ga';
21
+ import * as _next_eslint_plugin_next_dist_rules_inline_script_id from '@next/eslint-plugin-next/dist/rules/inline-script-id';
22
+ import * as _next_eslint_plugin_next_dist_rules_google_font_preconnect from '@next/eslint-plugin-next/dist/rules/google-font-preconnect';
23
+ import * as _next_eslint_plugin_next_dist_rules_google_font_display from '@next/eslint-plugin-next/dist/rules/google-font-display';
3
24
  import * as eslint_plugin_astro from 'eslint-plugin-astro';
4
25
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
5
26
  import * as astro_eslint_parser from 'astro-eslint-parser';
@@ -13,9 +34,64 @@ declare function nextjsConfig(): Promise<{
13
34
  name: string;
14
35
  plugins: {
15
36
  "@next/next": {
37
+ rules: {
38
+ "google-font-display": typeof _next_eslint_plugin_next_dist_rules_google_font_display;
39
+ "google-font-preconnect": typeof _next_eslint_plugin_next_dist_rules_google_font_preconnect;
40
+ "inline-script-id": typeof _next_eslint_plugin_next_dist_rules_inline_script_id;
41
+ "next-script-for-ga": typeof _next_eslint_plugin_next_dist_rules_next_script_for_ga;
42
+ "no-assign-module-variable": typeof _next_eslint_plugin_next_dist_rules_no_assign_module_variable;
43
+ "no-async-client-component": typeof _next_eslint_plugin_next_dist_rules_no_async_client_component;
44
+ "no-before-interactive-script-outside-document": typeof _next_eslint_plugin_next_dist_rules_no_before_interactive_script_outside_document;
45
+ "no-css-tags": typeof _next_eslint_plugin_next_dist_rules_no_css_tags;
46
+ "no-document-import-in-page": typeof _next_eslint_plugin_next_dist_rules_no_document_import_in_page;
47
+ "no-duplicate-head": typeof _next_eslint_plugin_next_dist_rules_no_duplicate_head;
48
+ "no-head-element": typeof _next_eslint_plugin_next_dist_rules_no_head_element;
49
+ "no-head-import-in-document": typeof _next_eslint_plugin_next_dist_rules_no_head_import_in_document;
50
+ "no-html-link-for-pages": typeof _next_eslint_plugin_next_dist_rules_no_html_link_for_pages;
51
+ "no-img-element": typeof _next_eslint_plugin_next_dist_rules_no_img_element;
52
+ "no-page-custom-font": typeof _next_eslint_plugin_next_dist_rules_no_page_custom_font;
53
+ "no-script-component-in-head": typeof _next_eslint_plugin_next_dist_rules_no_script_component_in_head;
54
+ "no-styled-jsx-in-document": typeof _next_eslint_plugin_next_dist_rules_no_styled_jsx_in_document;
55
+ "no-sync-scripts": typeof _next_eslint_plugin_next_dist_rules_no_sync_scripts;
56
+ "no-title-in-document-head": typeof _next_eslint_plugin_next_dist_rules_no_title_in_document_head;
57
+ "no-typos": typeof _next_eslint_plugin_next_dist_rules_no_typos;
58
+ "no-unwanted-polyfillio": typeof _next_eslint_plugin_next_dist_rules_no_unwanted_polyfillio;
59
+ };
16
60
  configs: {
17
- "core-web-vitals": eslint.Linter.Config<eslint.Linter.RulesRecord>;
18
- recommended: eslint.Linter.Config<eslint.Linter.RulesRecord>;
61
+ recommended: {
62
+ plugins: string[];
63
+ rules: {
64
+ "@next/next/google-font-display": string;
65
+ "@next/next/google-font-preconnect": string;
66
+ "@next/next/next-script-for-ga": string;
67
+ "@next/next/no-async-client-component": string;
68
+ "@next/next/no-before-interactive-script-outside-document": string;
69
+ "@next/next/no-css-tags": string;
70
+ "@next/next/no-head-element": string;
71
+ "@next/next/no-html-link-for-pages": string;
72
+ "@next/next/no-img-element": string;
73
+ "@next/next/no-page-custom-font": string;
74
+ "@next/next/no-styled-jsx-in-document": string;
75
+ "@next/next/no-sync-scripts": string;
76
+ "@next/next/no-title-in-document-head": string;
77
+ "@next/next/no-typos": string;
78
+ "@next/next/no-unwanted-polyfillio": string;
79
+ "@next/next/inline-script-id": string;
80
+ "@next/next/no-assign-module-variable": string;
81
+ "@next/next/no-document-import-in-page": string;
82
+ "@next/next/no-duplicate-head": string;
83
+ "@next/next/no-head-import-in-document": string;
84
+ "@next/next/no-script-component-in-head": string;
85
+ };
86
+ };
87
+ "core-web-vitals": {
88
+ plugins: string[];
89
+ extends: string[];
90
+ rules: {
91
+ "@next/next/no-html-link-for-pages": string;
92
+ "@next/next/no-sync-scripts": string;
93
+ };
94
+ };
19
95
  };
20
96
  };
21
97
  };
@@ -1036,7 +1112,7 @@ interface RuleOptions {
1036
1112
  */
1037
1113
  '@next/next/no-assign-module-variable'?: Linter.RuleEntry<[]>
1038
1114
  /**
1039
- * Prevent client components from being async functions.
1115
+ * Prevent Client Components from being async functions.
1040
1116
  * @see https://nextjs.org/docs/messages/no-async-client-component
1041
1117
  */
1042
1118
  '@next/next/no-async-client-component'?: Linter.RuleEntry<[]>
@@ -4347,7 +4423,7 @@ interface RuleOptions {
4347
4423
  */
4348
4424
  'no-console'?: Linter.RuleEntry<NoConsole>
4349
4425
  /**
4350
- * Disallow reassigning `const` variables
4426
+ * Disallow reassigning `const`, `using`, and `await using` variables
4351
4427
  * @see https://eslint.org/docs/latest/rules/no-const-assign
4352
4428
  */
4353
4429
  'no-const-assign'?: Linter.RuleEntry<[]>
@@ -6345,670 +6421,690 @@ interface RuleOptions {
6345
6421
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
6346
6422
  /**
6347
6423
  * Improve regexes by making them shorter, consistent, and safer.
6348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
6424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
6349
6425
  */
6350
6426
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6351
6427
  /**
6352
6428
  * Enforce a specific parameter name in catch clauses.
6353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
6429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
6354
6430
  */
6355
6431
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6356
6432
  /**
6357
6433
  * Enforce consistent assertion style with `node:assert`.
6358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
6434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
6359
6435
  */
6360
6436
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6361
6437
  /**
6362
6438
  * Prefer passing `Date` directly to the constructor when cloning.
6363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
6439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
6364
6440
  */
6365
6441
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6366
6442
  /**
6367
6443
  * Use destructured variables over properties.
6368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
6444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
6369
6445
  */
6370
6446
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6371
6447
  /**
6372
6448
  * Prefer consistent types when spreading a ternary in an array literal.
6373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
6449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
6374
6450
  */
6375
6451
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6376
6452
  /**
6377
6453
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
6454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
6379
6455
  */
6380
6456
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6381
6457
  /**
6382
6458
  * Move function definitions to the highest possible scope.
6383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
6459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
6384
6460
  */
6385
6461
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6386
6462
  /**
6387
6463
  * Enforce correct `Error` subclassing.
6388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
6464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
6389
6465
  */
6390
6466
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6391
6467
  /**
6392
6468
  * Enforce no spaces between braces.
6393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
6469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
6394
6470
  */
6395
6471
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6396
6472
  /**
6397
6473
  * Enforce passing a `message` value when creating a built-in error.
6398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
6474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
6399
6475
  */
6400
6476
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6401
6477
  /**
6402
6478
  * Require escape sequences to use uppercase or lowercase values.
6403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
6479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
6404
6480
  */
6405
6481
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
6406
6482
  /**
6407
6483
  * Add expiration conditions to TODO comments.
6408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
6484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
6409
6485
  */
6410
6486
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6411
6487
  /**
6412
6488
  * Enforce explicitly comparing the `length` or `size` property of a value.
6413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
6489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
6414
6490
  */
6415
6491
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6416
6492
  /**
6417
6493
  * Enforce a case style for filenames.
6418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
6494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
6419
6495
  */
6420
6496
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6421
6497
  /**
6422
6498
  * Enforce specific import styles per module.
6423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
6499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
6424
6500
  */
6425
6501
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6426
6502
  /**
6427
6503
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
6504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
6429
6505
  */
6430
6506
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6431
6507
  /**
6432
6508
  * Enforce specifying rules to disable in `eslint-disable` comments.
6433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
6509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
6434
6510
  */
6435
6511
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6436
6512
  /**
6437
6513
  * Disallow recursive access to `this` within getters and setters.
6438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
6514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
6439
6515
  */
6440
6516
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6441
6517
  /**
6442
6518
  * Disallow anonymous functions and classes as the default export.
6443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
6519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
6444
6520
  */
6445
6521
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6446
6522
  /**
6447
6523
  * Prevent passing a function reference directly to iterator methods.
6448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
6524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
6449
6525
  */
6450
6526
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6451
6527
  /**
6452
6528
  * Prefer `for…of` over the `forEach` method.
6453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
6454
6530
  */
6455
6531
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6456
6532
  /**
6457
6533
  * Disallow using the `this` argument in array methods.
6458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
6459
6535
  */
6460
6536
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6461
6537
  /**
6462
6538
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
6539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
6464
6540
  * @deprecated
6465
6541
  */
6466
6542
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
6467
6543
  /**
6468
6544
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
6470
6546
  */
6471
6547
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6548
+ /**
6549
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
6551
+ */
6552
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
6472
6553
  /**
6473
6554
  * Disallow member access from await expression.
6474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
6475
6556
  */
6476
6557
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6477
6558
  /**
6478
6559
  * Disallow using `await` in `Promise` method parameters.
6479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
6480
6561
  */
6481
6562
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6482
6563
  /**
6483
6564
  * Do not use leading/trailing space between `console.log` parameters.
6484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
6485
6566
  */
6486
6567
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6487
6568
  /**
6488
6569
  * Do not use `document.cookie` directly.
6489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
6490
6571
  */
6491
6572
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6492
6573
  /**
6493
6574
  * Disallow empty files.
6494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
6495
6576
  */
6496
6577
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6497
6578
  /**
6498
6579
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
6500
6581
  */
6501
6582
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6502
6583
  /**
6503
6584
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
6505
6586
  */
6506
6587
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6507
6588
  /**
6508
6589
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
6510
6591
  * @deprecated
6511
6592
  */
6512
6593
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6513
6594
  /**
6514
6595
  * Disallow `instanceof` with built-in objects
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
6596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
6516
6597
  */
6517
6598
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6518
6599
  /**
6519
6600
  * Disallow invalid options in `fetch()` and `new Request()`.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
6601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
6521
6602
  */
6522
6603
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6523
6604
  /**
6524
6605
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
6606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
6526
6607
  */
6527
6608
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6528
6609
  /**
6529
6610
  * Disallow identifiers starting with `new` or `class`.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
6611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
6531
6612
  */
6532
6613
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6533
6614
  /**
6534
6615
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
6616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6536
6617
  * @deprecated
6537
6618
  */
6538
6619
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6539
6620
  /**
6540
6621
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
6622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
6542
6623
  */
6543
6624
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6544
6625
  /**
6545
6626
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
6627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
6547
6628
  */
6548
6629
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6549
6630
  /**
6550
6631
  * Disallow named usage of default import and export.
6551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
6632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
6552
6633
  */
6553
6634
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6554
6635
  /**
6555
6636
  * Disallow negated conditions.
6556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
6637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
6557
6638
  */
6558
6639
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6559
6640
  /**
6560
6641
  * Disallow negated expression in equality check.
6561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
6642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
6562
6643
  */
6563
6644
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6564
6645
  /**
6565
6646
  * Disallow nested ternary expressions.
6566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
6647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
6567
6648
  */
6568
6649
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6569
6650
  /**
6570
6651
  * Disallow `new Array()`.
6571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
6652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
6572
6653
  */
6573
6654
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6574
6655
  /**
6575
6656
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
6657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
6577
6658
  */
6578
6659
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6579
6660
  /**
6580
6661
  * Disallow the use of the `null` literal.
6581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
6662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
6582
6663
  */
6583
6664
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6584
6665
  /**
6585
6666
  * Disallow the use of objects as default parameters.
6586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
6667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
6587
6668
  */
6588
6669
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6589
6670
  /**
6590
6671
  * Disallow `process.exit()`.
6591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
6672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
6592
6673
  */
6593
6674
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6594
6675
  /**
6595
6676
  * Disallow passing single-element arrays to `Promise` methods.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
6677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
6597
6678
  */
6598
6679
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6599
6680
  /**
6600
6681
  * Disallow classes that only have static members.
6601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
6682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
6602
6683
  */
6603
6684
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6604
6685
  /**
6605
6686
  * Disallow `then` property.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
6687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
6607
6688
  */
6608
6689
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6609
6690
  /**
6610
6691
  * Disallow assigning `this` to a variable.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
6692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
6612
6693
  */
6613
6694
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6614
6695
  /**
6615
6696
  * Disallow comparing `undefined` using `typeof`.
6616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
6697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
6617
6698
  */
6618
6699
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6619
6700
  /**
6620
6701
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6622
6703
  */
6623
6704
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6624
6705
  /**
6625
6706
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
6627
6708
  */
6628
6709
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
6629
6710
  /**
6630
6711
  * Disallow awaiting non-promise values.
6631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
6712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
6632
6713
  */
6633
6714
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6634
6715
  /**
6635
6716
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
6717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
6637
6718
  */
6638
6719
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6639
6720
  /**
6640
6721
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
6642
6723
  */
6643
6724
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
6644
6725
  /**
6645
6726
  * Disallow unreadable array destructuring.
6646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
6727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
6647
6728
  */
6648
6729
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6649
6730
  /**
6650
6731
  * Disallow unreadable IIFEs.
6651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
6732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
6652
6733
  */
6653
6734
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6654
6735
  /**
6655
6736
  * Disallow unused object properties.
6656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
6737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
6657
6738
  */
6658
6739
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6740
+ /**
6741
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
6742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6743
+ */
6744
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
6659
6745
  /**
6660
6746
  * Disallow useless fallback when spreading in object literals.
6661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
6747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
6662
6748
  */
6663
6749
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6664
6750
  /**
6665
6751
  * Disallow useless array length check.
6666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
6752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
6667
6753
  */
6668
6754
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6669
6755
  /**
6670
6756
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
6757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
6672
6758
  */
6673
6759
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6674
6760
  /**
6675
6761
  * Disallow unnecessary spread.
6676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
6762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
6677
6763
  */
6678
6764
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6679
6765
  /**
6680
6766
  * Disallow useless case in switch statements.
6681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
6767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
6682
6768
  */
6683
6769
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6684
6770
  /**
6685
6771
  * Disallow useless `undefined`.
6686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
6772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
6687
6773
  */
6688
6774
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6689
6775
  /**
6690
6776
  * Disallow number literals with zero fractions or dangling dots.
6691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
6777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
6692
6778
  */
6693
6779
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6694
6780
  /**
6695
6781
  * Enforce proper case for numeric literals.
6696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
6782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
6697
6783
  */
6698
6784
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6699
6785
  /**
6700
6786
  * Enforce the style of numeric separators by correctly grouping digits.
6701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
6787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
6702
6788
  */
6703
6789
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6704
6790
  /**
6705
6791
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
6792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
6707
6793
  */
6708
6794
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6709
6795
  /**
6710
6796
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
6797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
6712
6798
  */
6713
6799
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6714
6800
  /**
6715
6801
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
6802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
6717
6803
  */
6718
6804
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6719
6805
  /**
6720
6806
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
6807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
6722
6808
  */
6723
6809
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6724
6810
  /**
6725
6811
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
6812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
6727
6813
  */
6728
6814
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6729
6815
  /**
6730
6816
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
6817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
6732
6818
  */
6733
6819
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6734
6820
  /**
6735
6821
  * Prefer `.at()` method for index access and `String#charAt()`.
6736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
6822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
6737
6823
  */
6738
6824
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6739
6825
  /**
6740
6826
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
6827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
6742
6828
  */
6743
6829
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6830
+ /**
6831
+ * Prefer class field declarations over `this` assignments in constructors.
6832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
6833
+ */
6834
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
6744
6835
  /**
6745
6836
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
6837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
6747
6838
  */
6748
6839
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6749
6840
  /**
6750
6841
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
6842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
6752
6843
  */
6753
6844
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6754
6845
  /**
6755
6846
  * Prefer default parameters over reassignment.
6756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
6847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
6757
6848
  */
6758
6849
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6759
6850
  /**
6760
6851
  * Prefer `Node#append()` over `Node#appendChild()`.
6761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
6852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
6762
6853
  */
6763
6854
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6764
6855
  /**
6765
6856
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
6857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
6767
6858
  */
6768
6859
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6769
6860
  /**
6770
6861
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
6862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
6772
6863
  */
6773
6864
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6774
6865
  /**
6775
6866
  * Prefer `.textContent` over `.innerText`.
6776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
6867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
6777
6868
  */
6778
6869
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6779
6870
  /**
6780
6871
  * Prefer `EventTarget` over `EventEmitter`.
6781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
6872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
6782
6873
  */
6783
6874
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6784
6875
  /**
6785
6876
  * Prefer `export…from` when re-exporting.
6786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
6877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
6787
6878
  */
6788
6879
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6789
6880
  /**
6790
6881
  * Prefer `globalThis` over `window`, `self`, and `global`.
6791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
6882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
6792
6883
  */
6793
6884
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6794
6885
  /**
6795
6886
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
6887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
6797
6888
  */
6798
6889
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6799
6890
  /**
6800
6891
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
6892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
6802
6893
  */
6803
6894
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6804
6895
  /**
6805
6896
  * Prefer reading a JSON file as a buffer.
6806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
6897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
6807
6898
  */
6808
6899
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6809
6900
  /**
6810
6901
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
6902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
6812
6903
  */
6813
6904
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6814
6905
  /**
6815
6906
  * Prefer using a logical operator over a ternary.
6816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6817
6908
  */
6818
6909
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6819
6910
  /**
6820
6911
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
6912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
6822
6913
  */
6823
6914
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6824
6915
  /**
6825
6916
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
6917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
6827
6918
  */
6828
6919
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6829
6920
  /**
6830
6921
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
6922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
6832
6923
  */
6833
6924
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6834
6925
  /**
6835
6926
  * Prefer modern `Math` APIs over legacy patterns.
6836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
6927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
6837
6928
  */
6838
6929
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6839
6930
  /**
6840
6931
  * Prefer JavaScript modules (ESM) over CommonJS.
6841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
6932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
6842
6933
  */
6843
6934
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6844
6935
  /**
6845
6936
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
6937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
6847
6938
  */
6848
6939
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6849
6940
  /**
6850
6941
  * Prefer negative index over `.length - index` when possible.
6851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
6942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
6852
6943
  */
6853
6944
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6854
6945
  /**
6855
6946
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
6947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
6857
6948
  */
6858
6949
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6859
6950
  /**
6860
6951
  * Prefer `Number` static properties over global ones.
6861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
6952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
6862
6953
  */
6863
6954
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6864
6955
  /**
6865
6956
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
6957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
6867
6958
  */
6868
6959
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6869
6960
  /**
6870
6961
  * Prefer omitting the `catch` binding parameter.
6871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
6962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
6872
6963
  */
6873
6964
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6874
6965
  /**
6875
6966
  * Prefer borrowing methods from the prototype instead of the instance.
6876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
6967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
6877
6968
  */
6878
6969
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6879
6970
  /**
6880
6971
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
6972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
6882
6973
  */
6883
6974
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6884
6975
  /**
6885
6976
  * Prefer `Reflect.apply()` over `Function#apply()`.
6886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
6977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
6887
6978
  */
6888
6979
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6889
6980
  /**
6890
6981
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
6982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
6892
6983
  */
6893
6984
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6894
6985
  /**
6895
6986
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
6987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
6897
6988
  */
6898
6989
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6899
6990
  /**
6900
6991
  * Prefer using `Set#size` instead of `Array#length`.
6901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
6992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
6902
6993
  */
6903
6994
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6904
6995
  /**
6905
6996
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
6997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
6907
6998
  */
6908
6999
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6909
7000
  /**
6910
7001
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
7002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
6912
7003
  */
6913
7004
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6914
7005
  /**
6915
7006
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
7007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
6917
7008
  */
6918
7009
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6919
7010
  /**
6920
7011
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
7012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
6922
7013
  */
6923
7014
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6924
7015
  /**
6925
7016
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
7017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
6927
7018
  */
6928
7019
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6929
7020
  /**
6930
7021
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
7022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
6932
7023
  */
6933
7024
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6934
7025
  /**
6935
7026
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
6937
7028
  */
6938
7029
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6939
7030
  /**
6940
7031
  * Prefer using `structuredClone` to create a deep clone.
6941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
6942
7033
  */
6943
7034
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6944
7035
  /**
6945
7036
  * Prefer `switch` over multiple `else-if`.
6946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
6947
7038
  */
6948
7039
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6949
7040
  /**
6950
7041
  * Prefer ternary expressions over simple `if-else` statements.
6951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
7042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
6952
7043
  */
6953
7044
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6954
7045
  /**
6955
7046
  * Prefer top-level await over top-level promises and async function calls.
6956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
7047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
6957
7048
  */
6958
7049
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6959
7050
  /**
6960
7051
  * Enforce throwing `TypeError` in type checking conditions.
6961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
7052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
6962
7053
  */
6963
7054
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6964
7055
  /**
6965
7056
  * Prevent abbreviations.
6966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
7057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
6967
7058
  */
6968
7059
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6969
7060
  /**
6970
7061
  * Enforce consistent relative URL style.
6971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
7062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
6972
7063
  */
6973
7064
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6974
7065
  /**
6975
7066
  * Enforce using the separator argument with `Array#join()`.
6976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
7067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
6977
7068
  */
6978
7069
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7070
+ /**
7071
+ * Require non-empty specifier list in import and export statements.
7072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
7073
+ */
7074
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6979
7075
  /**
6980
7076
  * Enforce using the digits argument with `Number#toFixed()`.
6981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
7077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6982
7078
  */
6983
7079
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6984
7080
  /**
6985
7081
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
7082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
6987
7083
  */
6988
7084
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6989
7085
  /**
6990
7086
  * Enforce better string content.
6991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
7087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
6992
7088
  */
6993
7089
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6994
7090
  /**
6995
7091
  * Enforce consistent brace style for `case` clauses.
6996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
7092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
6997
7093
  */
6998
7094
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6999
7095
  /**
7000
7096
  * Fix whitespace-insensitive template indentation.
7001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
7097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
7002
7098
  */
7003
7099
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7004
7100
  /**
7005
7101
  * Enforce consistent case for text encoding identifiers.
7006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
7102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
7007
7103
  */
7008
7104
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7009
7105
  /**
7010
7106
  * Require `new` when creating an error.
7011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
7012
7108
  */
7013
7109
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7014
7110
  /**
@@ -7682,10 +7778,12 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
7682
7778
  FunctionDeclaration?: {
7683
7779
  parameters?: (number | ("first" | "off"))
7684
7780
  body?: number
7781
+ returnType?: number
7685
7782
  }
7686
7783
  FunctionExpression?: {
7687
7784
  parameters?: (number | ("first" | "off"))
7688
7785
  body?: number
7786
+ returnType?: number
7689
7787
  }
7690
7788
  StaticBlock?: {
7691
7789
  body?: number
@@ -7726,31 +7824,52 @@ type StylisticJsxCurlyNewline = []|[(("consistent" | "never") | {
7726
7824
  multiline?: ("consistent" | "require" | "forbid")
7727
7825
  })]
7728
7826
  // ----- @stylistic/jsx-curly-spacing -----
7729
- type StylisticJsxCurlySpacing = []|[((_StylisticJsxCurlySpacing_BasicConfig & {
7730
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
7731
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
7732
- [k: string]: unknown | undefined
7733
- }) | ("always" | "never"))]|[((_StylisticJsxCurlySpacing_BasicConfig & {
7734
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
7735
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
7736
- [k: string]: unknown | undefined
7737
- }) | ("always" | "never")), {
7827
+ type StylisticJsxCurlySpacing = []|[({
7828
+ when?: ("always" | "never")
7738
7829
  allowMultiline?: boolean
7739
7830
  spacing?: {
7740
7831
  objectLiterals?: ("always" | "never")
7741
- [k: string]: unknown | undefined
7742
7832
  }
7743
- }]
7744
- type _StylisticJsxCurlySpacingBasicConfigOrBoolean = (_StylisticJsxCurlySpacing_BasicConfig | boolean)
7745
- interface _StylisticJsxCurlySpacing_BasicConfig {
7833
+ attributes?: ({
7834
+ when?: ("always" | "never")
7835
+ allowMultiline?: boolean
7836
+ spacing?: {
7837
+ objectLiterals?: ("always" | "never")
7838
+ }
7839
+ } | boolean)
7840
+ children?: ({
7841
+ when?: ("always" | "never")
7842
+ allowMultiline?: boolean
7843
+ spacing?: {
7844
+ objectLiterals?: ("always" | "never")
7845
+ }
7846
+ } | boolean)
7847
+ } | ("always" | "never"))]|[({
7746
7848
  when?: ("always" | "never")
7747
7849
  allowMultiline?: boolean
7748
7850
  spacing?: {
7749
7851
  objectLiterals?: ("always" | "never")
7750
- [k: string]: unknown | undefined
7751
7852
  }
7752
- [k: string]: unknown | undefined
7753
- }
7853
+ attributes?: ({
7854
+ when?: ("always" | "never")
7855
+ allowMultiline?: boolean
7856
+ spacing?: {
7857
+ objectLiterals?: ("always" | "never")
7858
+ }
7859
+ } | boolean)
7860
+ children?: ({
7861
+ when?: ("always" | "never")
7862
+ allowMultiline?: boolean
7863
+ spacing?: {
7864
+ objectLiterals?: ("always" | "never")
7865
+ }
7866
+ } | boolean)
7867
+ } | ("always" | "never")), {
7868
+ allowMultiline?: boolean
7869
+ spacing?: {
7870
+ objectLiterals?: ("always" | "never")
7871
+ }
7872
+ }]
7754
7873
  // ----- @stylistic/jsx-equals-spacing -----
7755
7874
  type StylisticJsxEqualsSpacing = []|[("always" | "never")]
7756
7875
  // ----- @stylistic/jsx-first-prop-new-line -----
@@ -7766,14 +7885,12 @@ type StylisticJsxIndent = []|[("tab" | number)]|[("tab" | number), {
7766
7885
  type StylisticJsxIndentProps = []|[(("tab" | "first") | number | {
7767
7886
  indentMode?: (("tab" | "first") | number)
7768
7887
  ignoreTernaryOperator?: boolean
7769
- [k: string]: unknown | undefined
7770
7888
  })]
7771
7889
  // ----- @stylistic/jsx-max-props-per-line -----
7772
7890
  type StylisticJsxMaxPropsPerLine = []|[({
7773
7891
  maximum?: {
7774
7892
  single?: number
7775
7893
  multi?: number
7776
- [k: string]: unknown | undefined
7777
7894
  }
7778
7895
  } | {
7779
7896
  maximum?: number
@@ -8120,6 +8237,10 @@ type StylisticKeywordSpacing = []|[{
8120
8237
  before?: boolean
8121
8238
  after?: boolean
8122
8239
  }
8240
+ accessor?: {
8241
+ before?: boolean
8242
+ after?: boolean
8243
+ }
8123
8244
  as?: {
8124
8245
  before?: boolean
8125
8246
  after?: boolean
@@ -8334,11 +8455,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
8334
8455
  // ----- @stylistic/multiline-comment-style -----
8335
8456
  type StylisticMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
8336
8457
  checkJSDoc?: boolean
8458
+ checkExclamation?: boolean
8337
8459
  }])
8338
8460
  // ----- @stylistic/multiline-ternary -----
8339
8461
  type StylisticMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
8340
8462
  ignoreJSX?: boolean
8341
- [k: string]: unknown | undefined
8342
8463
  }]
8343
8464
  // ----- @stylistic/new-parens -----
8344
8465
  type StylisticNewParens = []|[("always" | "never")]
@@ -9529,7 +9650,6 @@ type TypescriptEslintPreferDestructuring = []|[({
9529
9650
  enforceForDeclarationWithTypeAnnotation?: boolean
9530
9651
 
9531
9652
  enforceForRenamedProperties?: boolean
9532
- [k: string]: unknown | undefined
9533
9653
  }]
9534
9654
  // ----- @typescript-eslint/prefer-literal-enum-member -----
9535
9655
  type TypescriptEslintPreferLiteralEnumMember = []|[{
@@ -9558,7 +9678,6 @@ type TypescriptEslintPreferNullishCoalescing = []|[{
9558
9678
  number?: boolean
9559
9679
 
9560
9680
  string?: boolean
9561
- [k: string]: unknown | undefined
9562
9681
  } | true)
9563
9682
 
9564
9683
  ignoreTernaryTests?: boolean
@@ -10775,8 +10894,8 @@ type JsdocMatchName = []|[{
10775
10894
  context?: string
10776
10895
  disallowName?: string
10777
10896
  message?: string
10897
+ replacement?: string
10778
10898
  tags?: string[]
10779
- [k: string]: unknown | undefined
10780
10899
  }[]
10781
10900
  }]
10782
10901
  // ----- jsdoc/multiline-blocks -----
@@ -10850,7 +10969,6 @@ type JsdocRequireAsteriskPrefix = []|[("always" | "never" | "any")]|[("always" |
10850
10969
  always?: string[]
10851
10970
  any?: string[]
10852
10971
  never?: string[]
10853
- [k: string]: unknown | undefined
10854
10972
  }
10855
10973
  }]
10856
10974
  // ----- jsdoc/require-description -----
@@ -11060,7 +11178,6 @@ type JsdocSortTags = []|[{
11060
11178
  reportTagGroupSpacing?: boolean
11061
11179
  tagSequence?: {
11062
11180
  tags?: string[]
11063
- [k: string]: unknown | undefined
11064
11181
  }[]
11065
11182
  }]
11066
11183
  // ----- jsdoc/tag-lines -----
@@ -15968,6 +16085,10 @@ interface _UnicornImportStyle_BooleanObject {
15968
16085
  type UnicornNoArrayReduce = []|[{
15969
16086
  allowSimpleOperations?: boolean
15970
16087
  }]
16088
+ // ----- unicorn/no-array-reverse -----
16089
+ type UnicornNoArrayReverse = []|[{
16090
+ allowExpressionStatement?: boolean
16091
+ }]
15971
16092
  // ----- unicorn/no-instanceof-builtins -----
15972
16093
  type UnicornNoInstanceofBuiltins = []|[{
15973
16094
  useErrorIsError?: boolean
@@ -16549,25 +16670,6 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
16549
16670
  "n/prefer-node-protocol": "error";
16550
16671
  "n/process-exit-as-throw": "error";
16551
16672
  };
16552
- } | {
16553
- name: string;
16554
- plugins: {
16555
- perfectionist: eslint.ESLint.Plugin;
16556
- };
16557
- rules: {
16558
- "perfectionist/sort-imports": ["error", {
16559
- customGroups: {
16560
- type: {};
16561
- value: {};
16562
- };
16563
- environment: "node";
16564
- groups: (string | string[])[];
16565
- internalPattern: string[];
16566
- order: "asc";
16567
- type: "natural";
16568
- }];
16569
- "perfectionist/sort-modules": "off";
16570
- };
16571
16673
  } | {
16572
16674
  name: string;
16573
16675
  rules: Record<string, 0 | "off">;
@@ -16918,9 +17020,64 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
16918
17020
  name: string;
16919
17021
  plugins: {
16920
17022
  "@next/next": {
17023
+ rules: {
17024
+ "google-font-display": typeof _next_eslint_plugin_next_dist_rules_google_font_display;
17025
+ "google-font-preconnect": typeof _next_eslint_plugin_next_dist_rules_google_font_preconnect;
17026
+ "inline-script-id": typeof _next_eslint_plugin_next_dist_rules_inline_script_id;
17027
+ "next-script-for-ga": typeof _next_eslint_plugin_next_dist_rules_next_script_for_ga;
17028
+ "no-assign-module-variable": typeof _next_eslint_plugin_next_dist_rules_no_assign_module_variable;
17029
+ "no-async-client-component": typeof _next_eslint_plugin_next_dist_rules_no_async_client_component;
17030
+ "no-before-interactive-script-outside-document": typeof _next_eslint_plugin_next_dist_rules_no_before_interactive_script_outside_document;
17031
+ "no-css-tags": typeof _next_eslint_plugin_next_dist_rules_no_css_tags;
17032
+ "no-document-import-in-page": typeof _next_eslint_plugin_next_dist_rules_no_document_import_in_page;
17033
+ "no-duplicate-head": typeof _next_eslint_plugin_next_dist_rules_no_duplicate_head;
17034
+ "no-head-element": typeof _next_eslint_plugin_next_dist_rules_no_head_element;
17035
+ "no-head-import-in-document": typeof _next_eslint_plugin_next_dist_rules_no_head_import_in_document;
17036
+ "no-html-link-for-pages": typeof _next_eslint_plugin_next_dist_rules_no_html_link_for_pages;
17037
+ "no-img-element": typeof _next_eslint_plugin_next_dist_rules_no_img_element;
17038
+ "no-page-custom-font": typeof _next_eslint_plugin_next_dist_rules_no_page_custom_font;
17039
+ "no-script-component-in-head": typeof _next_eslint_plugin_next_dist_rules_no_script_component_in_head;
17040
+ "no-styled-jsx-in-document": typeof _next_eslint_plugin_next_dist_rules_no_styled_jsx_in_document;
17041
+ "no-sync-scripts": typeof _next_eslint_plugin_next_dist_rules_no_sync_scripts;
17042
+ "no-title-in-document-head": typeof _next_eslint_plugin_next_dist_rules_no_title_in_document_head;
17043
+ "no-typos": typeof _next_eslint_plugin_next_dist_rules_no_typos;
17044
+ "no-unwanted-polyfillio": typeof _next_eslint_plugin_next_dist_rules_no_unwanted_polyfillio;
17045
+ };
16921
17046
  configs: {
16922
- "core-web-vitals": Linter.Config<Linter.RulesRecord>;
16923
- recommended: Linter.Config<Linter.RulesRecord>;
17047
+ recommended: {
17048
+ plugins: string[];
17049
+ rules: {
17050
+ "@next/next/google-font-display": string;
17051
+ "@next/next/google-font-preconnect": string;
17052
+ "@next/next/next-script-for-ga": string;
17053
+ "@next/next/no-async-client-component": string;
17054
+ "@next/next/no-before-interactive-script-outside-document": string;
17055
+ "@next/next/no-css-tags": string;
17056
+ "@next/next/no-head-element": string;
17057
+ "@next/next/no-html-link-for-pages": string;
17058
+ "@next/next/no-img-element": string;
17059
+ "@next/next/no-page-custom-font": string;
17060
+ "@next/next/no-styled-jsx-in-document": string;
17061
+ "@next/next/no-sync-scripts": string;
17062
+ "@next/next/no-title-in-document-head": string;
17063
+ "@next/next/no-typos": string;
17064
+ "@next/next/no-unwanted-polyfillio": string;
17065
+ "@next/next/inline-script-id": string;
17066
+ "@next/next/no-assign-module-variable": string;
17067
+ "@next/next/no-document-import-in-page": string;
17068
+ "@next/next/no-duplicate-head": string;
17069
+ "@next/next/no-head-import-in-document": string;
17070
+ "@next/next/no-script-component-in-head": string;
17071
+ };
17072
+ };
17073
+ "core-web-vitals": {
17074
+ plugins: string[];
17075
+ extends: string[];
17076
+ rules: {
17077
+ "@next/next/no-html-link-for-pages": string;
17078
+ "@next/next/no-sync-scripts": string;
17079
+ };
17080
+ };
16924
17081
  };
16925
17082
  };
16926
17083
  };