@jsse/eslint-config 0.1.12 → 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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +29 -11
- package/dist/index.d.cts +338 -240
- package/dist/index.d.ts +338 -240
- package/dist/index.js +29 -11
- package/package.json +26 -26
package/dist/index.d.ts
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
|
-
| "
|
|
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
|
-
| "
|
|
8222
|
-
| "
|
|
8223
|
-
| "
|
|
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"
|
|
@@ -11351,6 +11371,11 @@ interface StylisticRuleOptions {
|
|
|
11351
11371
|
* @see https://eslint.style/rules/jsx/jsx-first-prop-new-line
|
|
11352
11372
|
*/
|
|
11353
11373
|
"@stylistic/jsx-first-prop-new-line"?: Linter.RuleEntry<StylisticJsxFirstPropNewLine>;
|
|
11374
|
+
/**
|
|
11375
|
+
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
11376
|
+
* @see https://eslint.style/rules/jsx/jsx-function-call-newline
|
|
11377
|
+
*/
|
|
11378
|
+
"@stylistic/jsx-function-call-newline"?: Linter.RuleEntry<StylisticJsxFunctionCallNewline>;
|
|
11354
11379
|
/**
|
|
11355
11380
|
* Enforce JSX indentation
|
|
11356
11381
|
* @see https://eslint.style/rules/jsx/jsx-indent
|
|
@@ -11421,6 +11446,11 @@ interface StylisticRuleOptions {
|
|
|
11421
11446
|
* @see https://eslint.style/rules/ts/keyword-spacing
|
|
11422
11447
|
*/
|
|
11423
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>;
|
|
11424
11454
|
/**
|
|
11425
11455
|
* Enforce consistent linebreak style
|
|
11426
11456
|
* @see https://eslint.style/rules/js/linebreak-style
|
|
@@ -11451,6 +11481,11 @@ interface StylisticRuleOptions {
|
|
|
11451
11481
|
* @see https://eslint.style/rules/ts/member-delimiter-style
|
|
11452
11482
|
*/
|
|
11453
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>;
|
|
11454
11489
|
/**
|
|
11455
11490
|
* Enforce newlines between operands of ternary expressions
|
|
11456
11491
|
* @see https://eslint.style/rules/js/multiline-ternary
|
|
@@ -12003,6 +12038,8 @@ type StylisticJsxEqualsSpacing = [] | ["always" | "never"];
|
|
|
12003
12038
|
type StylisticJsxFirstPropNewLine =
|
|
12004
12039
|
| []
|
|
12005
12040
|
| ["always" | "never" | "multiline" | "multiline-multiprop" | "multiprop"];
|
|
12041
|
+
// ----- @stylistic/jsx-function-call-newline -----
|
|
12042
|
+
type StylisticJsxFunctionCallNewline = [] | ["always" | "multiline"];
|
|
12006
12043
|
// ----- @stylistic/jsx-indent -----
|
|
12007
12044
|
type StylisticJsxIndent =
|
|
12008
12045
|
| []
|
|
@@ -12056,7 +12093,7 @@ type StylisticJsxOneExpressionPerLine =
|
|
|
12056
12093
|
| []
|
|
12057
12094
|
| [
|
|
12058
12095
|
{
|
|
12059
|
-
allow?: "none" | "literal" | "single-child";
|
|
12096
|
+
allow?: "none" | "literal" | "single-child" | "single-line";
|
|
12060
12097
|
},
|
|
12061
12098
|
];
|
|
12062
12099
|
// ----- @stylistic/jsx-pascal-case -----
|
|
@@ -12137,6 +12174,9 @@ type StylisticJsxWrapMultilines =
|
|
|
12137
12174
|
prop?:
|
|
12138
12175
|
| (true | false | "ignore" | "parens" | "parens-new-line")
|
|
12139
12176
|
| (true | false | "ignore" | "parens" | "parens-new-line");
|
|
12177
|
+
propertyValue?:
|
|
12178
|
+
| (true | false | "ignore" | "parens" | "parens-new-line")
|
|
12179
|
+
| (true | false | "ignore" | "parens" | "parens-new-line");
|
|
12140
12180
|
},
|
|
12141
12181
|
];
|
|
12142
12182
|
// ----- @stylistic/key-spacing -----
|
|
@@ -12482,6 +12522,18 @@ type StylisticKeywordSpacing =
|
|
|
12482
12522
|
};
|
|
12483
12523
|
},
|
|
12484
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
|
+
];
|
|
12485
12537
|
// ----- @stylistic/linebreak-style -----
|
|
12486
12538
|
type StylisticLinebreakStyle = [] | ["unix" | "windows"];
|
|
12487
12539
|
// ----- @stylistic/lines-around-comment -----
|
|
@@ -12689,6 +12741,18 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
|
|
|
12689
12741
|
requireLast?: boolean;
|
|
12690
12742
|
};
|
|
12691
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
|
+
];
|
|
12692
12756
|
// ----- @stylistic/multiline-ternary -----
|
|
12693
12757
|
type StylisticMultilineTernary =
|
|
12694
12758
|
| []
|
|
@@ -19573,652 +19637,677 @@ type ImportPreferDefaultExport =
|
|
|
19573
19637
|
interface UnicornRuleOptions {
|
|
19574
19638
|
/**
|
|
19575
19639
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
19576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
|
|
19577
19641
|
*/
|
|
19578
19642
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
19579
19643
|
/**
|
|
19580
19644
|
* Enforce a specific parameter name in catch clauses.
|
|
19581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
|
|
19582
19646
|
*/
|
|
19583
19647
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
19584
19648
|
/**
|
|
19585
19649
|
* Use destructured variables over properties.
|
|
19586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
|
|
19587
19651
|
*/
|
|
19588
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<[]>;
|
|
19589
19658
|
/**
|
|
19590
19659
|
* Move function definitions to the highest possible scope.
|
|
19591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
|
|
19592
19661
|
*/
|
|
19593
19662
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
19594
19663
|
/**
|
|
19595
19664
|
* Enforce correct `Error` subclassing.
|
|
19596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
|
|
19597
19666
|
*/
|
|
19598
19667
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
19599
19668
|
/**
|
|
19600
19669
|
* Enforce no spaces between braces.
|
|
19601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
|
|
19602
19671
|
*/
|
|
19603
19672
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
19604
19673
|
/**
|
|
19605
19674
|
* Enforce passing a `message` value when creating a built-in error.
|
|
19606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
|
|
19607
19676
|
*/
|
|
19608
19677
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
19609
19678
|
/**
|
|
19610
19679
|
* Require escape sequences to use uppercase values.
|
|
19611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
|
|
19612
19681
|
*/
|
|
19613
19682
|
"unicorn/escape-case"?: Linter.RuleEntry<[]>;
|
|
19614
19683
|
/**
|
|
19615
19684
|
* Add expiration conditions to TODO comments.
|
|
19616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
|
|
19617
19686
|
*/
|
|
19618
19687
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
19619
19688
|
/**
|
|
19620
19689
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
19621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
|
|
19622
19691
|
*/
|
|
19623
19692
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
19624
19693
|
/**
|
|
19625
19694
|
* Enforce a case style for filenames.
|
|
19626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
|
|
19627
19696
|
*/
|
|
19628
19697
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
19629
19698
|
/**
|
|
19630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
|
|
19631
19700
|
* @deprecated
|
|
19632
19701
|
*/
|
|
19633
19702
|
"unicorn/import-index"?: Linter.RuleEntry<[]>;
|
|
19634
19703
|
/**
|
|
19635
19704
|
* Enforce specific import styles per module.
|
|
19636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
|
|
19637
19706
|
*/
|
|
19638
19707
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
19639
19708
|
/**
|
|
19640
19709
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
19641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
|
|
19642
19711
|
*/
|
|
19643
19712
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
19644
19713
|
/**
|
|
19645
19714
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
19646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
19647
19716
|
*/
|
|
19648
19717
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
19649
19718
|
/**
|
|
19650
19719
|
* Disallow anonymous functions and classes as the default export.
|
|
19651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
|
|
19652
19721
|
*/
|
|
19653
19722
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
19654
19723
|
/**
|
|
19655
19724
|
* Prevent passing a function reference directly to iterator methods.
|
|
19656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
|
|
19657
19726
|
*/
|
|
19658
19727
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
19659
19728
|
/**
|
|
19660
19729
|
* Prefer `for…of` over the `forEach` method.
|
|
19661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
|
|
19662
19731
|
*/
|
|
19663
19732
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
19664
19733
|
/**
|
|
19665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
19666
19735
|
* @deprecated
|
|
19667
19736
|
*/
|
|
19668
19737
|
"unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
|
|
19669
19738
|
/**
|
|
19670
19739
|
* Disallow using the `this` argument in array methods.
|
|
19671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
|
|
19672
19741
|
*/
|
|
19673
19742
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
19674
19743
|
/**
|
|
19675
19744
|
* Enforce combining multiple `Array#push()` into one call.
|
|
19676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
|
|
19677
19746
|
*/
|
|
19678
19747
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
19679
19748
|
/**
|
|
19680
19749
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
19681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
|
|
19682
19751
|
*/
|
|
19683
19752
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
19684
19753
|
/**
|
|
19685
19754
|
* Disallow member access from await expression.
|
|
19686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
|
|
19687
19756
|
*/
|
|
19688
19757
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
19689
19758
|
/**
|
|
19690
19759
|
* Disallow using `await` in `Promise` method parameters.
|
|
19691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
|
|
19692
19761
|
*/
|
|
19693
19762
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
19694
19763
|
/**
|
|
19695
19764
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
19696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
|
|
19697
19766
|
*/
|
|
19698
19767
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
19699
19768
|
/**
|
|
19700
19769
|
* Do not use `document.cookie` directly.
|
|
19701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
|
|
19702
19771
|
*/
|
|
19703
19772
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
19704
19773
|
/**
|
|
19705
19774
|
* Disallow empty files.
|
|
19706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
|
|
19707
19776
|
*/
|
|
19708
19777
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
19709
19778
|
/**
|
|
19710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
19711
19780
|
* @deprecated
|
|
19712
19781
|
*/
|
|
19713
19782
|
"unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
|
|
19714
19783
|
/**
|
|
19715
19784
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
19716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
|
|
19717
19786
|
*/
|
|
19718
19787
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
19719
19788
|
/**
|
|
19720
19789
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
19721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19790
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
|
|
19722
19791
|
*/
|
|
19723
19792
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
19724
19793
|
/**
|
|
19725
19794
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
19726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19795
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
|
|
19727
19796
|
*/
|
|
19728
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<[]>;
|
|
19729
19803
|
/**
|
|
19730
19804
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
19731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19805
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
19732
19806
|
*/
|
|
19733
19807
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
19734
19808
|
/**
|
|
19735
19809
|
* Disallow identifiers starting with `new` or `class`.
|
|
19736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19810
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
|
|
19737
19811
|
*/
|
|
19738
19812
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
19739
19813
|
/**
|
|
19740
19814
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
19741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19815
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
|
|
19742
19816
|
*/
|
|
19743
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<[]>;
|
|
19744
19823
|
/**
|
|
19745
19824
|
* Disallow negated conditions.
|
|
19746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19825
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
|
|
19747
19826
|
*/
|
|
19748
19827
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
19749
19828
|
/**
|
|
19750
19829
|
* Disallow nested ternary expressions.
|
|
19751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19830
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
|
|
19752
19831
|
*/
|
|
19753
19832
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
19754
19833
|
/**
|
|
19755
19834
|
* Disallow `new Array()`.
|
|
19756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19835
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
|
|
19757
19836
|
*/
|
|
19758
19837
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
19759
19838
|
/**
|
|
19760
19839
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
19761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19840
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
|
|
19762
19841
|
*/
|
|
19763
19842
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
19764
19843
|
/**
|
|
19765
19844
|
* Disallow the use of the `null` literal.
|
|
19766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19845
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
|
|
19767
19846
|
*/
|
|
19768
19847
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
19769
19848
|
/**
|
|
19770
19849
|
* Disallow the use of objects as default parameters.
|
|
19771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19850
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
|
|
19772
19851
|
*/
|
|
19773
19852
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
19774
19853
|
/**
|
|
19775
19854
|
* Disallow `process.exit()`.
|
|
19776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19855
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
|
|
19777
19856
|
*/
|
|
19778
19857
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
19779
19858
|
/**
|
|
19780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
|
|
19781
19860
|
* @deprecated
|
|
19782
19861
|
*/
|
|
19783
19862
|
"unicorn/no-reduce"?: Linter.RuleEntry<[]>;
|
|
19784
19863
|
/**
|
|
19785
19864
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
19786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
19787
19866
|
*/
|
|
19788
19867
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
19789
19868
|
/**
|
|
19790
19869
|
* Disallow classes that only have static members.
|
|
19791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
|
|
19792
19871
|
*/
|
|
19793
19872
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
19794
19873
|
/**
|
|
19795
19874
|
* Disallow `then` property.
|
|
19796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
|
|
19797
19876
|
*/
|
|
19798
19877
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
19799
19878
|
/**
|
|
19800
19879
|
* Disallow assigning `this` to a variable.
|
|
19801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
|
|
19802
19881
|
*/
|
|
19803
19882
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
19804
19883
|
/**
|
|
19805
19884
|
* Disallow comparing `undefined` using `typeof`.
|
|
19806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
|
|
19807
19886
|
*/
|
|
19808
19887
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
19809
19888
|
/**
|
|
19810
19889
|
* Disallow awaiting non-promise values.
|
|
19811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
|
|
19812
19891
|
*/
|
|
19813
19892
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
19814
19893
|
/**
|
|
19815
19894
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
19816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
19817
19896
|
*/
|
|
19818
19897
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
19819
19898
|
/**
|
|
19820
19899
|
* Disallow unreadable array destructuring.
|
|
19821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
19822
19901
|
*/
|
|
19823
19902
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
19824
19903
|
/**
|
|
19825
19904
|
* Disallow unreadable IIFEs.
|
|
19826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
|
|
19827
19906
|
*/
|
|
19828
19907
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
19829
19908
|
/**
|
|
19830
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
19831
19910
|
* @deprecated
|
|
19832
19911
|
*/
|
|
19833
19912
|
"unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
|
|
19834
19913
|
/**
|
|
19835
19914
|
* Disallow unused object properties.
|
|
19836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
|
|
19837
19916
|
*/
|
|
19838
19917
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
19839
19918
|
/**
|
|
19840
19919
|
* Disallow useless fallback when spreading in object literals.
|
|
19841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
19842
19921
|
*/
|
|
19843
19922
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
19844
19923
|
/**
|
|
19845
19924
|
* Disallow useless array length check.
|
|
19846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
|
|
19847
19926
|
*/
|
|
19848
19927
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
19849
19928
|
/**
|
|
19850
19929
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
19851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19930
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
19852
19931
|
*/
|
|
19853
19932
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
19854
19933
|
/**
|
|
19855
19934
|
* Disallow unnecessary spread.
|
|
19856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19935
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
|
|
19857
19936
|
*/
|
|
19858
19937
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
19859
19938
|
/**
|
|
19860
19939
|
* Disallow useless case in switch statements.
|
|
19861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
|
|
19862
19941
|
*/
|
|
19863
19942
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
19864
19943
|
/**
|
|
19865
19944
|
* Disallow useless `undefined`.
|
|
19866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
|
|
19867
19946
|
*/
|
|
19868
19947
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
19869
19948
|
/**
|
|
19870
19949
|
* Disallow number literals with zero fractions or dangling dots.
|
|
19871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
|
|
19872
19951
|
*/
|
|
19873
19952
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
19874
19953
|
/**
|
|
19875
19954
|
* Enforce proper case for numeric literals.
|
|
19876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
|
|
19877
19956
|
*/
|
|
19878
19957
|
"unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
|
|
19879
19958
|
/**
|
|
19880
19959
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
19881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
|
|
19882
19961
|
*/
|
|
19883
19962
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
19884
19963
|
/**
|
|
19885
19964
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
19886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
|
|
19887
19966
|
*/
|
|
19888
19967
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
19889
19968
|
/**
|
|
19890
19969
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
19891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
|
|
19892
19971
|
*/
|
|
19893
19972
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
19894
19973
|
/**
|
|
19895
19974
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
19896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
|
|
19897
19976
|
*/
|
|
19898
19977
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
19899
19978
|
/**
|
|
19900
19979
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
19901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
|
|
19902
19981
|
*/
|
|
19903
19982
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
19904
19983
|
/**
|
|
19905
19984
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
19906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
|
|
19907
19986
|
*/
|
|
19908
19987
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
19909
19988
|
/**
|
|
19910
19989
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
19911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
|
|
19912
19991
|
*/
|
|
19913
19992
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
19914
19993
|
/**
|
|
19915
19994
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
19916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
|
|
19917
19996
|
*/
|
|
19918
19997
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
19919
19998
|
/**
|
|
19920
19999
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
19921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
19922
20001
|
*/
|
|
19923
20002
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
19924
20003
|
/**
|
|
19925
20004
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
19926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
|
|
19927
20006
|
*/
|
|
19928
20007
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
19929
20008
|
/**
|
|
19930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
19931
20010
|
* @deprecated
|
|
19932
20011
|
*/
|
|
19933
20012
|
"unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
|
|
19934
20013
|
/**
|
|
19935
20014
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
19936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
|
|
19937
20016
|
*/
|
|
19938
20017
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
19939
20018
|
/**
|
|
19940
20019
|
* Prefer default parameters over reassignment.
|
|
19941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
|
|
19942
20021
|
*/
|
|
19943
20022
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
19944
20023
|
/**
|
|
19945
20024
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
19946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
|
|
19947
20026
|
*/
|
|
19948
20027
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
19949
20028
|
/**
|
|
19950
20029
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
19951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
19952
20031
|
*/
|
|
19953
20032
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
19954
20033
|
/**
|
|
19955
20034
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
19956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
|
|
19957
20036
|
*/
|
|
19958
20037
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
19959
20038
|
/**
|
|
19960
20039
|
* Prefer `.textContent` over `.innerText`.
|
|
19961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
19962
20041
|
*/
|
|
19963
20042
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
19964
20043
|
/**
|
|
19965
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
19966
20045
|
* @deprecated
|
|
19967
20046
|
*/
|
|
19968
20047
|
"unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
|
|
19969
20048
|
/**
|
|
19970
20049
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
19971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
|
|
19972
20051
|
*/
|
|
19973
20052
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
19974
20053
|
/**
|
|
19975
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
19976
20055
|
* @deprecated
|
|
19977
20056
|
*/
|
|
19978
20057
|
"unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
|
|
19979
20058
|
/**
|
|
19980
20059
|
* Prefer `export…from` when re-exporting.
|
|
19981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
|
|
19982
20061
|
*/
|
|
19983
20062
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
19984
20063
|
/**
|
|
19985
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
19986
20065
|
* @deprecated
|
|
19987
20066
|
*/
|
|
19988
20067
|
"unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
|
|
19989
20068
|
/**
|
|
19990
20069
|
* Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
|
|
19991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
|
|
19992
20071
|
*/
|
|
19993
20072
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
19994
20073
|
/**
|
|
19995
20074
|
* Prefer reading a JSON file as a buffer.
|
|
19996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
19997
20076
|
*/
|
|
19998
20077
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
19999
20078
|
/**
|
|
20000
20079
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
20001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
20002
20081
|
*/
|
|
20003
20082
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
20004
20083
|
/**
|
|
20005
20084
|
* Prefer using a logical operator over a ternary.
|
|
20006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
20007
20086
|
*/
|
|
20008
20087
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
20009
20088
|
/**
|
|
20010
20089
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
20011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
|
|
20012
20091
|
*/
|
|
20013
20092
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
20014
20093
|
/**
|
|
20015
20094
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
20016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
20017
20096
|
*/
|
|
20018
20097
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
20019
20098
|
/**
|
|
20020
20099
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
20021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
|
|
20022
20101
|
*/
|
|
20023
20102
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
20024
20103
|
/**
|
|
20025
20104
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
20026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
|
|
20027
20106
|
*/
|
|
20028
20107
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
20029
20108
|
/**
|
|
20030
20109
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
20031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
20032
20111
|
*/
|
|
20033
20112
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
20034
20113
|
/**
|
|
20035
20114
|
* Prefer negative index over `.length - index` when possible.
|
|
20036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
|
|
20037
20116
|
*/
|
|
20038
20117
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
20039
20118
|
/**
|
|
20040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
20041
20120
|
* @deprecated
|
|
20042
20121
|
*/
|
|
20043
20122
|
"unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
|
|
20044
20123
|
/**
|
|
20045
20124
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
20046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
|
|
20047
20126
|
*/
|
|
20048
20127
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
20049
20128
|
/**
|
|
20050
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
20051
20130
|
* @deprecated
|
|
20052
20131
|
*/
|
|
20053
20132
|
"unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
|
|
20054
20133
|
/**
|
|
20055
20134
|
* Prefer `Number` static properties over global ones.
|
|
20056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
|
|
20057
20136
|
*/
|
|
20058
20137
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
20059
20138
|
/**
|
|
20060
20139
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
20061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
|
|
20062
20141
|
*/
|
|
20063
20142
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
20064
20143
|
/**
|
|
20065
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
20066
20145
|
* @deprecated
|
|
20067
20146
|
*/
|
|
20068
20147
|
"unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
|
|
20069
20148
|
/**
|
|
20070
20149
|
* Prefer omitting the `catch` binding parameter.
|
|
20071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
20072
20151
|
*/
|
|
20073
20152
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
20074
20153
|
/**
|
|
20075
20154
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
20076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
|
|
20077
20156
|
*/
|
|
20078
20157
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
20079
20158
|
/**
|
|
20080
20159
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
20081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
|
|
20082
20161
|
*/
|
|
20083
20162
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
20084
20163
|
/**
|
|
20085
20164
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
20086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
|
|
20087
20166
|
*/
|
|
20088
20167
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
20089
20168
|
/**
|
|
20090
20169
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
20091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
|
|
20092
20171
|
*/
|
|
20093
20172
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
20094
20173
|
/**
|
|
20095
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
20096
20175
|
* @deprecated
|
|
20097
20176
|
*/
|
|
20098
20177
|
"unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
|
|
20099
20178
|
/**
|
|
20100
20179
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
20101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
|
|
20102
20181
|
*/
|
|
20103
20182
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
20104
20183
|
/**
|
|
20105
20184
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
20106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
|
|
20107
20186
|
*/
|
|
20108
20187
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
20109
20188
|
/**
|
|
20110
20189
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
20111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
|
|
20112
20191
|
*/
|
|
20113
20192
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
20114
20193
|
/**
|
|
20115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
20116
20195
|
* @deprecated
|
|
20117
20196
|
*/
|
|
20118
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<[]>;
|
|
20119
20203
|
/**
|
|
20120
20204
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
20121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
|
|
20122
20206
|
*/
|
|
20123
20207
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
20124
20208
|
/**
|
|
20125
20209
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
20126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
|
|
20127
20211
|
*/
|
|
20128
20212
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
20129
20213
|
/**
|
|
20130
20214
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
20131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
20132
20216
|
*/
|
|
20133
20217
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
20134
20218
|
/**
|
|
20135
20219
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
20136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
20137
20221
|
*/
|
|
20138
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>;
|
|
20139
20228
|
/**
|
|
20140
20229
|
* Prefer `switch` over multiple `else-if`.
|
|
20141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
|
|
20142
20231
|
*/
|
|
20143
20232
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
20144
20233
|
/**
|
|
20145
20234
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
20146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
|
|
20147
20236
|
*/
|
|
20148
20237
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
20149
20238
|
/**
|
|
20150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
20151
20240
|
* @deprecated
|
|
20152
20241
|
*/
|
|
20153
20242
|
"unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
|
|
20154
20243
|
/**
|
|
20155
20244
|
* Prefer top-level await over top-level promises and async function calls.
|
|
20156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
|
|
20157
20246
|
*/
|
|
20158
20247
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
20159
20248
|
/**
|
|
20160
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
20161
20250
|
* @deprecated
|
|
20162
20251
|
*/
|
|
20163
20252
|
"unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
20164
20253
|
/**
|
|
20165
20254
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
20166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
|
|
20167
20256
|
*/
|
|
20168
20257
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
20169
20258
|
/**
|
|
20170
20259
|
* Prevent abbreviations.
|
|
20171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
|
|
20172
20261
|
*/
|
|
20173
20262
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
20174
20263
|
/**
|
|
20175
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
20176
20265
|
* @deprecated
|
|
20177
20266
|
*/
|
|
20178
20267
|
"unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
|
|
20179
20268
|
/**
|
|
20180
20269
|
* Enforce consistent relative URL style.
|
|
20181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
|
|
20182
20271
|
*/
|
|
20183
20272
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
20184
20273
|
/**
|
|
20185
20274
|
* Enforce using the separator argument with `Array#join()`.
|
|
20186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
|
|
20187
20276
|
*/
|
|
20188
20277
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
20189
20278
|
/**
|
|
20190
20279
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
20191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
20192
20281
|
*/
|
|
20193
20282
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
20194
20283
|
/**
|
|
20195
20284
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
20196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
|
|
20197
20286
|
*/
|
|
20198
20287
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
20199
20288
|
/**
|
|
20200
20289
|
* Enforce better string content.
|
|
20201
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
|
|
20202
20291
|
*/
|
|
20203
20292
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
20204
20293
|
/**
|
|
20205
20294
|
* Enforce consistent brace style for `case` clauses.
|
|
20206
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
|
|
20207
20296
|
*/
|
|
20208
20297
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
20209
20298
|
/**
|
|
20210
20299
|
* Fix whitespace-insensitive template indentation.
|
|
20211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
|
|
20212
20301
|
*/
|
|
20213
20302
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
20214
20303
|
/**
|
|
20215
20304
|
* Enforce consistent case for text encoding identifiers.
|
|
20216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
|
|
20217
20306
|
*/
|
|
20218
20307
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
|
|
20219
20308
|
/**
|
|
20220
|
-
* Require `new` when
|
|
20221
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
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
|
|
20222
20311
|
*/
|
|
20223
20312
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
20224
20313
|
}
|
|
@@ -20450,6 +20539,7 @@ type UnicornPreferNumberProperties =
|
|
|
20450
20539
|
| [
|
|
20451
20540
|
{
|
|
20452
20541
|
checkInfinity?: boolean;
|
|
20542
|
+
checkNaN?: boolean;
|
|
20453
20543
|
},
|
|
20454
20544
|
];
|
|
20455
20545
|
// ----- unicorn/prefer-object-from-entries -----
|
|
@@ -20460,6 +20550,14 @@ type UnicornPreferObjectFromEntries =
|
|
|
20460
20550
|
functions?: unknown[];
|
|
20461
20551
|
},
|
|
20462
20552
|
];
|
|
20553
|
+
// ----- unicorn/prefer-structured-clone -----
|
|
20554
|
+
type UnicornPreferStructuredClone =
|
|
20555
|
+
| []
|
|
20556
|
+
| [
|
|
20557
|
+
{
|
|
20558
|
+
functions?: unknown[];
|
|
20559
|
+
},
|
|
20560
|
+
];
|
|
20463
20561
|
// ----- unicorn/prefer-switch -----
|
|
20464
20562
|
type UnicornPreferSwitch =
|
|
20465
20563
|
| []
|