@luxass/eslint-config 7.4.0 → 7.4.2
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.mts +301 -153
- package/dist/index.mjs +7 -2
- package/dist/{lib-D3Kr7UIJ.mjs → lib-EoktVv6C.mjs} +2793 -2278
- package/package.json +28 -28
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ConfigWithExtends, FlatConfigComposer } from "eslint-flat-config-utils";
|
|
2
2
|
import { Linter } from "eslint";
|
|
3
|
+
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
3
4
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
4
5
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
5
|
-
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
6
6
|
import { Options } from "eslint-processor-vue-blocks";
|
|
7
7
|
|
|
8
8
|
//#region src/configs/stylistic.d.ts
|
|
@@ -2162,6 +2162,11 @@ interface RuleOptions {
|
|
|
2162
2162
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
2163
2163
|
*/
|
|
2164
2164
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Require or disallow metadata for fenced code blocks
|
|
2167
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
2168
|
+
*/
|
|
2169
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
2165
2170
|
/**
|
|
2166
2171
|
* Enforce heading levels increment by one
|
|
2167
2172
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -5532,6 +5537,11 @@ interface RuleOptions {
|
|
|
5532
5537
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
5533
5538
|
*/
|
|
5534
5539
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
|
|
5540
|
+
/**
|
|
5541
|
+
* enforce unbound methods are called with their expected scope
|
|
5542
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
5543
|
+
*/
|
|
5544
|
+
'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
|
|
5535
5545
|
/**
|
|
5536
5546
|
* enforce valid describe callback
|
|
5537
5547
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -6362,730 +6372,750 @@ interface RuleOptions {
|
|
|
6362
6372
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
6363
6373
|
/**
|
|
6364
6374
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
6365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
6366
6376
|
*/
|
|
6367
6377
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
6368
6378
|
/**
|
|
6369
6379
|
* Enforce a specific parameter name in catch clauses.
|
|
6370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
6371
6381
|
*/
|
|
6372
6382
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
6373
6383
|
/**
|
|
6374
6384
|
* Enforce consistent assertion style with `node:assert`.
|
|
6375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
6376
6386
|
*/
|
|
6377
6387
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
6378
6388
|
/**
|
|
6379
6389
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
6381
6391
|
*/
|
|
6382
6392
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
6383
6393
|
/**
|
|
6384
6394
|
* Use destructured variables over properties.
|
|
6385
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
6386
6396
|
*/
|
|
6387
6397
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
6388
6398
|
/**
|
|
6389
6399
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
6391
6401
|
*/
|
|
6392
6402
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
6393
6403
|
/**
|
|
6394
6404
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
6396
6406
|
*/
|
|
6397
6407
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
6398
6408
|
/**
|
|
6399
6409
|
* Move function definitions to the highest possible scope.
|
|
6400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
6401
6411
|
*/
|
|
6402
6412
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6413
|
+
/**
|
|
6414
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
6415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
6416
|
+
*/
|
|
6417
|
+
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
6403
6418
|
/**
|
|
6404
6419
|
* Enforce correct `Error` subclassing.
|
|
6405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
6406
6421
|
*/
|
|
6407
6422
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
6408
6423
|
/**
|
|
6409
6424
|
* Enforce no spaces between braces.
|
|
6410
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
6411
6426
|
*/
|
|
6412
6427
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
6413
6428
|
/**
|
|
6414
6429
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6415
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
6416
6431
|
*/
|
|
6417
6432
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
6418
6433
|
/**
|
|
6419
6434
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
6421
6436
|
*/
|
|
6422
6437
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
6423
6438
|
/**
|
|
6424
6439
|
* Add expiration conditions to TODO comments.
|
|
6425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
6426
6441
|
*/
|
|
6427
6442
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
6428
6443
|
/**
|
|
6429
6444
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6430
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
6431
6446
|
*/
|
|
6432
6447
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
6433
6448
|
/**
|
|
6434
6449
|
* Enforce a case style for filenames.
|
|
6435
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
6436
6451
|
*/
|
|
6437
6452
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
6438
6453
|
/**
|
|
6439
6454
|
* Enforce specific import styles per module.
|
|
6440
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
6441
6456
|
*/
|
|
6442
6457
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
6443
6458
|
/**
|
|
6444
6459
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
6445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
6446
6461
|
*/
|
|
6447
6462
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
6448
6463
|
/**
|
|
6449
6464
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
6450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
6451
6466
|
*/
|
|
6452
6467
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
6453
6468
|
/**
|
|
6454
6469
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
6456
6471
|
*/
|
|
6457
6472
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
6458
6473
|
/**
|
|
6459
6474
|
* Disallow recursive access to `this` within getters and setters.
|
|
6460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
6461
6476
|
*/
|
|
6462
6477
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
6463
6478
|
/**
|
|
6464
6479
|
* Disallow anonymous functions and classes as the default export.
|
|
6465
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
6466
6481
|
*/
|
|
6467
6482
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
6468
6483
|
/**
|
|
6469
6484
|
* Prevent passing a function reference directly to iterator methods.
|
|
6470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
6471
6486
|
*/
|
|
6472
6487
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
6473
6488
|
/**
|
|
6474
6489
|
* Prefer `for…of` over the `forEach` method.
|
|
6475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
6476
6491
|
*/
|
|
6477
6492
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
6478
6493
|
/**
|
|
6479
6494
|
* Disallow using the `this` argument in array methods.
|
|
6480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
6481
6496
|
*/
|
|
6482
6497
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
6483
6498
|
/**
|
|
6484
6499
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6485
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
6486
6501
|
* @deprecated
|
|
6487
6502
|
*/
|
|
6488
6503
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
6489
6504
|
/**
|
|
6490
6505
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
6492
6507
|
*/
|
|
6493
6508
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
6494
6509
|
/**
|
|
6495
6510
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
6497
6512
|
*/
|
|
6498
6513
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
6499
6514
|
/**
|
|
6500
6515
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
6502
6517
|
*/
|
|
6503
6518
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
6504
6519
|
/**
|
|
6505
6520
|
* Disallow member access from await expression.
|
|
6506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
6507
6522
|
*/
|
|
6508
6523
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
6509
6524
|
/**
|
|
6510
6525
|
* Disallow using `await` in `Promise` method parameters.
|
|
6511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
6512
6527
|
*/
|
|
6513
6528
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6514
6529
|
/**
|
|
6515
6530
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
6517
6532
|
*/
|
|
6518
6533
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
6519
6534
|
/**
|
|
6520
6535
|
* Do not use `document.cookie` directly.
|
|
6521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
6522
6537
|
*/
|
|
6523
6538
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
6524
6539
|
/**
|
|
6525
6540
|
* Disallow empty files.
|
|
6526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
6527
6542
|
*/
|
|
6528
6543
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
6529
6544
|
/**
|
|
6530
6545
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
6531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
6532
6547
|
*/
|
|
6533
6548
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
6534
6549
|
/**
|
|
6535
6550
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
6536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
6537
6552
|
*/
|
|
6538
6553
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
6539
6554
|
/**
|
|
6540
6555
|
* Disallow immediate mutation after variable assignment.
|
|
6541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
6542
6557
|
*/
|
|
6543
6558
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
6544
6559
|
/**
|
|
6545
6560
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
6546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
6547
6562
|
* @deprecated
|
|
6548
6563
|
*/
|
|
6549
6564
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
6550
6565
|
/**
|
|
6551
6566
|
* Disallow `instanceof` with built-in objects
|
|
6552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
6553
6568
|
*/
|
|
6554
6569
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
6555
6570
|
/**
|
|
6556
6571
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
6557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
6558
6573
|
*/
|
|
6559
6574
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
6560
6575
|
/**
|
|
6561
6576
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
6562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
6563
6578
|
*/
|
|
6564
6579
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
6565
6580
|
/**
|
|
6566
6581
|
* Disallow identifiers starting with `new` or `class`.
|
|
6567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
6568
6583
|
*/
|
|
6569
6584
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
6570
6585
|
/**
|
|
6571
6586
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
6572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
6573
6588
|
* @deprecated
|
|
6574
6589
|
*/
|
|
6575
6590
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
6576
6591
|
/**
|
|
6577
6592
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
6578
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
6579
6594
|
*/
|
|
6580
6595
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
6581
6596
|
/**
|
|
6582
6597
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
6583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
6584
6599
|
*/
|
|
6585
6600
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6586
6601
|
/**
|
|
6587
6602
|
* Disallow named usage of default import and export.
|
|
6588
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
6589
6604
|
*/
|
|
6590
6605
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
6591
6606
|
/**
|
|
6592
6607
|
* Disallow negated conditions.
|
|
6593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
6594
6609
|
*/
|
|
6595
6610
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
6596
6611
|
/**
|
|
6597
6612
|
* Disallow negated expression in equality check.
|
|
6598
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
6599
6614
|
*/
|
|
6600
6615
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
6601
6616
|
/**
|
|
6602
6617
|
* Disallow nested ternary expressions.
|
|
6603
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
6604
6619
|
*/
|
|
6605
6620
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
6606
6621
|
/**
|
|
6607
6622
|
* Disallow `new Array()`.
|
|
6608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
6609
6624
|
*/
|
|
6610
6625
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
6611
6626
|
/**
|
|
6612
6627
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
6613
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
6614
6629
|
*/
|
|
6615
6630
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
6616
6631
|
/**
|
|
6617
6632
|
* Disallow the use of the `null` literal.
|
|
6618
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
6619
6634
|
*/
|
|
6620
6635
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
6621
6636
|
/**
|
|
6622
6637
|
* Disallow the use of objects as default parameters.
|
|
6623
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
6624
6639
|
*/
|
|
6625
6640
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
6626
6641
|
/**
|
|
6627
6642
|
* Disallow `process.exit()`.
|
|
6628
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
6629
6644
|
*/
|
|
6630
6645
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
6631
6646
|
/**
|
|
6632
6647
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
6633
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
6634
6649
|
*/
|
|
6635
6650
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6636
6651
|
/**
|
|
6637
6652
|
* Disallow classes that only have static members.
|
|
6638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
6639
6654
|
*/
|
|
6640
6655
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
6641
6656
|
/**
|
|
6642
6657
|
* Disallow `then` property.
|
|
6643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6658
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
6644
6659
|
*/
|
|
6645
6660
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
6646
6661
|
/**
|
|
6647
6662
|
* Disallow assigning `this` to a variable.
|
|
6648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
6649
6664
|
*/
|
|
6650
6665
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
6651
6666
|
/**
|
|
6652
6667
|
* Disallow comparing `undefined` using `typeof`.
|
|
6653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6668
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
6654
6669
|
*/
|
|
6655
6670
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
6656
6671
|
/**
|
|
6657
6672
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
6658
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6673
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
6659
6674
|
*/
|
|
6660
6675
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6661
6676
|
/**
|
|
6662
6677
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
6663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
6664
6679
|
*/
|
|
6665
6680
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
6666
6681
|
/**
|
|
6667
6682
|
* Disallow awaiting non-promise values.
|
|
6668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6683
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
6669
6684
|
*/
|
|
6670
6685
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
6671
6686
|
/**
|
|
6672
6687
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
6673
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6688
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
6674
6689
|
*/
|
|
6675
6690
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
6676
6691
|
/**
|
|
6677
6692
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
6678
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
6679
6694
|
*/
|
|
6680
6695
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
6681
6696
|
/**
|
|
6682
6697
|
* Disallow unreadable array destructuring.
|
|
6683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
6684
6699
|
*/
|
|
6685
6700
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
6686
6701
|
/**
|
|
6687
6702
|
* Disallow unreadable IIFEs.
|
|
6688
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
6689
6704
|
*/
|
|
6690
6705
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
6691
6706
|
/**
|
|
6692
6707
|
* Disallow unused object properties.
|
|
6693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
6694
6709
|
*/
|
|
6695
6710
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
6696
6711
|
/**
|
|
6697
6712
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
6698
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
6699
6714
|
*/
|
|
6700
6715
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
6701
6716
|
/**
|
|
6702
6717
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
6703
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
6704
6719
|
*/
|
|
6705
6720
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
6706
6721
|
/**
|
|
6707
6722
|
* Disallow useless fallback when spreading in object literals.
|
|
6708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
6709
6724
|
*/
|
|
6710
6725
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
6726
|
+
/**
|
|
6727
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
6728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
6729
|
+
*/
|
|
6730
|
+
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
6711
6731
|
/**
|
|
6712
6732
|
* Disallow useless array length check.
|
|
6713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
6714
6734
|
*/
|
|
6715
6735
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
6716
6736
|
/**
|
|
6717
6737
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
6718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
6719
6739
|
*/
|
|
6720
6740
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
6721
6741
|
/**
|
|
6722
6742
|
* Disallow unnecessary spread.
|
|
6723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
6724
6744
|
*/
|
|
6725
6745
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
6726
6746
|
/**
|
|
6727
6747
|
* Disallow useless case in switch statements.
|
|
6728
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
6729
6749
|
*/
|
|
6730
6750
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
6731
6751
|
/**
|
|
6732
6752
|
* Disallow useless `undefined`.
|
|
6733
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
6734
6754
|
*/
|
|
6735
6755
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
6736
6756
|
/**
|
|
6737
6757
|
* Disallow number literals with zero fractions or dangling dots.
|
|
6738
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
6739
6759
|
*/
|
|
6740
6760
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
6741
6761
|
/**
|
|
6742
6762
|
* Enforce proper case for numeric literals.
|
|
6743
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
6744
6764
|
*/
|
|
6745
6765
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
6746
6766
|
/**
|
|
6747
6767
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6748
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
6749
6769
|
*/
|
|
6750
6770
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
6751
6771
|
/**
|
|
6752
6772
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6753
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
6754
6774
|
*/
|
|
6755
6775
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
6756
6776
|
/**
|
|
6757
6777
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
6759
6779
|
*/
|
|
6760
6780
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
6761
6781
|
/**
|
|
6762
6782
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
6764
6784
|
*/
|
|
6765
6785
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
6766
6786
|
/**
|
|
6767
6787
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
6768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
6769
6789
|
*/
|
|
6770
6790
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
6771
6791
|
/**
|
|
6772
6792
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
6774
6794
|
*/
|
|
6775
6795
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
6776
6796
|
/**
|
|
6777
6797
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
6779
6799
|
*/
|
|
6780
6800
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
6781
6801
|
/**
|
|
6782
6802
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
6784
6804
|
*/
|
|
6785
6805
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
6786
6806
|
/**
|
|
6787
6807
|
* Prefer `BigInt` literals over the constructor.
|
|
6788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
6789
6809
|
*/
|
|
6790
6810
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
6791
6811
|
/**
|
|
6792
6812
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
6794
6814
|
*/
|
|
6795
6815
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
6796
6816
|
/**
|
|
6797
6817
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
6798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
6799
6819
|
*/
|
|
6800
6820
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
6801
6821
|
/**
|
|
6802
6822
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
6804
6824
|
*/
|
|
6805
6825
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
6806
6826
|
/**
|
|
6807
6827
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
6809
6829
|
*/
|
|
6810
6830
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
6811
6831
|
/**
|
|
6812
6832
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
6814
6834
|
*/
|
|
6815
6835
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
6816
6836
|
/**
|
|
6817
6837
|
* Prefer default parameters over reassignment.
|
|
6818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
6819
6839
|
*/
|
|
6820
6840
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
6821
6841
|
/**
|
|
6822
6842
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
6824
6844
|
*/
|
|
6825
6845
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
6826
6846
|
/**
|
|
6827
6847
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
6829
6849
|
*/
|
|
6830
6850
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
6831
6851
|
/**
|
|
6832
6852
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6834
6854
|
*/
|
|
6835
6855
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
6836
6856
|
/**
|
|
6837
6857
|
* Prefer `.textContent` over `.innerText`.
|
|
6838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6839
6859
|
*/
|
|
6840
6860
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
6841
6861
|
/**
|
|
6842
6862
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
6844
6864
|
*/
|
|
6845
6865
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
6846
6866
|
/**
|
|
6847
6867
|
* Prefer `export…from` when re-exporting.
|
|
6848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
6849
6869
|
*/
|
|
6850
6870
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
6851
6871
|
/**
|
|
6852
6872
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
6854
6874
|
*/
|
|
6855
6875
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
6856
6876
|
/**
|
|
6857
6877
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
6859
6879
|
*/
|
|
6860
6880
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
6861
6881
|
/**
|
|
6862
6882
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
6864
6884
|
*/
|
|
6865
6885
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
6866
6886
|
/**
|
|
6867
6887
|
* Prefer reading a JSON file as a buffer.
|
|
6868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
6869
6889
|
*/
|
|
6870
6890
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
6871
6891
|
/**
|
|
6872
6892
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6874
6894
|
*/
|
|
6875
6895
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6876
6896
|
/**
|
|
6877
6897
|
* Prefer using a logical operator over a ternary.
|
|
6878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6879
6899
|
*/
|
|
6880
6900
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
6881
6901
|
/**
|
|
6882
6902
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
6884
6904
|
*/
|
|
6885
6905
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6886
6906
|
/**
|
|
6887
6907
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
6889
6909
|
*/
|
|
6890
6910
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
6891
6911
|
/**
|
|
6892
6912
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6894
6914
|
*/
|
|
6895
6915
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
6896
6916
|
/**
|
|
6897
6917
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6899
6919
|
*/
|
|
6900
6920
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
6901
6921
|
/**
|
|
6902
6922
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
6904
6924
|
*/
|
|
6905
6925
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
6906
6926
|
/**
|
|
6907
6927
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6909
6929
|
*/
|
|
6910
6930
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
6911
6931
|
/**
|
|
6912
6932
|
* Prefer negative index over `.length - index` when possible.
|
|
6913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
6914
6934
|
*/
|
|
6915
6935
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
6916
6936
|
/**
|
|
6917
6937
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
6919
6939
|
*/
|
|
6920
6940
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
6921
6941
|
/**
|
|
6922
6942
|
* Prefer `Number` static properties over global ones.
|
|
6923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
6924
6944
|
*/
|
|
6925
6945
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
6926
6946
|
/**
|
|
6927
6947
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
6929
6949
|
*/
|
|
6930
6950
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
6931
6951
|
/**
|
|
6932
6952
|
* Prefer omitting the `catch` binding parameter.
|
|
6933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6934
6954
|
*/
|
|
6935
6955
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
6936
6956
|
/**
|
|
6937
6957
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
6939
6959
|
*/
|
|
6940
6960
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
6941
6961
|
/**
|
|
6942
6962
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
6944
6964
|
*/
|
|
6945
6965
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
6946
6966
|
/**
|
|
6947
6967
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
6949
6969
|
*/
|
|
6950
6970
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
6951
6971
|
/**
|
|
6952
6972
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
6954
6974
|
*/
|
|
6955
6975
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
6956
6976
|
/**
|
|
6957
6977
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
6959
6979
|
*/
|
|
6960
6980
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
6961
6981
|
/**
|
|
6962
6982
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
6964
6984
|
*/
|
|
6965
6985
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
6966
6986
|
/**
|
|
6967
6987
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
6969
6989
|
*/
|
|
6970
6990
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6991
|
+
/**
|
|
6992
|
+
* Prefer simple conditions first in logical expressions.
|
|
6993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
6994
|
+
*/
|
|
6995
|
+
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
6971
6996
|
/**
|
|
6972
6997
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
6974
6999
|
*/
|
|
6975
7000
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
6976
7001
|
/**
|
|
6977
7002
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
6979
7004
|
*/
|
|
6980
7005
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
6981
7006
|
/**
|
|
6982
7007
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
6984
7009
|
*/
|
|
6985
7010
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
6986
7011
|
/**
|
|
6987
7012
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
6989
7014
|
*/
|
|
6990
7015
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
6991
7016
|
/**
|
|
6992
7017
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
6994
7019
|
*/
|
|
6995
7020
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
6996
7021
|
/**
|
|
6997
7022
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6999
7024
|
*/
|
|
7000
7025
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
7001
7026
|
/**
|
|
7002
7027
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
7003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
7004
7029
|
*/
|
|
7005
7030
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
7006
7031
|
/**
|
|
7007
7032
|
* Prefer using `structuredClone` to create a deep clone.
|
|
7008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
7009
7034
|
*/
|
|
7010
7035
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
7011
7036
|
/**
|
|
7012
7037
|
* Prefer `switch` over multiple `else-if`.
|
|
7013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
7014
7039
|
*/
|
|
7015
7040
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
7016
7041
|
/**
|
|
7017
7042
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
7018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
7019
7044
|
*/
|
|
7020
7045
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
7021
7046
|
/**
|
|
7022
7047
|
* Prefer top-level await over top-level promises and async function calls.
|
|
7023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
7024
7049
|
*/
|
|
7025
7050
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
7026
7051
|
/**
|
|
7027
7052
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
7028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
7029
7054
|
*/
|
|
7030
7055
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
7031
7056
|
/**
|
|
7032
7057
|
* Prevent abbreviations.
|
|
7033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
7034
7059
|
*/
|
|
7035
7060
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
7036
7061
|
/**
|
|
7037
7062
|
* Enforce consistent relative URL style.
|
|
7038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
7039
7064
|
*/
|
|
7040
7065
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
7041
7066
|
/**
|
|
7042
7067
|
* Enforce using the separator argument with `Array#join()`.
|
|
7043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
7044
7069
|
*/
|
|
7045
7070
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
7046
7071
|
/**
|
|
7047
7072
|
* Require non-empty module attributes for imports and exports
|
|
7048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
7049
7074
|
*/
|
|
7050
7075
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
7051
7076
|
/**
|
|
7052
7077
|
* Require non-empty specifier list in import and export statements.
|
|
7053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
7054
7079
|
*/
|
|
7055
7080
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
7056
7081
|
/**
|
|
7057
7082
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7059
7084
|
*/
|
|
7060
7085
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
7061
7086
|
/**
|
|
7062
7087
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
7064
7089
|
*/
|
|
7065
7090
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
7066
7091
|
/**
|
|
7067
7092
|
* Enforce better string content.
|
|
7068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
7069
7094
|
*/
|
|
7070
7095
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
7071
7096
|
/**
|
|
7072
7097
|
* Enforce consistent brace style for `case` clauses.
|
|
7073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
7074
7099
|
*/
|
|
7075
7100
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
7101
|
+
/**
|
|
7102
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
7103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
7104
|
+
*/
|
|
7105
|
+
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
7076
7106
|
/**
|
|
7077
7107
|
* Fix whitespace-insensitive template indentation.
|
|
7078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
7079
7109
|
*/
|
|
7080
7110
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
7081
7111
|
/**
|
|
7082
7112
|
* Enforce consistent case for text encoding identifiers.
|
|
7083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
7084
7114
|
*/
|
|
7085
7115
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
7086
7116
|
/**
|
|
7087
7117
|
* Require `new` when creating an error.
|
|
7088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
7089
7119
|
*/
|
|
7090
7120
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
7091
7121
|
/**
|
|
@@ -10008,13 +10038,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
10008
10038
|
}] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
|
|
10009
10039
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
10010
10040
|
required?: string[];
|
|
10011
|
-
}]; // ----- markdown/
|
|
10041
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
10042
|
+
type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
|
|
10012
10043
|
type MarkdownHeadingIncrement = [] | [{
|
|
10013
10044
|
frontmatterTitle?: string;
|
|
10014
10045
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
10015
10046
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
10016
10047
|
allowDefinitions?: string[];
|
|
10017
10048
|
allowFootnoteDefinitions?: string[];
|
|
10049
|
+
checkFootnoteDefinitions?: boolean;
|
|
10018
10050
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
10019
10051
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
10020
10052
|
checkSiblingsOnly?: boolean;
|
|
@@ -10047,6 +10079,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
10047
10079
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
10048
10080
|
allowDefinitions?: string[];
|
|
10049
10081
|
allowFootnoteDefinitions?: string[];
|
|
10082
|
+
checkFootnoteDefinitions?: boolean;
|
|
10050
10083
|
}]; // ----- markdown/table-column-count -----
|
|
10051
10084
|
type MarkdownTableColumnCount = [] | [{
|
|
10052
10085
|
checkMissingCells?: boolean;
|
|
@@ -10899,6 +10932,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10899
10932
|
pattern: string;
|
|
10900
10933
|
flags?: string;
|
|
10901
10934
|
} | string));
|
|
10935
|
+
matchesAstSelector?: string;
|
|
10902
10936
|
};
|
|
10903
10937
|
partitionByComment?: (boolean | (({
|
|
10904
10938
|
pattern: string;
|
|
@@ -10924,7 +10958,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10924
10958
|
});
|
|
10925
10959
|
partitionByNewLine?: boolean;
|
|
10926
10960
|
}[]; // ----- perfectionist/sort-classes -----
|
|
10927
|
-
type PerfectionistSortClasses =
|
|
10961
|
+
type PerfectionistSortClasses = {
|
|
10928
10962
|
fallbackSort?: {
|
|
10929
10963
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10930
10964
|
order?: ("asc" | "desc");
|
|
@@ -11041,6 +11075,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11041
11075
|
order?: ("asc" | "desc");
|
|
11042
11076
|
})[];
|
|
11043
11077
|
newlinesBetween?: ("ignore" | number);
|
|
11078
|
+
useConfigurationIf?: {
|
|
11079
|
+
allNamesMatchPattern?: (({
|
|
11080
|
+
pattern: string;
|
|
11081
|
+
flags?: string;
|
|
11082
|
+
} | string)[] | ({
|
|
11083
|
+
pattern: string;
|
|
11084
|
+
flags?: string;
|
|
11085
|
+
} | string));
|
|
11086
|
+
matchesAstSelector?: string;
|
|
11087
|
+
};
|
|
11044
11088
|
useExperimentalDependencyDetection?: boolean;
|
|
11045
11089
|
ignoreCallbackDependenciesPatterns?: (({
|
|
11046
11090
|
pattern: string;
|
|
@@ -11072,7 +11116,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11072
11116
|
} | string)));
|
|
11073
11117
|
});
|
|
11074
11118
|
partitionByNewLine?: boolean;
|
|
11075
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
11119
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
11076
11120
|
type PerfectionistSortDecorators = {
|
|
11077
11121
|
fallbackSort?: {
|
|
11078
11122
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -11171,7 +11215,7 @@ type PerfectionistSortDecorators = {
|
|
|
11171
11215
|
});
|
|
11172
11216
|
partitionByNewLine?: boolean;
|
|
11173
11217
|
}[]; // ----- perfectionist/sort-enums -----
|
|
11174
|
-
type PerfectionistSortEnums =
|
|
11218
|
+
type PerfectionistSortEnums = {
|
|
11175
11219
|
fallbackSort?: {
|
|
11176
11220
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11177
11221
|
order?: ("asc" | "desc");
|
|
@@ -11261,6 +11305,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11261
11305
|
order?: ("asc" | "desc");
|
|
11262
11306
|
})[];
|
|
11263
11307
|
newlinesBetween?: ("ignore" | number);
|
|
11308
|
+
useConfigurationIf?: {
|
|
11309
|
+
allNamesMatchPattern?: (({
|
|
11310
|
+
pattern: string;
|
|
11311
|
+
flags?: string;
|
|
11312
|
+
} | string)[] | ({
|
|
11313
|
+
pattern: string;
|
|
11314
|
+
flags?: string;
|
|
11315
|
+
} | string));
|
|
11316
|
+
matchesAstSelector?: string;
|
|
11317
|
+
};
|
|
11264
11318
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
11265
11319
|
useExperimentalDependencyDetection?: boolean;
|
|
11266
11320
|
partitionByComment?: (boolean | (({
|
|
@@ -11286,7 +11340,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11286
11340
|
} | string)));
|
|
11287
11341
|
});
|
|
11288
11342
|
partitionByNewLine?: boolean;
|
|
11289
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
11343
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
11290
11344
|
type PerfectionistSortExportAttributes = {
|
|
11291
11345
|
fallbackSort?: {
|
|
11292
11346
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -11356,6 +11410,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
11356
11410
|
order?: ("asc" | "desc");
|
|
11357
11411
|
})[];
|
|
11358
11412
|
newlinesBetween?: ("ignore" | number);
|
|
11413
|
+
useConfigurationIf?: {
|
|
11414
|
+
allNamesMatchPattern?: (({
|
|
11415
|
+
pattern: string;
|
|
11416
|
+
flags?: string;
|
|
11417
|
+
} | string)[] | ({
|
|
11418
|
+
pattern: string;
|
|
11419
|
+
flags?: string;
|
|
11420
|
+
} | string));
|
|
11421
|
+
matchesAstSelector?: string;
|
|
11422
|
+
};
|
|
11359
11423
|
partitionByComment?: (boolean | (({
|
|
11360
11424
|
pattern: string;
|
|
11361
11425
|
flags?: string;
|
|
@@ -11548,6 +11612,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
11548
11612
|
order?: ("asc" | "desc");
|
|
11549
11613
|
})[];
|
|
11550
11614
|
newlinesBetween?: ("ignore" | number);
|
|
11615
|
+
useConfigurationIf?: {
|
|
11616
|
+
allNamesMatchPattern?: (({
|
|
11617
|
+
pattern: string;
|
|
11618
|
+
flags?: string;
|
|
11619
|
+
} | string)[] | ({
|
|
11620
|
+
pattern: string;
|
|
11621
|
+
flags?: string;
|
|
11622
|
+
} | string));
|
|
11623
|
+
matchesAstSelector?: string;
|
|
11624
|
+
};
|
|
11551
11625
|
partitionByNewLine?: boolean;
|
|
11552
11626
|
partitionByComment?: (boolean | (({
|
|
11553
11627
|
pattern: string;
|
|
@@ -11641,6 +11715,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
11641
11715
|
order?: ("asc" | "desc");
|
|
11642
11716
|
})[];
|
|
11643
11717
|
newlinesBetween?: ("ignore" | number);
|
|
11718
|
+
useConfigurationIf?: {
|
|
11719
|
+
allNamesMatchPattern?: (({
|
|
11720
|
+
pattern: string;
|
|
11721
|
+
flags?: string;
|
|
11722
|
+
} | string)[] | ({
|
|
11723
|
+
pattern: string;
|
|
11724
|
+
flags?: string;
|
|
11725
|
+
} | string));
|
|
11726
|
+
matchesAstSelector?: string;
|
|
11727
|
+
};
|
|
11644
11728
|
partitionByComment?: (boolean | (({
|
|
11645
11729
|
pattern: string;
|
|
11646
11730
|
flags?: string;
|
|
@@ -11909,6 +11993,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11909
11993
|
pattern: string;
|
|
11910
11994
|
flags?: string;
|
|
11911
11995
|
} | string));
|
|
11996
|
+
matchesAstSelector?: string;
|
|
11912
11997
|
declarationMatchesPattern?: (({
|
|
11913
11998
|
scope?: ("shallow" | "deep");
|
|
11914
11999
|
pattern: string;
|
|
@@ -12015,6 +12100,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12015
12100
|
order?: ("asc" | "desc");
|
|
12016
12101
|
})[];
|
|
12017
12102
|
newlinesBetween?: ("ignore" | number);
|
|
12103
|
+
useConfigurationIf?: {
|
|
12104
|
+
allNamesMatchPattern?: (({
|
|
12105
|
+
pattern: string;
|
|
12106
|
+
flags?: string;
|
|
12107
|
+
} | string)[] | ({
|
|
12108
|
+
pattern: string;
|
|
12109
|
+
flags?: string;
|
|
12110
|
+
} | string));
|
|
12111
|
+
matchesAstSelector?: string;
|
|
12112
|
+
};
|
|
12018
12113
|
partitionByComment?: (boolean | (({
|
|
12019
12114
|
pattern: string;
|
|
12020
12115
|
flags?: string;
|
|
@@ -12143,6 +12238,7 @@ type PerfectionistSortJsxProps = {
|
|
|
12143
12238
|
pattern: string;
|
|
12144
12239
|
flags?: string;
|
|
12145
12240
|
} | string));
|
|
12241
|
+
matchesAstSelector?: string;
|
|
12146
12242
|
tagMatchesPattern?: (({
|
|
12147
12243
|
pattern: string;
|
|
12148
12244
|
flags?: string;
|
|
@@ -12230,6 +12326,7 @@ type PerfectionistSortMaps = {
|
|
|
12230
12326
|
pattern: string;
|
|
12231
12327
|
flags?: string;
|
|
12232
12328
|
} | string));
|
|
12329
|
+
matchesAstSelector?: string;
|
|
12233
12330
|
};
|
|
12234
12331
|
partitionByComment?: (boolean | (({
|
|
12235
12332
|
pattern: string;
|
|
@@ -12451,6 +12548,16 @@ type PerfectionistSortNamedExports = {
|
|
|
12451
12548
|
order?: ("asc" | "desc");
|
|
12452
12549
|
})[];
|
|
12453
12550
|
newlinesBetween?: ("ignore" | number);
|
|
12551
|
+
useConfigurationIf?: {
|
|
12552
|
+
allNamesMatchPattern?: (({
|
|
12553
|
+
pattern: string;
|
|
12554
|
+
flags?: string;
|
|
12555
|
+
} | string)[] | ({
|
|
12556
|
+
pattern: string;
|
|
12557
|
+
flags?: string;
|
|
12558
|
+
} | string));
|
|
12559
|
+
matchesAstSelector?: string;
|
|
12560
|
+
};
|
|
12454
12561
|
ignoreAlias?: boolean;
|
|
12455
12562
|
partitionByComment?: (boolean | (({
|
|
12456
12563
|
pattern: string;
|
|
@@ -12551,6 +12658,16 @@ type PerfectionistSortNamedImports = {
|
|
|
12551
12658
|
order?: ("asc" | "desc");
|
|
12552
12659
|
})[];
|
|
12553
12660
|
newlinesBetween?: ("ignore" | number);
|
|
12661
|
+
useConfigurationIf?: {
|
|
12662
|
+
allNamesMatchPattern?: (({
|
|
12663
|
+
pattern: string;
|
|
12664
|
+
flags?: string;
|
|
12665
|
+
} | string)[] | ({
|
|
12666
|
+
pattern: string;
|
|
12667
|
+
flags?: string;
|
|
12668
|
+
} | string));
|
|
12669
|
+
matchesAstSelector?: string;
|
|
12670
|
+
};
|
|
12554
12671
|
ignoreAlias?: boolean;
|
|
12555
12672
|
partitionByComment?: (boolean | (({
|
|
12556
12673
|
pattern: string;
|
|
@@ -12698,6 +12815,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
12698
12815
|
pattern: string;
|
|
12699
12816
|
flags?: string;
|
|
12700
12817
|
} | string));
|
|
12818
|
+
matchesAstSelector?: string;
|
|
12701
12819
|
declarationMatchesPattern?: (({
|
|
12702
12820
|
scope?: ("shallow" | "deep");
|
|
12703
12821
|
pattern: string;
|
|
@@ -12864,6 +12982,7 @@ type PerfectionistSortObjects = {
|
|
|
12864
12982
|
pattern: string;
|
|
12865
12983
|
flags?: string;
|
|
12866
12984
|
} | string));
|
|
12985
|
+
matchesAstSelector?: string;
|
|
12867
12986
|
declarationMatchesPattern?: (({
|
|
12868
12987
|
scope?: ("shallow" | "deep");
|
|
12869
12988
|
pattern: string;
|
|
@@ -12874,6 +12993,7 @@ type PerfectionistSortObjects = {
|
|
|
12874
12993
|
flags?: string;
|
|
12875
12994
|
} | string));
|
|
12876
12995
|
};
|
|
12996
|
+
partitionByComputedKey?: boolean;
|
|
12877
12997
|
styledComponents?: boolean;
|
|
12878
12998
|
useExperimentalDependencyDetection?: boolean;
|
|
12879
12999
|
partitionByComment?: (boolean | (({
|
|
@@ -12980,6 +13100,7 @@ type PerfectionistSortSets = {
|
|
|
12980
13100
|
pattern: string;
|
|
12981
13101
|
flags?: string;
|
|
12982
13102
|
} | string));
|
|
13103
|
+
matchesAstSelector?: string;
|
|
12983
13104
|
};
|
|
12984
13105
|
partitionByComment?: (boolean | (({
|
|
12985
13106
|
pattern: string;
|
|
@@ -13089,6 +13210,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
13089
13210
|
order?: ("asc" | "desc");
|
|
13090
13211
|
})[];
|
|
13091
13212
|
newlinesBetween?: ("ignore" | number);
|
|
13213
|
+
useConfigurationIf?: {
|
|
13214
|
+
allNamesMatchPattern?: (({
|
|
13215
|
+
pattern: string;
|
|
13216
|
+
flags?: string;
|
|
13217
|
+
} | string)[] | ({
|
|
13218
|
+
pattern: string;
|
|
13219
|
+
flags?: string;
|
|
13220
|
+
} | string));
|
|
13221
|
+
matchesAstSelector?: string;
|
|
13222
|
+
};
|
|
13092
13223
|
partitionByComment?: (boolean | (({
|
|
13093
13224
|
pattern: string;
|
|
13094
13225
|
flags?: string;
|
|
@@ -13113,7 +13244,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
13113
13244
|
});
|
|
13114
13245
|
partitionByNewLine?: boolean;
|
|
13115
13246
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
13116
|
-
type PerfectionistSortVariableDeclarations =
|
|
13247
|
+
type PerfectionistSortVariableDeclarations = {
|
|
13117
13248
|
fallbackSort?: {
|
|
13118
13249
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13119
13250
|
order?: ("asc" | "desc");
|
|
@@ -13185,6 +13316,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13185
13316
|
order?: ("asc" | "desc");
|
|
13186
13317
|
})[];
|
|
13187
13318
|
newlinesBetween?: ("ignore" | number);
|
|
13319
|
+
useConfigurationIf?: {
|
|
13320
|
+
allNamesMatchPattern?: (({
|
|
13321
|
+
pattern: string;
|
|
13322
|
+
flags?: string;
|
|
13323
|
+
} | string)[] | ({
|
|
13324
|
+
pattern: string;
|
|
13325
|
+
flags?: string;
|
|
13326
|
+
} | string));
|
|
13327
|
+
matchesAstSelector?: string;
|
|
13328
|
+
};
|
|
13188
13329
|
useExperimentalDependencyDetection?: boolean;
|
|
13189
13330
|
partitionByComment?: (boolean | (({
|
|
13190
13331
|
pattern: string;
|
|
@@ -13209,7 +13350,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13209
13350
|
} | string)));
|
|
13210
13351
|
});
|
|
13211
13352
|
partitionByNewLine?: boolean;
|
|
13212
|
-
}]; // ----- pnpm/json-enforce-catalog -----
|
|
13353
|
+
}[]; // ----- pnpm/json-enforce-catalog -----
|
|
13213
13354
|
type PnpmJsonEnforceCatalog = [] | [{
|
|
13214
13355
|
allowedProtocols?: string[];
|
|
13215
13356
|
autofix?: boolean;
|
|
@@ -14747,6 +14888,9 @@ type TestRequireMockTypeParameters = [] | [{
|
|
|
14747
14888
|
}]; // ----- test/require-top-level-describe -----
|
|
14748
14889
|
type TestRequireTopLevelDescribe = [] | [{
|
|
14749
14890
|
maxNumberOfTopLevelDescribes?: number;
|
|
14891
|
+
}]; // ----- test/unbound-method -----
|
|
14892
|
+
type TestUnboundMethod = [] | [{
|
|
14893
|
+
ignoreStatic?: boolean;
|
|
14750
14894
|
}]; // ----- test/valid-expect -----
|
|
14751
14895
|
type TestValidExpect = [] | [{
|
|
14752
14896
|
alwaysAwait?: boolean;
|
|
@@ -15791,6 +15935,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
|
|
|
15791
15935
|
type UnicornExpiringTodoComments = [] | [{
|
|
15792
15936
|
terms?: string[];
|
|
15793
15937
|
ignore?: unknown[];
|
|
15938
|
+
ignoreDates?: boolean;
|
|
15794
15939
|
ignoreDatesOnPullRequests?: boolean;
|
|
15795
15940
|
allowWarningComments?: boolean;
|
|
15796
15941
|
date?: string;
|
|
@@ -15947,6 +16092,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
15947
16092
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
15948
16093
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
15949
16094
|
}
|
|
16095
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
16096
|
+
[k: string]: boolean | undefined;
|
|
16097
|
+
}
|
|
15950
16098
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
15951
16099
|
[k: string]: boolean | undefined;
|
|
15952
16100
|
} // ----- unicorn/relative-url-style -----
|