@jsse/eslint-config 0.1.13 → 0.1.14

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.cts CHANGED
@@ -4147,6 +4147,11 @@ interface AntfuRuleOptions {
4147
4147
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
4148
4148
  */
4149
4149
  "antfu/import-dedupe"?: Linter.RuleEntry<[]>;
4150
+ /**
4151
+ * Enforce consistent indentation in `unindent` template tag
4152
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.test.ts
4153
+ */
4154
+ "antfu/indent-unindent"?: Linter.RuleEntry<AntfuIndentUnindent>;
4150
4155
  /**
4151
4156
  * Prevent importing modules in `dist` folder
4152
4157
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.test.ts
@@ -4191,6 +4196,16 @@ type AntfuConsistentListNewline =
4191
4196
  TSTypeParameterInstantiation?: boolean;
4192
4197
  ObjectPattern?: boolean;
4193
4198
  ArrayPattern?: boolean;
4199
+ JSXOpeningElement?: boolean;
4200
+ },
4201
+ ];
4202
+ // ----- antfu/indent-unindent -----
4203
+ type AntfuIndentUnindent =
4204
+ | []
4205
+ | [
4206
+ {
4207
+ indent?: number;
4208
+ tags?: string[];
4194
4209
  },
4195
4210
  ];
4196
4211
 
@@ -7512,89 +7527,6 @@ type NNoUnsupportedFeaturesEsBuiltins =
7512
7527
  | "parseFloat"
7513
7528
  | "parseInt"
7514
7529
  | "unescape"
7515
- | "AbortController"
7516
- | "AbortSignal"
7517
- | "AbortSignal.abort"
7518
- | "AbortSignal.any"
7519
- | "AbortSignal.timeout"
7520
- | "Blob"
7521
- | "BroadcastChannel"
7522
- | "ByteLengthQueuingStrategy"
7523
- | "CompressionStream"
7524
- | "CountQueuingStrategy"
7525
- | "Crypto"
7526
- | "CryptoKey"
7527
- | "CustomEvent"
7528
- | "DOMException"
7529
- | "DecompressionStream"
7530
- | "Event"
7531
- | "EventTarget"
7532
- | "FormData"
7533
- | "Headers"
7534
- | "MessageChannel"
7535
- | "MessageEvent"
7536
- | "MessagePort"
7537
- | "Performance"
7538
- | "PerformanceEntry"
7539
- | "PerformanceMark"
7540
- | "PerformanceMeasure"
7541
- | "PerformanceObserver"
7542
- | "PerformanceObserver.supportedEntryTypes"
7543
- | "PerformanceObserverEntryList"
7544
- | "ReadableByteStreamController"
7545
- | "ReadableStream"
7546
- | "ReadableStream.from"
7547
- | "ReadableStreamBYOBReader"
7548
- | "ReadableStreamBYOBRequest"
7549
- | "ReadableStreamDefaultController"
7550
- | "ReadableStreamDefaultReader"
7551
- | "Request"
7552
- | "Response"
7553
- | "SubtleCrypto"
7554
- | "TextDecoder"
7555
- | "TextDecoderStream"
7556
- | "TextEncoder"
7557
- | "TextEncoderStream"
7558
- | "TransformStream"
7559
- | "TransformStreamDefaultController"
7560
- | "URL"
7561
- | "URL.canParse"
7562
- | "URL.createObjectURL"
7563
- | "URL.revokeObjectURL"
7564
- | "URLSearchParams"
7565
- | "Worker"
7566
- | "WritableStream"
7567
- | "WritableStreamDefaultController"
7568
- | "WritableStreamDefaultWriter"
7569
- | "atob"
7570
- | "btoa"
7571
- | "clearInterval"
7572
- | "clearTimeout"
7573
- | "console"
7574
- | "console.assert"
7575
- | "console.clear"
7576
- | "console.countReset"
7577
- | "console.count"
7578
- | "console.debug"
7579
- | "console.dir"
7580
- | "console.dirxml"
7581
- | "console.error"
7582
- | "console.groupCollapsed"
7583
- | "console.groupEnd"
7584
- | "console.group"
7585
- | "console.info"
7586
- | "console.log"
7587
- | "console.table"
7588
- | "console.timeEnd"
7589
- | "console.timeLog"
7590
- | "console.time"
7591
- | "console.trace"
7592
- | "console.warn"
7593
- | "fetch"
7594
- | "queueMicrotask"
7595
- | "setInterval"
7596
- | "setTimeout"
7597
- | "structuredClone"
7598
7530
  )[];
7599
7531
  },
7600
7532
  ];
@@ -8204,9 +8136,54 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8204
8136
  | [
8205
8137
  {
8206
8138
  version?: string;
8139
+ allowExperimental?: boolean;
8207
8140
  ignores?: (
8208
- | "queueMicrotask"
8141
+ | "__filename"
8142
+ | "__dirname"
8143
+ | "require"
8144
+ | "require.cache"
8145
+ | "require.extensions"
8146
+ | "require.main"
8147
+ | "require.resolve"
8209
8148
  | "require.resolve.paths"
8149
+ | "module"
8150
+ | "module.children"
8151
+ | "module.exports"
8152
+ | "module.filename"
8153
+ | "module.id"
8154
+ | "module.isPreloading"
8155
+ | "module.loaded"
8156
+ | "module.parent"
8157
+ | "module.path"
8158
+ | "module.paths"
8159
+ | "module.require"
8160
+ | "exports"
8161
+ | "AbortController"
8162
+ | "AbortSignal"
8163
+ | "AbortSignal.abort"
8164
+ | "AbortSignal.timeout"
8165
+ | "AbortSignal.any"
8166
+ | "DOMException"
8167
+ | "FormData"
8168
+ | "Headers"
8169
+ | "MessageEvent"
8170
+ | "Navigator"
8171
+ | "Request"
8172
+ | "Response"
8173
+ | "WebAssembly"
8174
+ | "WebSocket"
8175
+ | "fetch"
8176
+ | "global"
8177
+ | "queueMicrotask"
8178
+ | "navigator"
8179
+ | "navigator.hardwareConcurrency"
8180
+ | "navigator.language"
8181
+ | "navigator.languages"
8182
+ | "navigator.platform"
8183
+ | "navigator.userAgent"
8184
+ | "structuredClone"
8185
+ | "Blob"
8186
+ | "new Buffer()"
8210
8187
  | "Buffer"
8211
8188
  | "Buffer.alloc"
8212
8189
  | "Buffer.allocUnsafe"
@@ -8218,13 +8195,9 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8218
8195
  | "Buffer.from"
8219
8196
  | "Buffer.isBuffer"
8220
8197
  | "Buffer.isEncoding"
8221
- | "TextDecoder"
8222
- | "TextEncoder"
8223
- | "URL"
8224
- | "URL.canParse"
8225
- | "URL.createObjectURL"
8226
- | "URL.revokeObjectURL"
8227
- | "URLSearchParams"
8198
+ | "File"
8199
+ | "atob"
8200
+ | "btoa"
8228
8201
  | "console"
8229
8202
  | "console.profile"
8230
8203
  | "console.profileEnd"
@@ -8249,6 +8222,35 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8249
8222
  | "console.timeLog"
8250
8223
  | "console.trace"
8251
8224
  | "console.warn"
8225
+ | "crypto"
8226
+ | "crypto.subtle"
8227
+ | "crypto.subtle.decrypt"
8228
+ | "crypto.subtle.deriveBits"
8229
+ | "crypto.subtle.deriveKey"
8230
+ | "crypto.subtle.digest"
8231
+ | "crypto.subtle.encrypt"
8232
+ | "crypto.subtle.exportKey"
8233
+ | "crypto.subtle.generateKey"
8234
+ | "crypto.subtle.importKey"
8235
+ | "crypto.subtle.sign"
8236
+ | "crypto.subtle.unwrapKey"
8237
+ | "crypto.subtle.verify"
8238
+ | "crypto.subtle.wrapKey"
8239
+ | "crypto.getRandomValues"
8240
+ | "crypto.randomUUID"
8241
+ | "Crypto"
8242
+ | "CryptoKey"
8243
+ | "SubtleCrypto"
8244
+ | "CustomEvent"
8245
+ | "Event"
8246
+ | "EventTarget"
8247
+ | "PerformanceEntry"
8248
+ | "PerformanceMark"
8249
+ | "PerformanceMeasure"
8250
+ | "PerformanceObserver"
8251
+ | "PerformanceObserverEntryList"
8252
+ | "PerformanceResourceTiming"
8253
+ | "performance"
8252
8254
  | "process"
8253
8255
  | "process.allowedNodeEnvironmentFlags"
8254
8256
  | "process.arch"
@@ -8337,6 +8339,40 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8337
8339
  | "process.setUncaughtExceptionCaptureCallback"
8338
8340
  | "process.umask"
8339
8341
  | "process.uptime"
8342
+ | "ReadableStream"
8343
+ | "ReadableStream.from"
8344
+ | "ReadableStreamDefaultReader"
8345
+ | "ReadableStreamBYOBReader"
8346
+ | "ReadableStreamDefaultController"
8347
+ | "ReadableByteStreamController"
8348
+ | "ReadableStreamBYOBRequest"
8349
+ | "WritableStream"
8350
+ | "WritableStreamDefaultWriter"
8351
+ | "WritableStreamDefaultController"
8352
+ | "TransformStream"
8353
+ | "TransformStreamDefaultController"
8354
+ | "ByteLengthQueuingStrategy"
8355
+ | "CountQueuingStrategy"
8356
+ | "TextEncoderStream"
8357
+ | "TextDecoderStream"
8358
+ | "CompressionStream"
8359
+ | "DecompressionStream"
8360
+ | "setInterval"
8361
+ | "clearInterval"
8362
+ | "setTimeout"
8363
+ | "clearTimeout"
8364
+ | "setImmediate"
8365
+ | "clearImmediate"
8366
+ | "URL"
8367
+ | "URL.canParse"
8368
+ | "URL.createObjectURL"
8369
+ | "URL.revokeObjectURL"
8370
+ | "URLSearchParams"
8371
+ | "TextDecoder"
8372
+ | "TextEncoder"
8373
+ | "BroadcastChannel"
8374
+ | "MessageChannel"
8375
+ | "MessagePort"
8340
8376
  | "assert"
8341
8377
  | "assert.assert"
8342
8378
  | "assert.deepEqual"
@@ -8420,6 +8456,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8420
8456
  | "buffer.transcode"
8421
8457
  | "buffer.SlowBuffer"
8422
8458
  | "buffer.Blob"
8459
+ | "new buffer.Buffer()"
8423
8460
  | "buffer.Buffer"
8424
8461
  | "buffer.Buffer.alloc"
8425
8462
  | "buffer.Buffer.allocUnsafe"
@@ -8454,7 +8491,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8454
8491
  | "cluster.setupMaster"
8455
8492
  | "cluster.setupPrimary"
8456
8493
  | "cluster.Worker"
8457
- | "crypto"
8458
8494
  | "crypto.constants"
8459
8495
  | "crypto.fips"
8460
8496
  | "crypto.webcrypto"
@@ -8473,19 +8509,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8473
8509
  | "crypto.webcrypto.subtle.wrapKey"
8474
8510
  | "crypto.webcrypto.getRandomValues"
8475
8511
  | "crypto.webcrypto.randomUUID"
8476
- | "crypto.subtle"
8477
- | "crypto.subtle.decrypt"
8478
- | "crypto.subtle.deriveBits"
8479
- | "crypto.subtle.deriveKey"
8480
- | "crypto.subtle.digest"
8481
- | "crypto.subtle.encrypt"
8482
- | "crypto.subtle.exportKey"
8483
- | "crypto.subtle.generateKey"
8484
- | "crypto.subtle.importKey"
8485
- | "crypto.subtle.sign"
8486
- | "crypto.subtle.unwrapKey"
8487
- | "crypto.subtle.verify"
8488
- | "crypto.subtle.wrapKey"
8489
8512
  | "crypto.checkPrime"
8490
8513
  | "crypto.checkPrimeSync"
8491
8514
  | "crypto.createCipher"
@@ -8515,7 +8538,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8515
8538
  | "crypto.getDiffieHellman"
8516
8539
  | "crypto.getFips"
8517
8540
  | "crypto.getHashes"
8518
- | "crypto.getRandomValues"
8519
8541
  | "crypto.hash"
8520
8542
  | "crypto.hkdf"
8521
8543
  | "crypto.hkdfSync"
@@ -8529,7 +8551,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8529
8551
  | "crypto.randomFillSync"
8530
8552
  | "crypto.randomFill"
8531
8553
  | "crypto.randomInt"
8532
- | "crypto.randomUUID"
8533
8554
  | "crypto.scrypt"
8534
8555
  | "crypto.scryptSync"
8535
8556
  | "crypto.secureHeapUsed"
@@ -8888,7 +8909,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8888
8909
  | "inspector/promises.open"
8889
8910
  | "inspector/promises.url"
8890
8911
  | "inspector/promises.waitForDebugger"
8891
- | "module"
8892
8912
  | "module.builtinModules"
8893
8913
  | "module.createRequire"
8894
8914
  | "module.createRequireFromPath"
@@ -11426,6 +11446,11 @@ interface StylisticRuleOptions {
11426
11446
  * @see https://eslint.style/rules/ts/keyword-spacing
11427
11447
  */
11428
11448
  "@stylistic/keyword-spacing"?: Linter.RuleEntry<StylisticKeywordSpacing>;
11449
+ /**
11450
+ * Enforce position of line comments
11451
+ * @see https://eslint.style/rules/js/line-comment-position
11452
+ */
11453
+ "@stylistic/line-comment-position"?: Linter.RuleEntry<StylisticLineCommentPosition>;
11429
11454
  /**
11430
11455
  * Enforce consistent linebreak style
11431
11456
  * @see https://eslint.style/rules/js/linebreak-style
@@ -11456,6 +11481,11 @@ interface StylisticRuleOptions {
11456
11481
  * @see https://eslint.style/rules/ts/member-delimiter-style
11457
11482
  */
11458
11483
  "@stylistic/member-delimiter-style"?: Linter.RuleEntry<StylisticMemberDelimiterStyle>;
11484
+ /**
11485
+ * Enforce a particular style for multiline comments
11486
+ * @see https://eslint.style/rules/js/multiline-comment-style
11487
+ */
11488
+ "@stylistic/multiline-comment-style"?: Linter.RuleEntry<StylisticMultilineCommentStyle>;
11459
11489
  /**
11460
11490
  * Enforce newlines between operands of ternary expressions
11461
11491
  * @see https://eslint.style/rules/js/multiline-ternary
@@ -12492,6 +12522,18 @@ type StylisticKeywordSpacing =
12492
12522
  };
12493
12523
  },
12494
12524
  ];
12525
+ // ----- @stylistic/line-comment-position -----
12526
+ type StylisticLineCommentPosition =
12527
+ | []
12528
+ | [
12529
+ | ("above" | "beside")
12530
+ | {
12531
+ position?: "above" | "beside";
12532
+ ignorePattern?: string;
12533
+ applyDefaultPatterns?: boolean;
12534
+ applyDefaultIgnorePatterns?: boolean;
12535
+ },
12536
+ ];
12495
12537
  // ----- @stylistic/linebreak-style -----
12496
12538
  type StylisticLinebreakStyle = [] | ["unix" | "windows"];
12497
12539
  // ----- @stylistic/lines-around-comment -----
@@ -12699,6 +12741,18 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
12699
12741
  requireLast?: boolean;
12700
12742
  };
12701
12743
  }
12744
+ // ----- @stylistic/multiline-comment-style -----
12745
+ type StylisticMultilineCommentStyle =
12746
+ | []
12747
+ | ["starred-block" | "bare-block"]
12748
+ | []
12749
+ | ["separate-lines"]
12750
+ | [
12751
+ "separate-lines",
12752
+ {
12753
+ checkJSDoc?: boolean;
12754
+ },
12755
+ ];
12702
12756
  // ----- @stylistic/multiline-ternary -----
12703
12757
  type StylisticMultilineTernary =
12704
12758
  | []
@@ -19583,652 +19637,677 @@ type ImportPreferDefaultExport =
19583
19637
  interface UnicornRuleOptions {
19584
19638
  /**
19585
19639
  * Improve regexes by making them shorter, consistent, and safer.
19586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/better-regex.md
19640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
19587
19641
  */
19588
19642
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
19589
19643
  /**
19590
19644
  * Enforce a specific parameter name in catch clauses.
19591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/catch-error-name.md
19645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
19592
19646
  */
19593
19647
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
19594
19648
  /**
19595
19649
  * Use destructured variables over properties.
19596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-destructuring.md
19650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
19597
19651
  */
19598
19652
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
19653
+ /**
19654
+ * Prefer consistent types when spreading a ternary in an array literal.
19655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-empty-array-spread.md
19656
+ */
19657
+ "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
19599
19658
  /**
19600
19659
  * Move function definitions to the highest possible scope.
19601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-function-scoping.md
19660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
19602
19661
  */
19603
19662
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
19604
19663
  /**
19605
19664
  * Enforce correct `Error` subclassing.
19606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/custom-error-definition.md
19665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
19607
19666
  */
19608
19667
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
19609
19668
  /**
19610
19669
  * Enforce no spaces between braces.
19611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/empty-brace-spaces.md
19670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
19612
19671
  */
19613
19672
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
19614
19673
  /**
19615
19674
  * Enforce passing a `message` value when creating a built-in error.
19616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/error-message.md
19675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
19617
19676
  */
19618
19677
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
19619
19678
  /**
19620
19679
  * Require escape sequences to use uppercase values.
19621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/escape-case.md
19680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
19622
19681
  */
19623
19682
  "unicorn/escape-case"?: Linter.RuleEntry<[]>;
19624
19683
  /**
19625
19684
  * Add expiration conditions to TODO comments.
19626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/expiring-todo-comments.md
19685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
19627
19686
  */
19628
19687
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
19629
19688
  /**
19630
19689
  * Enforce explicitly comparing the `length` or `size` property of a value.
19631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/explicit-length-check.md
19690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
19632
19691
  */
19633
19692
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
19634
19693
  /**
19635
19694
  * Enforce a case style for filenames.
19636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/filename-case.md
19695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
19637
19696
  */
19638
19697
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
19639
19698
  /**
19640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#import-index
19699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
19641
19700
  * @deprecated
19642
19701
  */
19643
19702
  "unicorn/import-index"?: Linter.RuleEntry<[]>;
19644
19703
  /**
19645
19704
  * Enforce specific import styles per module.
19646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/import-style.md
19705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
19647
19706
  */
19648
19707
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
19649
19708
  /**
19650
19709
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
19651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/new-for-builtins.md
19710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
19652
19711
  */
19653
19712
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
19654
19713
  /**
19655
19714
  * Enforce specifying rules to disable in `eslint-disable` comments.
19656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-abusive-eslint-disable.md
19715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
19657
19716
  */
19658
19717
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
19659
19718
  /**
19660
19719
  * Disallow anonymous functions and classes as the default export.
19661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-anonymous-default-export.md
19720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
19662
19721
  */
19663
19722
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
19664
19723
  /**
19665
19724
  * Prevent passing a function reference directly to iterator methods.
19666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-callback-reference.md
19725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
19667
19726
  */
19668
19727
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
19669
19728
  /**
19670
19729
  * Prefer `for…of` over the `forEach` method.
19671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-for-each.md
19730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
19672
19731
  */
19673
19732
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
19674
19733
  /**
19675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-array-instanceof
19734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
19676
19735
  * @deprecated
19677
19736
  */
19678
19737
  "unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
19679
19738
  /**
19680
19739
  * Disallow using the `this` argument in array methods.
19681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-method-this-argument.md
19740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
19682
19741
  */
19683
19742
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
19684
19743
  /**
19685
19744
  * Enforce combining multiple `Array#push()` into one call.
19686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-push-push.md
19745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
19687
19746
  */
19688
19747
  "unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
19689
19748
  /**
19690
19749
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
19691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-reduce.md
19750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
19692
19751
  */
19693
19752
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
19694
19753
  /**
19695
19754
  * Disallow member access from await expression.
19696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-expression-member.md
19755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
19697
19756
  */
19698
19757
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
19699
19758
  /**
19700
19759
  * Disallow using `await` in `Promise` method parameters.
19701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-in-promise-methods.md
19760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
19702
19761
  */
19703
19762
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
19704
19763
  /**
19705
19764
  * Do not use leading/trailing space between `console.log` parameters.
19706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-console-spaces.md
19765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
19707
19766
  */
19708
19767
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
19709
19768
  /**
19710
19769
  * Do not use `document.cookie` directly.
19711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-document-cookie.md
19770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
19712
19771
  */
19713
19772
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
19714
19773
  /**
19715
19774
  * Disallow empty files.
19716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-empty-file.md
19775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
19717
19776
  */
19718
19777
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
19719
19778
  /**
19720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
19779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
19721
19780
  * @deprecated
19722
19781
  */
19723
19782
  "unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
19724
19783
  /**
19725
19784
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
19726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-for-loop.md
19785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
19727
19786
  */
19728
19787
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
19729
19788
  /**
19730
19789
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
19731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-hex-escape.md
19790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
19732
19791
  */
19733
19792
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
19734
19793
  /**
19735
19794
  * Require `Array.isArray()` instead of `instanceof Array`.
19736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-instanceof-array.md
19795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
19737
19796
  */
19738
19797
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
19798
+ /**
19799
+ * Disallow invalid options in `fetch()` and `new Request()`.
19800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-fetch-options.md
19801
+ */
19802
+ "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
19739
19803
  /**
19740
19804
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
19741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-invalid-remove-event-listener.md
19805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
19742
19806
  */
19743
19807
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
19744
19808
  /**
19745
19809
  * Disallow identifiers starting with `new` or `class`.
19746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-keyword-prefix.md
19810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
19747
19811
  */
19748
19812
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
19749
19813
  /**
19750
19814
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
19751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-lonely-if.md
19815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
19752
19816
  */
19753
19817
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
19818
+ /**
19819
+ * Disallow a magic number as the `depth` argument in `Array#flat(…).`
19820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-magic-array-flat-depth.md
19821
+ */
19822
+ "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
19754
19823
  /**
19755
19824
  * Disallow negated conditions.
19756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-negated-condition.md
19825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
19757
19826
  */
19758
19827
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
19759
19828
  /**
19760
19829
  * Disallow nested ternary expressions.
19761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-nested-ternary.md
19830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
19762
19831
  */
19763
19832
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
19764
19833
  /**
19765
19834
  * Disallow `new Array()`.
19766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-array.md
19835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
19767
19836
  */
19768
19837
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
19769
19838
  /**
19770
19839
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
19771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-buffer.md
19840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
19772
19841
  */
19773
19842
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
19774
19843
  /**
19775
19844
  * Disallow the use of the `null` literal.
19776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-null.md
19845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
19777
19846
  */
19778
19847
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
19779
19848
  /**
19780
19849
  * Disallow the use of objects as default parameters.
19781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-object-as-default-parameter.md
19850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
19782
19851
  */
19783
19852
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
19784
19853
  /**
19785
19854
  * Disallow `process.exit()`.
19786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-process-exit.md
19855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
19787
19856
  */
19788
19857
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
19789
19858
  /**
19790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-reduce
19859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
19791
19860
  * @deprecated
19792
19861
  */
19793
19862
  "unicorn/no-reduce"?: Linter.RuleEntry<[]>;
19794
19863
  /**
19795
19864
  * Disallow passing single-element arrays to `Promise` methods.
19796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-single-promise-in-promise-methods.md
19865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
19797
19866
  */
19798
19867
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
19799
19868
  /**
19800
19869
  * Disallow classes that only have static members.
19801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-static-only-class.md
19870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
19802
19871
  */
19803
19872
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
19804
19873
  /**
19805
19874
  * Disallow `then` property.
19806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-thenable.md
19875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
19807
19876
  */
19808
19877
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
19809
19878
  /**
19810
19879
  * Disallow assigning `this` to a variable.
19811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-this-assignment.md
19880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
19812
19881
  */
19813
19882
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
19814
19883
  /**
19815
19884
  * Disallow comparing `undefined` using `typeof`.
19816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-typeof-undefined.md
19885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
19817
19886
  */
19818
19887
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
19819
19888
  /**
19820
19889
  * Disallow awaiting non-promise values.
19821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-await.md
19890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
19822
19891
  */
19823
19892
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
19824
19893
  /**
19825
19894
  * Enforce the use of built-in methods instead of unnecessary polyfills.
19826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-polyfills.md
19895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
19827
19896
  */
19828
19897
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
19829
19898
  /**
19830
19899
  * Disallow unreadable array destructuring.
19831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-array-destructuring.md
19900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
19832
19901
  */
19833
19902
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
19834
19903
  /**
19835
19904
  * Disallow unreadable IIFEs.
19836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-iife.md
19905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
19837
19906
  */
19838
19907
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
19839
19908
  /**
19840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-unsafe-regex
19909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
19841
19910
  * @deprecated
19842
19911
  */
19843
19912
  "unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
19844
19913
  /**
19845
19914
  * Disallow unused object properties.
19846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unused-properties.md
19915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
19847
19916
  */
19848
19917
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
19849
19918
  /**
19850
19919
  * Disallow useless fallback when spreading in object literals.
19851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-fallback-in-spread.md
19920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
19852
19921
  */
19853
19922
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
19854
19923
  /**
19855
19924
  * Disallow useless array length check.
19856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-length-check.md
19925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
19857
19926
  */
19858
19927
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
19859
19928
  /**
19860
19929
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
19861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-promise-resolve-reject.md
19930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
19862
19931
  */
19863
19932
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
19864
19933
  /**
19865
19934
  * Disallow unnecessary spread.
19866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-spread.md
19935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
19867
19936
  */
19868
19937
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
19869
19938
  /**
19870
19939
  * Disallow useless case in switch statements.
19871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-switch-case.md
19940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
19872
19941
  */
19873
19942
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
19874
19943
  /**
19875
19944
  * Disallow useless `undefined`.
19876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-undefined.md
19945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
19877
19946
  */
19878
19947
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
19879
19948
  /**
19880
19949
  * Disallow number literals with zero fractions or dangling dots.
19881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-zero-fractions.md
19950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
19882
19951
  */
19883
19952
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
19884
19953
  /**
19885
19954
  * Enforce proper case for numeric literals.
19886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/number-literal-case.md
19955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
19887
19956
  */
19888
19957
  "unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
19889
19958
  /**
19890
19959
  * Enforce the style of numeric separators by correctly grouping digits.
19891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/numeric-separators-style.md
19960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
19892
19961
  */
19893
19962
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
19894
19963
  /**
19895
19964
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
19896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-add-event-listener.md
19965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
19897
19966
  */
19898
19967
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
19899
19968
  /**
19900
19969
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
19901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-find.md
19970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
19902
19971
  */
19903
19972
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
19904
19973
  /**
19905
19974
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
19906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat.md
19975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
19907
19976
  */
19908
19977
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
19909
19978
  /**
19910
19979
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
19911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat-map.md
19980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
19912
19981
  */
19913
19982
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
19914
19983
  /**
19915
19984
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
19916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-index-of.md
19985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
19917
19986
  */
19918
19987
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
19919
19988
  /**
19920
19989
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
19921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-some.md
19990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
19922
19991
  */
19923
19992
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
19924
19993
  /**
19925
19994
  * Prefer `.at()` method for index access and `String#charAt()`.
19926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-at.md
19995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
19927
19996
  */
19928
19997
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
19929
19998
  /**
19930
19999
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
19931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-blob-reading-methods.md
20000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
19932
20001
  */
19933
20002
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
19934
20003
  /**
19935
20004
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
19936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-code-point.md
20005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
19937
20006
  */
19938
20007
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
19939
20008
  /**
19940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-dataset
20009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
19941
20010
  * @deprecated
19942
20011
  */
19943
20012
  "unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
19944
20013
  /**
19945
20014
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
19946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-date-now.md
20015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
19947
20016
  */
19948
20017
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
19949
20018
  /**
19950
20019
  * Prefer default parameters over reassignment.
19951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-default-parameters.md
20020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
19952
20021
  */
19953
20022
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
19954
20023
  /**
19955
20024
  * Prefer `Node#append()` over `Node#appendChild()`.
19956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-append.md
20025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
19957
20026
  */
19958
20027
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
19959
20028
  /**
19960
20029
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
19961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-dataset.md
20030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
19962
20031
  */
19963
20032
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
19964
20033
  /**
19965
20034
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
19966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-remove.md
20035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
19967
20036
  */
19968
20037
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
19969
20038
  /**
19970
20039
  * Prefer `.textContent` over `.innerText`.
19971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-text-content.md
20040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
19972
20041
  */
19973
20042
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
19974
20043
  /**
19975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-event-key
20044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
19976
20045
  * @deprecated
19977
20046
  */
19978
20047
  "unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
19979
20048
  /**
19980
20049
  * Prefer `EventTarget` over `EventEmitter`.
19981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-event-target.md
20050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
19982
20051
  */
19983
20052
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
19984
20053
  /**
19985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
20054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
19986
20055
  * @deprecated
19987
20056
  */
19988
20057
  "unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
19989
20058
  /**
19990
20059
  * Prefer `export…from` when re-exporting.
19991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-export-from.md
20060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
19992
20061
  */
19993
20062
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
19994
20063
  /**
19995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-flat-map
20064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
19996
20065
  * @deprecated
19997
20066
  */
19998
20067
  "unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
19999
20068
  /**
20000
20069
  * Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
20001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-includes.md
20070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
20002
20071
  */
20003
20072
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
20004
20073
  /**
20005
20074
  * Prefer reading a JSON file as a buffer.
20006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-json-parse-buffer.md
20075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
20007
20076
  */
20008
20077
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
20009
20078
  /**
20010
20079
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
20011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-keyboard-event-key.md
20080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
20012
20081
  */
20013
20082
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
20014
20083
  /**
20015
20084
  * Prefer using a logical operator over a ternary.
20016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-logical-operator-over-ternary.md
20085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
20017
20086
  */
20018
20087
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
20019
20088
  /**
20020
20089
  * Enforce the use of `Math.trunc` instead of bitwise operators.
20021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-math-trunc.md
20090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
20022
20091
  */
20023
20092
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
20024
20093
  /**
20025
20094
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
20026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-dom-apis.md
20095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
20027
20096
  */
20028
20097
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
20029
20098
  /**
20030
20099
  * Prefer modern `Math` APIs over legacy patterns.
20031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-math-apis.md
20100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
20032
20101
  */
20033
20102
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
20034
20103
  /**
20035
20104
  * Prefer JavaScript modules (ESM) over CommonJS.
20036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-module.md
20105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
20037
20106
  */
20038
20107
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
20039
20108
  /**
20040
20109
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
20041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-native-coercion-functions.md
20110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
20042
20111
  */
20043
20112
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
20044
20113
  /**
20045
20114
  * Prefer negative index over `.length - index` when possible.
20046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-negative-index.md
20115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
20047
20116
  */
20048
20117
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
20049
20118
  /**
20050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-append
20119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
20051
20120
  * @deprecated
20052
20121
  */
20053
20122
  "unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
20054
20123
  /**
20055
20124
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
20056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-node-protocol.md
20125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
20057
20126
  */
20058
20127
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
20059
20128
  /**
20060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-remove
20129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
20061
20130
  * @deprecated
20062
20131
  */
20063
20132
  "unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
20064
20133
  /**
20065
20134
  * Prefer `Number` static properties over global ones.
20066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-number-properties.md
20135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
20067
20136
  */
20068
20137
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
20069
20138
  /**
20070
20139
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
20071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-object-from-entries.md
20140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
20072
20141
  */
20073
20142
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
20074
20143
  /**
20075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-object-has-own
20144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
20076
20145
  * @deprecated
20077
20146
  */
20078
20147
  "unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
20079
20148
  /**
20080
20149
  * Prefer omitting the `catch` binding parameter.
20081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-optional-catch-binding.md
20150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
20082
20151
  */
20083
20152
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
20084
20153
  /**
20085
20154
  * Prefer borrowing methods from the prototype instead of the instance.
20086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-prototype-methods.md
20155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
20087
20156
  */
20088
20157
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
20089
20158
  /**
20090
20159
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
20091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-query-selector.md
20160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
20092
20161
  */
20093
20162
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
20094
20163
  /**
20095
20164
  * Prefer `Reflect.apply()` over `Function#apply()`.
20096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-reflect-apply.md
20165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
20097
20166
  */
20098
20167
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
20099
20168
  /**
20100
20169
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
20101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-regexp-test.md
20170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
20102
20171
  */
20103
20172
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
20104
20173
  /**
20105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-replace-all
20174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
20106
20175
  * @deprecated
20107
20176
  */
20108
20177
  "unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
20109
20178
  /**
20110
20179
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
20111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-has.md
20180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
20112
20181
  */
20113
20182
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
20114
20183
  /**
20115
20184
  * Prefer using `Set#size` instead of `Array#length`.
20116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-size.md
20185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
20117
20186
  */
20118
20187
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
20119
20188
  /**
20120
20189
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
20121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-spread.md
20190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
20122
20191
  */
20123
20192
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
20124
20193
  /**
20125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
20194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
20126
20195
  * @deprecated
20127
20196
  */
20128
20197
  "unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
20198
+ /**
20199
+ * Prefer using the `String.raw` tag to avoid escaping `\`.
20200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-raw.md
20201
+ */
20202
+ "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
20129
20203
  /**
20130
20204
  * Prefer `String#replaceAll()` over regex searches with the global flag.
20131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-replace-all.md
20205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
20132
20206
  */
20133
20207
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
20134
20208
  /**
20135
20209
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
20136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-slice.md
20210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
20137
20211
  */
20138
20212
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
20139
20213
  /**
20140
20214
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
20141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-starts-ends-with.md
20215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
20142
20216
  */
20143
20217
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
20144
20218
  /**
20145
20219
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
20146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-trim-start-end.md
20220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
20147
20221
  */
20148
20222
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
20223
+ /**
20224
+ * Prefer using `structuredClone` to create a deep clone.
20225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-structured-clone.md
20226
+ */
20227
+ "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
20149
20228
  /**
20150
20229
  * Prefer `switch` over multiple `else-if`.
20151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-switch.md
20230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
20152
20231
  */
20153
20232
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
20154
20233
  /**
20155
20234
  * Prefer ternary expressions over simple `if-else` statements.
20156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-ternary.md
20235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
20157
20236
  */
20158
20237
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
20159
20238
  /**
20160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-text-content
20239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
20161
20240
  * @deprecated
20162
20241
  */
20163
20242
  "unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
20164
20243
  /**
20165
20244
  * Prefer top-level await over top-level promises and async function calls.
20166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-top-level-await.md
20245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
20167
20246
  */
20168
20247
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
20169
20248
  /**
20170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-trim-start-end
20249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
20171
20250
  * @deprecated
20172
20251
  */
20173
20252
  "unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
20174
20253
  /**
20175
20254
  * Enforce throwing `TypeError` in type checking conditions.
20176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-type-error.md
20255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
20177
20256
  */
20178
20257
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
20179
20258
  /**
20180
20259
  * Prevent abbreviations.
20181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prevent-abbreviations.md
20260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
20182
20261
  */
20183
20262
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
20184
20263
  /**
20185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#regex-shorthand
20264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
20186
20265
  * @deprecated
20187
20266
  */
20188
20267
  "unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
20189
20268
  /**
20190
20269
  * Enforce consistent relative URL style.
20191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/relative-url-style.md
20270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
20192
20271
  */
20193
20272
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
20194
20273
  /**
20195
20274
  * Enforce using the separator argument with `Array#join()`.
20196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-array-join-separator.md
20275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
20197
20276
  */
20198
20277
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
20199
20278
  /**
20200
20279
  * Enforce using the digits argument with `Number#toFixed()`.
20201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-number-to-fixed-digits-argument.md
20280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
20202
20281
  */
20203
20282
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
20204
20283
  /**
20205
20284
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
20206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-post-message-target-origin.md
20285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
20207
20286
  */
20208
20287
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
20209
20288
  /**
20210
20289
  * Enforce better string content.
20211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/string-content.md
20290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
20212
20291
  */
20213
20292
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
20214
20293
  /**
20215
20294
  * Enforce consistent brace style for `case` clauses.
20216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/switch-case-braces.md
20295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
20217
20296
  */
20218
20297
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
20219
20298
  /**
20220
20299
  * Fix whitespace-insensitive template indentation.
20221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/template-indent.md
20300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
20222
20301
  */
20223
20302
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
20224
20303
  /**
20225
20304
  * Enforce consistent case for text encoding identifiers.
20226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/text-encoding-identifier-case.md
20305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
20227
20306
  */
20228
20307
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
20229
20308
  /**
20230
- * Require `new` when throwing an error.
20231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/throw-new-error.md
20309
+ * Require `new` when creating an error.
20310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/throw-new-error.md
20232
20311
  */
20233
20312
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
20234
20313
  }
@@ -20460,6 +20539,7 @@ type UnicornPreferNumberProperties =
20460
20539
  | [
20461
20540
  {
20462
20541
  checkInfinity?: boolean;
20542
+ checkNaN?: boolean;
20463
20543
  },
20464
20544
  ];
20465
20545
  // ----- unicorn/prefer-object-from-entries -----
@@ -20470,6 +20550,14 @@ type UnicornPreferObjectFromEntries =
20470
20550
  functions?: unknown[];
20471
20551
  },
20472
20552
  ];
20553
+ // ----- unicorn/prefer-structured-clone -----
20554
+ type UnicornPreferStructuredClone =
20555
+ | []
20556
+ | [
20557
+ {
20558
+ functions?: unknown[];
20559
+ },
20560
+ ];
20473
20561
  // ----- unicorn/prefer-switch -----
20474
20562
  type UnicornPreferSwitch =
20475
20563
  | []