@kazupon/eslint-config 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/index.d.ts +325 -188
- package/dist/index.js +11 -1
- package/package.json +11 -6
package/dist/index.d.ts
CHANGED
|
@@ -109,8 +109,9 @@ interface CssRules {
|
|
|
109
109
|
'css/prefer-logical-properties'?: Linter.RuleEntry<CssPreferLogicalProperties>;
|
|
110
110
|
/**
|
|
111
111
|
* Enforce the use of baseline features
|
|
112
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md
|
|
112
113
|
*/
|
|
113
|
-
'css/
|
|
114
|
+
'css/use-baseline'?: Linter.RuleEntry<CssUseBaseline>;
|
|
114
115
|
/**
|
|
115
116
|
* Require use of layers
|
|
116
117
|
* @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
|
|
@@ -123,7 +124,7 @@ type CssPreferLogicalProperties = [] | [
|
|
|
123
124
|
allowUnits?: string[];
|
|
124
125
|
}
|
|
125
126
|
];
|
|
126
|
-
type
|
|
127
|
+
type CssUseBaseline = [] | [
|
|
127
128
|
{
|
|
128
129
|
available?: (("widely" | "newly") | number);
|
|
129
130
|
}
|
|
@@ -9381,642 +9382,643 @@ type TypescriptEslintUnifiedSignatures = [] | [
|
|
|
9381
9382
|
interface UnicornRules {
|
|
9382
9383
|
/**
|
|
9383
9384
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
9384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
|
|
9385
9386
|
*/
|
|
9386
9387
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
9387
9388
|
/**
|
|
9388
9389
|
* Enforce a specific parameter name in catch clauses.
|
|
9389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
|
|
9390
9391
|
*/
|
|
9391
9392
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
9392
9393
|
/**
|
|
9393
9394
|
* Enforce consistent assertion style with `node:assert`.
|
|
9394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
|
|
9395
9396
|
*/
|
|
9396
9397
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
9397
9398
|
/**
|
|
9398
9399
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
9399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
|
|
9400
9401
|
*/
|
|
9401
9402
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
9402
9403
|
/**
|
|
9403
9404
|
* Use destructured variables over properties.
|
|
9404
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
|
|
9405
9406
|
*/
|
|
9406
9407
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
9407
9408
|
/**
|
|
9408
9409
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
9409
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
|
|
9410
9411
|
*/
|
|
9411
9412
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
9412
9413
|
/**
|
|
9413
9414
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
9414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
|
|
9415
9416
|
*/
|
|
9416
9417
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
9417
9418
|
/**
|
|
9418
9419
|
* Move function definitions to the highest possible scope.
|
|
9419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
|
|
9420
9421
|
*/
|
|
9421
9422
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
9422
9423
|
/**
|
|
9423
9424
|
* Enforce correct `Error` subclassing.
|
|
9424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
|
|
9425
9426
|
*/
|
|
9426
9427
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
9427
9428
|
/**
|
|
9428
9429
|
* Enforce no spaces between braces.
|
|
9429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
|
|
9430
9431
|
*/
|
|
9431
9432
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
9432
9433
|
/**
|
|
9433
9434
|
* Enforce passing a `message` value when creating a built-in error.
|
|
9434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
|
|
9435
9436
|
*/
|
|
9436
9437
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
9437
9438
|
/**
|
|
9438
|
-
* Require escape sequences to use uppercase values.
|
|
9439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9439
|
+
* Require escape sequences to use uppercase or lowercase values.
|
|
9440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
|
|
9440
9441
|
*/
|
|
9441
|
-
'unicorn/escape-case'?: Linter.RuleEntry<
|
|
9442
|
+
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
9442
9443
|
/**
|
|
9443
9444
|
* Add expiration conditions to TODO comments.
|
|
9444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
|
|
9445
9446
|
*/
|
|
9446
9447
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
9447
9448
|
/**
|
|
9448
9449
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
9449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
|
|
9450
9451
|
*/
|
|
9451
9452
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
9452
9453
|
/**
|
|
9453
9454
|
* Enforce a case style for filenames.
|
|
9454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
|
|
9455
9456
|
*/
|
|
9456
9457
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
9457
9458
|
/**
|
|
9458
9459
|
* Enforce specific import styles per module.
|
|
9459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
|
|
9460
9461
|
*/
|
|
9461
9462
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
9462
9463
|
/**
|
|
9463
9464
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
9464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
|
|
9465
9466
|
*/
|
|
9466
9467
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
9467
9468
|
/**
|
|
9468
9469
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
9469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
9470
9471
|
*/
|
|
9471
9472
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
9472
9473
|
/**
|
|
9473
9474
|
* Disallow recursive access to `this` within getters and setters.
|
|
9474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
|
|
9475
9476
|
*/
|
|
9476
9477
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
9477
9478
|
/**
|
|
9478
9479
|
* Disallow anonymous functions and classes as the default export.
|
|
9479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
|
|
9480
9481
|
*/
|
|
9481
9482
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
9482
9483
|
/**
|
|
9483
9484
|
* Prevent passing a function reference directly to iterator methods.
|
|
9484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
|
|
9485
9486
|
*/
|
|
9486
9487
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
9487
9488
|
/**
|
|
9488
9489
|
* Prefer `for…of` over the `forEach` method.
|
|
9489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
|
|
9490
9491
|
*/
|
|
9491
9492
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
9492
9493
|
/**
|
|
9493
9494
|
* Disallow using the `this` argument in array methods.
|
|
9494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
|
|
9495
9496
|
*/
|
|
9496
9497
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
9497
9498
|
/**
|
|
9498
9499
|
* Enforce combining multiple `Array#push()` into one call.
|
|
9499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
|
|
9500
9501
|
*/
|
|
9501
9502
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
9502
9503
|
/**
|
|
9503
9504
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
9504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
|
|
9505
9506
|
*/
|
|
9506
9507
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
9507
9508
|
/**
|
|
9508
9509
|
* Disallow member access from await expression.
|
|
9509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
|
|
9510
9511
|
*/
|
|
9511
9512
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
9512
9513
|
/**
|
|
9513
9514
|
* Disallow using `await` in `Promise` method parameters.
|
|
9514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
|
|
9515
9516
|
*/
|
|
9516
9517
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
9517
9518
|
/**
|
|
9518
9519
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
9519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
|
|
9520
9521
|
*/
|
|
9521
9522
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
9522
9523
|
/**
|
|
9523
9524
|
* Do not use `document.cookie` directly.
|
|
9524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
|
|
9525
9526
|
*/
|
|
9526
9527
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
9527
9528
|
/**
|
|
9528
9529
|
* Disallow empty files.
|
|
9529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
|
|
9530
9531
|
*/
|
|
9531
9532
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
9532
9533
|
/**
|
|
9533
9534
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
9534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
|
|
9535
9536
|
*/
|
|
9536
9537
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
9537
9538
|
/**
|
|
9538
9539
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
9539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
|
|
9540
9541
|
*/
|
|
9541
9542
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
9542
9543
|
/**
|
|
9543
|
-
*
|
|
9544
|
+
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
9545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
9544
9546
|
* @deprecated
|
|
9545
9547
|
*/
|
|
9546
9548
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
9547
9549
|
/**
|
|
9548
9550
|
* Disallow `instanceof` with built-in objects
|
|
9549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
|
|
9550
9552
|
*/
|
|
9551
9553
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
9552
9554
|
/**
|
|
9553
9555
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
9554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
|
|
9555
9557
|
*/
|
|
9556
9558
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
9557
9559
|
/**
|
|
9558
9560
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
9559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
9560
9562
|
*/
|
|
9561
9563
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
9562
9564
|
/**
|
|
9563
9565
|
* Disallow identifiers starting with `new` or `class`.
|
|
9564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
|
|
9565
9567
|
*/
|
|
9566
9568
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
9567
9569
|
/**
|
|
9568
9570
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
9569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
|
|
9570
9572
|
*/
|
|
9571
9573
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
9572
9574
|
/**
|
|
9573
9575
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
9574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
|
|
9575
9577
|
*/
|
|
9576
9578
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
9577
9579
|
/**
|
|
9578
9580
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
9579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
9580
9582
|
*/
|
|
9581
9583
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
9582
9584
|
/**
|
|
9583
9585
|
* Disallow named usage of default import and export.
|
|
9584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
|
|
9585
9587
|
*/
|
|
9586
9588
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
9587
9589
|
/**
|
|
9588
9590
|
* Disallow negated conditions.
|
|
9589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
|
|
9590
9592
|
*/
|
|
9591
9593
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
9592
9594
|
/**
|
|
9593
9595
|
* Disallow negated expression in equality check.
|
|
9594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
|
|
9595
9597
|
*/
|
|
9596
9598
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
9597
9599
|
/**
|
|
9598
9600
|
* Disallow nested ternary expressions.
|
|
9599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
|
|
9600
9602
|
*/
|
|
9601
9603
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
9602
9604
|
/**
|
|
9603
9605
|
* Disallow `new Array()`.
|
|
9604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
|
|
9605
9607
|
*/
|
|
9606
9608
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
9607
9609
|
/**
|
|
9608
9610
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
9609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
|
|
9610
9612
|
*/
|
|
9611
9613
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
9612
9614
|
/**
|
|
9613
9615
|
* Disallow the use of the `null` literal.
|
|
9614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
|
|
9615
9617
|
*/
|
|
9616
9618
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
9617
9619
|
/**
|
|
9618
9620
|
* Disallow the use of objects as default parameters.
|
|
9619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
|
|
9620
9622
|
*/
|
|
9621
9623
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
9622
9624
|
/**
|
|
9623
9625
|
* Disallow `process.exit()`.
|
|
9624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
|
|
9625
9627
|
*/
|
|
9626
9628
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
9627
9629
|
/**
|
|
9628
9630
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
9629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
9630
9632
|
*/
|
|
9631
9633
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
9632
9634
|
/**
|
|
9633
9635
|
* Disallow classes that only have static members.
|
|
9634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
|
|
9635
9637
|
*/
|
|
9636
9638
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
9637
9639
|
/**
|
|
9638
9640
|
* Disallow `then` property.
|
|
9639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
|
|
9640
9642
|
*/
|
|
9641
9643
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
9642
9644
|
/**
|
|
9643
9645
|
* Disallow assigning `this` to a variable.
|
|
9644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
|
|
9645
9647
|
*/
|
|
9646
9648
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
9647
9649
|
/**
|
|
9648
9650
|
* Disallow comparing `undefined` using `typeof`.
|
|
9649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
|
|
9650
9652
|
*/
|
|
9651
9653
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
9652
9654
|
/**
|
|
9653
9655
|
* Disallow awaiting non-promise values.
|
|
9654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
|
|
9655
9657
|
*/
|
|
9656
9658
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
9657
9659
|
/**
|
|
9658
9660
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
9659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
9660
9662
|
*/
|
|
9661
9663
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
9662
9664
|
/**
|
|
9663
9665
|
* Disallow unreadable array destructuring.
|
|
9664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
9665
9667
|
*/
|
|
9666
9668
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
9667
9669
|
/**
|
|
9668
9670
|
* Disallow unreadable IIFEs.
|
|
9669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
|
|
9670
9672
|
*/
|
|
9671
9673
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
9672
9674
|
/**
|
|
9673
9675
|
* Disallow unused object properties.
|
|
9674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
|
|
9675
9677
|
*/
|
|
9676
9678
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
9677
9679
|
/**
|
|
9678
9680
|
* Disallow useless fallback when spreading in object literals.
|
|
9679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
9680
9682
|
*/
|
|
9681
9683
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
9682
9684
|
/**
|
|
9683
9685
|
* Disallow useless array length check.
|
|
9684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
|
|
9685
9687
|
*/
|
|
9686
9688
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
9687
9689
|
/**
|
|
9688
9690
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
9689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
9690
9692
|
*/
|
|
9691
9693
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
9692
9694
|
/**
|
|
9693
9695
|
* Disallow unnecessary spread.
|
|
9694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
|
|
9695
9697
|
*/
|
|
9696
9698
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
9697
9699
|
/**
|
|
9698
9700
|
* Disallow useless case in switch statements.
|
|
9699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
|
|
9700
9702
|
*/
|
|
9701
9703
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
9702
9704
|
/**
|
|
9703
9705
|
* Disallow useless `undefined`.
|
|
9704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
|
|
9705
9707
|
*/
|
|
9706
9708
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
9707
9709
|
/**
|
|
9708
9710
|
* Disallow number literals with zero fractions or dangling dots.
|
|
9709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
|
|
9710
9712
|
*/
|
|
9711
9713
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
9712
9714
|
/**
|
|
9713
9715
|
* Enforce proper case for numeric literals.
|
|
9714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
|
|
9715
9717
|
*/
|
|
9716
|
-
'unicorn/number-literal-case'?: Linter.RuleEntry<
|
|
9718
|
+
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
9717
9719
|
/**
|
|
9718
9720
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
9719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
|
|
9720
9722
|
*/
|
|
9721
9723
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
9722
9724
|
/**
|
|
9723
9725
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
9724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
|
|
9725
9727
|
*/
|
|
9726
9728
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
9727
9729
|
/**
|
|
9728
9730
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
9729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
|
|
9730
9732
|
*/
|
|
9731
9733
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
9732
9734
|
/**
|
|
9733
9735
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
9734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
|
|
9735
9737
|
*/
|
|
9736
9738
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
9737
9739
|
/**
|
|
9738
9740
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
9739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
|
|
9740
9742
|
*/
|
|
9741
9743
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
9742
9744
|
/**
|
|
9743
9745
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
9744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
|
|
9745
9747
|
*/
|
|
9746
9748
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
9747
9749
|
/**
|
|
9748
9750
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
9749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
|
|
9750
9752
|
*/
|
|
9751
9753
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
9752
9754
|
/**
|
|
9753
9755
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
9754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
|
|
9755
9757
|
*/
|
|
9756
9758
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
9757
9759
|
/**
|
|
9758
9760
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
9759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
9760
9762
|
*/
|
|
9761
9763
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
9762
9764
|
/**
|
|
9763
9765
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
9764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
|
|
9765
9767
|
*/
|
|
9766
9768
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
9767
9769
|
/**
|
|
9768
9770
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
9769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
|
|
9770
9772
|
*/
|
|
9771
9773
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
9772
9774
|
/**
|
|
9773
9775
|
* Prefer default parameters over reassignment.
|
|
9774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
|
|
9775
9777
|
*/
|
|
9776
9778
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
9777
9779
|
/**
|
|
9778
9780
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
9779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
|
|
9780
9782
|
*/
|
|
9781
9783
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
9782
9784
|
/**
|
|
9783
9785
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
9784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
9785
9787
|
*/
|
|
9786
9788
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
9787
9789
|
/**
|
|
9788
9790
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
9789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
|
|
9790
9792
|
*/
|
|
9791
9793
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
9792
9794
|
/**
|
|
9793
9795
|
* Prefer `.textContent` over `.innerText`.
|
|
9794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
9795
9797
|
*/
|
|
9796
9798
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
9797
9799
|
/**
|
|
9798
9800
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
9799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
|
|
9800
9802
|
*/
|
|
9801
9803
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
9802
9804
|
/**
|
|
9803
9805
|
* Prefer `export…from` when re-exporting.
|
|
9804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
|
|
9805
9807
|
*/
|
|
9806
9808
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
9807
9809
|
/**
|
|
9808
9810
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
9809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
|
|
9810
9812
|
*/
|
|
9811
9813
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
9812
9814
|
/**
|
|
9813
9815
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
9814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
|
|
9815
9817
|
*/
|
|
9816
9818
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
9817
9819
|
/**
|
|
9818
9820
|
* Prefer reading a JSON file as a buffer.
|
|
9819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
9820
9822
|
*/
|
|
9821
9823
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
9822
9824
|
/**
|
|
9823
9825
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
9824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
9825
9827
|
*/
|
|
9826
9828
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
9827
9829
|
/**
|
|
9828
9830
|
* Prefer using a logical operator over a ternary.
|
|
9829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
9830
9832
|
*/
|
|
9831
9833
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
9832
9834
|
/**
|
|
9833
9835
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
9834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
|
|
9835
9837
|
*/
|
|
9836
9838
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
9837
9839
|
/**
|
|
9838
9840
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
9839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
|
|
9840
9842
|
*/
|
|
9841
9843
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
9842
9844
|
/**
|
|
9843
9845
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
9844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
9845
9847
|
*/
|
|
9846
9848
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
9847
9849
|
/**
|
|
9848
9850
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
9849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
|
|
9850
9852
|
*/
|
|
9851
9853
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
9852
9854
|
/**
|
|
9853
9855
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
9854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
|
|
9855
9857
|
*/
|
|
9856
9858
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
9857
9859
|
/**
|
|
9858
9860
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
9859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
9860
9862
|
*/
|
|
9861
9863
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
9862
9864
|
/**
|
|
9863
9865
|
* Prefer negative index over `.length - index` when possible.
|
|
9864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
|
|
9865
9867
|
*/
|
|
9866
9868
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
9867
9869
|
/**
|
|
9868
9870
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
9869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
|
|
9870
9872
|
*/
|
|
9871
9873
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
9872
9874
|
/**
|
|
9873
9875
|
* Prefer `Number` static properties over global ones.
|
|
9874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
|
|
9875
9877
|
*/
|
|
9876
9878
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
9877
9879
|
/**
|
|
9878
9880
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
9879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
|
|
9880
9882
|
*/
|
|
9881
9883
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
9882
9884
|
/**
|
|
9883
9885
|
* Prefer omitting the `catch` binding parameter.
|
|
9884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
9885
9887
|
*/
|
|
9886
9888
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
9887
9889
|
/**
|
|
9888
9890
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
9889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
|
|
9890
9892
|
*/
|
|
9891
9893
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
9892
9894
|
/**
|
|
9893
9895
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
9894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
|
|
9895
9897
|
*/
|
|
9896
9898
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
9897
9899
|
/**
|
|
9898
9900
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
9899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
|
|
9900
9902
|
*/
|
|
9901
9903
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
9902
9904
|
/**
|
|
9903
9905
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
9904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
|
|
9905
9907
|
*/
|
|
9906
9908
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
9907
9909
|
/**
|
|
9908
9910
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
9909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
|
|
9910
9912
|
*/
|
|
9911
9913
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
9912
9914
|
/**
|
|
9913
9915
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
9914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
|
|
9915
9917
|
*/
|
|
9916
9918
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
9917
9919
|
/**
|
|
9918
9920
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
9919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
|
|
9920
9922
|
*/
|
|
9921
9923
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
9922
9924
|
/**
|
|
9923
9925
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
9924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
|
|
9925
9927
|
*/
|
|
9926
9928
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
9927
9929
|
/**
|
|
9928
9930
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
9929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
|
|
9930
9932
|
*/
|
|
9931
9933
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
9932
9934
|
/**
|
|
9933
9935
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
9934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
|
|
9935
9937
|
*/
|
|
9936
9938
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
9937
9939
|
/**
|
|
9938
9940
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
9939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
9940
9942
|
*/
|
|
9941
9943
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
9942
9944
|
/**
|
|
9943
9945
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
9944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
9945
9947
|
*/
|
|
9946
9948
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
9947
9949
|
/**
|
|
9948
9950
|
* Prefer using `structuredClone` to create a deep clone.
|
|
9949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
|
|
9950
9952
|
*/
|
|
9951
9953
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
9952
9954
|
/**
|
|
9953
9955
|
* Prefer `switch` over multiple `else-if`.
|
|
9954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
|
|
9955
9957
|
*/
|
|
9956
9958
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
9957
9959
|
/**
|
|
9958
9960
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
9959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
|
|
9960
9962
|
*/
|
|
9961
9963
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
9962
9964
|
/**
|
|
9963
9965
|
* Prefer top-level await over top-level promises and async function calls.
|
|
9964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
|
|
9965
9967
|
*/
|
|
9966
9968
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
9967
9969
|
/**
|
|
9968
9970
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
9969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
|
|
9970
9972
|
*/
|
|
9971
9973
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
9972
9974
|
/**
|
|
9973
9975
|
* Prevent abbreviations.
|
|
9974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
|
|
9975
9977
|
*/
|
|
9976
9978
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
9977
9979
|
/**
|
|
9978
9980
|
* Enforce consistent relative URL style.
|
|
9979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
|
|
9980
9982
|
*/
|
|
9981
9983
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
9982
9984
|
/**
|
|
9983
9985
|
* Enforce using the separator argument with `Array#join()`.
|
|
9984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
|
|
9985
9987
|
*/
|
|
9986
9988
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
9987
9989
|
/**
|
|
9988
9990
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
9989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
9990
9992
|
*/
|
|
9991
9993
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
9992
9994
|
/**
|
|
9993
9995
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
9994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
|
|
9995
9997
|
*/
|
|
9996
9998
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
9997
9999
|
/**
|
|
9998
10000
|
* Enforce better string content.
|
|
9999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
|
|
10000
10002
|
*/
|
|
10001
10003
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
10002
10004
|
/**
|
|
10003
10005
|
* Enforce consistent brace style for `case` clauses.
|
|
10004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
|
|
10005
10007
|
*/
|
|
10006
10008
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
10007
10009
|
/**
|
|
10008
10010
|
* Fix whitespace-insensitive template indentation.
|
|
10009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
|
|
10010
10012
|
*/
|
|
10011
10013
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
10012
10014
|
/**
|
|
10013
10015
|
* Enforce consistent case for text encoding identifiers.
|
|
10014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
|
|
10015
10017
|
*/
|
|
10016
10018
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
|
|
10017
10019
|
/**
|
|
10018
10020
|
* Require `new` when creating an error.
|
|
10019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
|
|
10020
10022
|
*/
|
|
10021
10023
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
10022
10024
|
}
|
|
@@ -10036,6 +10038,7 @@ type UnicornConsistentFunctionScoping = [] | [
|
|
|
10036
10038
|
checkArrowFunctions?: boolean;
|
|
10037
10039
|
}
|
|
10038
10040
|
];
|
|
10041
|
+
type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
|
|
10039
10042
|
type UnicornExpiringTodoComments = [] | [
|
|
10040
10043
|
{
|
|
10041
10044
|
terms?: string[];
|
|
@@ -10131,6 +10134,11 @@ type UnicornNoUselessUndefined = [] | [
|
|
|
10131
10134
|
checkArrowFunctionBody?: boolean;
|
|
10132
10135
|
}
|
|
10133
10136
|
];
|
|
10137
|
+
type UnicornNumberLiteralCase = [] | [
|
|
10138
|
+
{
|
|
10139
|
+
hexadecimalValue?: ("uppercase" | "lowercase");
|
|
10140
|
+
}
|
|
10141
|
+
];
|
|
10134
10142
|
type UnicornNumericSeparatorsStyle = [] | [
|
|
10135
10143
|
{
|
|
10136
10144
|
binary?: {
|
|
@@ -10686,6 +10694,111 @@ type VitestValidTitle = [] | [
|
|
|
10686
10694
|
];
|
|
10687
10695
|
|
|
10688
10696
|
interface VueRules {
|
|
10697
|
+
/**
|
|
10698
|
+
* enforce specific casing for localization keys
|
|
10699
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/key-format-style.html
|
|
10700
|
+
*/
|
|
10701
|
+
'@intlify/vue-i18n/key-format-style'?: Linter.RuleEntry<IntlifyVueI18NKeyFormatStyle>;
|
|
10702
|
+
/**
|
|
10703
|
+
* disallow using deprecated `<i18n>` components (in Vue I18n 9.0.0+)
|
|
10704
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-component.html
|
|
10705
|
+
*/
|
|
10706
|
+
'@intlify/vue-i18n/no-deprecated-i18n-component'?: Linter.RuleEntry<[]>;
|
|
10707
|
+
/**
|
|
10708
|
+
* disallow using deprecated `place` attribute (Removed in Vue I18n 9.0.0+)
|
|
10709
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-place-attr.html
|
|
10710
|
+
*/
|
|
10711
|
+
'@intlify/vue-i18n/no-deprecated-i18n-place-attr'?: Linter.RuleEntry<[]>;
|
|
10712
|
+
/**
|
|
10713
|
+
* disallow using deprecated `places` prop (Removed in Vue I18n 9.0.0+)
|
|
10714
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-places-prop.html
|
|
10715
|
+
*/
|
|
10716
|
+
'@intlify/vue-i18n/no-deprecated-i18n-places-prop'?: Linter.RuleEntry<[]>;
|
|
10717
|
+
/**
|
|
10718
|
+
* enforce modulo interpolation to be named interpolation
|
|
10719
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-modulo-syntax.html
|
|
10720
|
+
*/
|
|
10721
|
+
'@intlify/vue-i18n/no-deprecated-modulo-syntax'?: Linter.RuleEntry<[]>;
|
|
10722
|
+
/**
|
|
10723
|
+
* disallow using deprecated `tc` or `$tc` (Deprecated in Vue I18n 10.0.0, removed fully in Vue I18n 11.0.0)
|
|
10724
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-tc.html
|
|
10725
|
+
*/
|
|
10726
|
+
'@intlify/vue-i18n/no-deprecated-tc'?: Linter.RuleEntry<[]>;
|
|
10727
|
+
/**
|
|
10728
|
+
* disallow using deprecated `v-t` custom directive (Deprecated in Vue I18n 11.0.0, removed fully in Vue I18n 12.0.0)
|
|
10729
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-v-t.html
|
|
10730
|
+
*/
|
|
10731
|
+
'@intlify/vue-i18n/no-deprecated-v-t'?: Linter.RuleEntry<[]>;
|
|
10732
|
+
/**
|
|
10733
|
+
* disallow duplicate localization keys within the same locale
|
|
10734
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-duplicate-keys-in-locale.html
|
|
10735
|
+
*/
|
|
10736
|
+
'@intlify/vue-i18n/no-duplicate-keys-in-locale'?: Linter.RuleEntry<IntlifyVueI18NNoDuplicateKeysInLocale>;
|
|
10737
|
+
/**
|
|
10738
|
+
* disallow localization dynamic keys at localization methods
|
|
10739
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-dynamic-keys.html
|
|
10740
|
+
*/
|
|
10741
|
+
'@intlify/vue-i18n/no-dynamic-keys'?: Linter.RuleEntry<[]>;
|
|
10742
|
+
/**
|
|
10743
|
+
* disallow use HTML localization messages
|
|
10744
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-html-messages.html
|
|
10745
|
+
*/
|
|
10746
|
+
'@intlify/vue-i18n/no-html-messages'?: Linter.RuleEntry<[]>;
|
|
10747
|
+
/**
|
|
10748
|
+
* disallow using `path` prop with `<i18n-t>`
|
|
10749
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-i18n-t-path-prop.html
|
|
10750
|
+
*/
|
|
10751
|
+
'@intlify/vue-i18n/no-i18n-t-path-prop'?: Linter.RuleEntry<[]>;
|
|
10752
|
+
/**
|
|
10753
|
+
* disallow missing locale message key at localization methods
|
|
10754
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys.html
|
|
10755
|
+
*/
|
|
10756
|
+
'@intlify/vue-i18n/no-missing-keys'?: Linter.RuleEntry<[]>;
|
|
10757
|
+
/**
|
|
10758
|
+
* disallow missing locale message keys in other locales
|
|
10759
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys-in-other-locales.html
|
|
10760
|
+
*/
|
|
10761
|
+
'@intlify/vue-i18n/no-missing-keys-in-other-locales'?: Linter.RuleEntry<IntlifyVueI18NNoMissingKeysInOtherLocales>;
|
|
10762
|
+
/**
|
|
10763
|
+
* disallow to string literal in template or JSX
|
|
10764
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-raw-text.html
|
|
10765
|
+
*/
|
|
10766
|
+
'@intlify/vue-i18n/no-raw-text'?: Linter.RuleEntry<IntlifyVueI18NNoRawText>;
|
|
10767
|
+
/**
|
|
10768
|
+
* disallow unknown locale name
|
|
10769
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-unknown-locale.html
|
|
10770
|
+
*/
|
|
10771
|
+
'@intlify/vue-i18n/no-unknown-locale'?: Linter.RuleEntry<IntlifyVueI18NNoUnknownLocale>;
|
|
10772
|
+
/**
|
|
10773
|
+
* disallow unused localization keys
|
|
10774
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-unused-keys.html
|
|
10775
|
+
*/
|
|
10776
|
+
'@intlify/vue-i18n/no-unused-keys'?: Linter.RuleEntry<IntlifyVueI18NNoUnusedKeys>;
|
|
10777
|
+
/**
|
|
10778
|
+
* disallow use of localization methods on v-html to prevent XSS attack
|
|
10779
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html
|
|
10780
|
+
*/
|
|
10781
|
+
'@intlify/vue-i18n/no-v-html'?: Linter.RuleEntry<[]>;
|
|
10782
|
+
/**
|
|
10783
|
+
* enforce linked key to be enclosed in parentheses
|
|
10784
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-linked-key-with-paren.html
|
|
10785
|
+
*/
|
|
10786
|
+
'@intlify/vue-i18n/prefer-linked-key-with-paren'?: Linter.RuleEntry<[]>;
|
|
10787
|
+
/**
|
|
10788
|
+
* require lang attribute on `<i18n>` block
|
|
10789
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-sfc-lang-attr.html
|
|
10790
|
+
*/
|
|
10791
|
+
'@intlify/vue-i18n/prefer-sfc-lang-attr'?: Linter.RuleEntry<[]>;
|
|
10792
|
+
/**
|
|
10793
|
+
* require or disallow the locale attribute on `<i18n>` block
|
|
10794
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/sfc-locale-attr.html
|
|
10795
|
+
*/
|
|
10796
|
+
'@intlify/vue-i18n/sfc-locale-attr'?: Linter.RuleEntry<IntlifyVueI18NSfcLocaleAttr>;
|
|
10797
|
+
/**
|
|
10798
|
+
* disallow invalid message syntax
|
|
10799
|
+
* @see https://eslint-plugin-vue-i18n.intlify.dev/rules/valid-message-syntax.html
|
|
10800
|
+
*/
|
|
10801
|
+
'@intlify/vue-i18n/valid-message-syntax'?: Linter.RuleEntry<IntlifyVueI18NValidMessageSyntax>;
|
|
10689
10802
|
'vue-composable/composable-placement'?: Linter.RuleEntry<[]>;
|
|
10690
10803
|
'vue-composable/lifecycle-placement'?: Linter.RuleEntry<[]>;
|
|
10691
10804
|
/**
|
|
@@ -10864,12 +10977,6 @@ interface VueRules {
|
|
|
10864
10977
|
* @see https://eslint.vuejs.org/rules/component-options-name-casing.html
|
|
10865
10978
|
*/
|
|
10866
10979
|
'vue/component-options-name-casing'?: Linter.RuleEntry<VueComponentOptionsNameCasing>;
|
|
10867
|
-
/**
|
|
10868
|
-
* enforce order of component top-level elements
|
|
10869
|
-
* @see https://eslint.vuejs.org/rules/component-tags-order.html
|
|
10870
|
-
* @deprecated
|
|
10871
|
-
*/
|
|
10872
|
-
'vue/component-tags-order'?: Linter.RuleEntry<VueComponentTagsOrder>;
|
|
10873
10980
|
/**
|
|
10874
10981
|
* enforce specific casing for custom event name
|
|
10875
10982
|
* @see https://eslint.vuejs.org/rules/custom-event-name-casing.html
|
|
@@ -11251,11 +11358,10 @@ interface VueRules {
|
|
|
11251
11358
|
*/
|
|
11252
11359
|
'vue/no-implicit-coercion'?: Linter.RuleEntry<VueNoImplicitCoercion>;
|
|
11253
11360
|
/**
|
|
11254
|
-
*
|
|
11255
|
-
* @see https://eslint.vuejs.org/rules/no-
|
|
11256
|
-
* @deprecated
|
|
11361
|
+
* disallow importing Vue compiler macros
|
|
11362
|
+
* @see https://eslint.vuejs.org/rules/no-import-compiler-macros.html
|
|
11257
11363
|
*/
|
|
11258
|
-
'vue/no-
|
|
11364
|
+
'vue/no-import-compiler-macros'?: Linter.RuleEntry<[]>;
|
|
11259
11365
|
/**
|
|
11260
11366
|
* disallow irregular whitespace in `.vue` files
|
|
11261
11367
|
* @see https://eslint.vuejs.org/rules/no-irregular-whitespace.html
|
|
@@ -11316,12 +11422,6 @@ interface VueRules {
|
|
|
11316
11422
|
* @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
|
|
11317
11423
|
*/
|
|
11318
11424
|
'vue/no-ref-as-operand'?: Linter.RuleEntry<[]>;
|
|
11319
|
-
/**
|
|
11320
|
-
* disallow usages of ref objects that can lead to loss of reactivity
|
|
11321
|
-
* @see https://eslint.vuejs.org/rules/no-ref-object-destructure.html
|
|
11322
|
-
* @deprecated
|
|
11323
|
-
*/
|
|
11324
|
-
'vue/no-ref-object-destructure'?: Linter.RuleEntry<[]>;
|
|
11325
11425
|
/**
|
|
11326
11426
|
* disallow usages of ref objects that can lead to loss of reactivity
|
|
11327
11427
|
* @see https://eslint.vuejs.org/rules/no-ref-object-reactivity-loss.html
|
|
@@ -11412,12 +11512,6 @@ interface VueRules {
|
|
|
11412
11512
|
* @see https://eslint.vuejs.org/rules/no-root-v-if.html
|
|
11413
11513
|
*/
|
|
11414
11514
|
'vue/no-root-v-if'?: Linter.RuleEntry<[]>;
|
|
11415
|
-
/**
|
|
11416
|
-
* disallow usages that lose the reactivity of `props` passed to `setup`
|
|
11417
|
-
* @see https://eslint.vuejs.org/rules/no-setup-props-destructure.html
|
|
11418
|
-
* @deprecated
|
|
11419
|
-
*/
|
|
11420
|
-
'vue/no-setup-props-destructure'?: Linter.RuleEntry<[]>;
|
|
11421
11515
|
/**
|
|
11422
11516
|
* disallow usages that lose the reactivity of `props` passed to `setup`
|
|
11423
11517
|
* @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
|
|
@@ -11551,6 +11645,7 @@ interface VueRules {
|
|
|
11551
11645
|
/**
|
|
11552
11646
|
* disallow `key` attribute on `<template v-for>`
|
|
11553
11647
|
* @see https://eslint.vuejs.org/rules/no-v-for-template-key.html
|
|
11648
|
+
* @deprecated
|
|
11554
11649
|
*/
|
|
11555
11650
|
'vue/no-v-for-template-key'?: Linter.RuleEntry<[]>;
|
|
11556
11651
|
/**
|
|
@@ -11566,6 +11661,7 @@ interface VueRules {
|
|
|
11566
11661
|
/**
|
|
11567
11662
|
* disallow adding an argument to `v-model` used in custom component
|
|
11568
11663
|
* @see https://eslint.vuejs.org/rules/no-v-model-argument.html
|
|
11664
|
+
* @deprecated
|
|
11569
11665
|
*/
|
|
11570
11666
|
'vue/no-v-model-argument'?: Linter.RuleEntry<[]>;
|
|
11571
11667
|
/**
|
|
@@ -11798,12 +11894,6 @@ interface VueRules {
|
|
|
11798
11894
|
* @see https://eslint.vuejs.org/rules/script-indent.html
|
|
11799
11895
|
*/
|
|
11800
11896
|
'vue/script-indent'?: Linter.RuleEntry<VueScriptIndent>;
|
|
11801
|
-
/**
|
|
11802
|
-
* prevent `<script setup>` variables used in `<template>` to be marked as unused
|
|
11803
|
-
* @see https://eslint.vuejs.org/rules/script-setup-uses-vars.html
|
|
11804
|
-
* @deprecated
|
|
11805
|
-
*/
|
|
11806
|
-
'vue/script-setup-uses-vars'?: Linter.RuleEntry<[]>;
|
|
11807
11897
|
/**
|
|
11808
11898
|
* require a line break before and after the contents of a singleline element
|
|
11809
11899
|
* @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
|
|
@@ -11874,12 +11964,6 @@ interface VueRules {
|
|
|
11874
11964
|
* @see https://eslint.vuejs.org/rules/v-on-event-hyphenation.html
|
|
11875
11965
|
*/
|
|
11876
11966
|
'vue/v-on-event-hyphenation'?: Linter.RuleEntry<VueVOnEventHyphenation>;
|
|
11877
|
-
/**
|
|
11878
|
-
* enforce or forbid parentheses after method calls without arguments in `v-on` directives
|
|
11879
|
-
* @see https://eslint.vuejs.org/rules/v-on-function-call.html
|
|
11880
|
-
* @deprecated
|
|
11881
|
-
*/
|
|
11882
|
-
'vue/v-on-function-call'?: Linter.RuleEntry<VueVOnFunctionCall>;
|
|
11883
11967
|
/**
|
|
11884
11968
|
* enforce writing style for handlers in `v-on` directives
|
|
11885
11969
|
* @see https://eslint.vuejs.org/rules/v-on-handler-style.html
|
|
@@ -11918,6 +12002,7 @@ interface VueRules {
|
|
|
11918
12002
|
/**
|
|
11919
12003
|
* require valid keys in model option
|
|
11920
12004
|
* @see https://eslint.vuejs.org/rules/valid-model-definition.html
|
|
12005
|
+
* @deprecated
|
|
11921
12006
|
*/
|
|
11922
12007
|
'vue/valid-model-definition'?: Linter.RuleEntry<[]>;
|
|
11923
12008
|
/**
|
|
@@ -11938,6 +12023,7 @@ interface VueRules {
|
|
|
11938
12023
|
/**
|
|
11939
12024
|
* enforce valid `.sync` modifier on `v-bind` directives
|
|
11940
12025
|
* @see https://eslint.vuejs.org/rules/valid-v-bind-sync.html
|
|
12026
|
+
* @deprecated
|
|
11941
12027
|
*/
|
|
11942
12028
|
'vue/valid-v-bind-sync'?: Linter.RuleEntry<[]>;
|
|
11943
12029
|
/**
|
|
@@ -12109,6 +12195,54 @@ interface VueRules {
|
|
|
12109
12195
|
*/
|
|
12110
12196
|
'vuejs-accessibility/tabindex-no-positive'?: Linter.RuleEntry<[]>;
|
|
12111
12197
|
}
|
|
12198
|
+
type IntlifyVueI18NKeyFormatStyle = [] | [("camelCase" | "kebab-case" | "lowercase" | "snake_case" | "SCREAMING_SNAKE_CASE")] | [
|
|
12199
|
+
("camelCase" | "kebab-case" | "lowercase" | "snake_case" | "SCREAMING_SNAKE_CASE"),
|
|
12200
|
+
{
|
|
12201
|
+
allowArray?: boolean;
|
|
12202
|
+
splitByDots?: boolean;
|
|
12203
|
+
}
|
|
12204
|
+
];
|
|
12205
|
+
type IntlifyVueI18NNoDuplicateKeysInLocale = [] | [
|
|
12206
|
+
{
|
|
12207
|
+
ignoreI18nBlock?: boolean;
|
|
12208
|
+
}
|
|
12209
|
+
];
|
|
12210
|
+
type IntlifyVueI18NNoMissingKeysInOtherLocales = [] | [
|
|
12211
|
+
{
|
|
12212
|
+
ignoreLocales?: string[];
|
|
12213
|
+
}
|
|
12214
|
+
];
|
|
12215
|
+
type IntlifyVueI18NNoRawText = [] | [
|
|
12216
|
+
{
|
|
12217
|
+
attributes?: {
|
|
12218
|
+
[k: string]: string[];
|
|
12219
|
+
};
|
|
12220
|
+
ignoreNodes?: unknown[];
|
|
12221
|
+
ignorePattern?: string;
|
|
12222
|
+
ignoreText?: unknown[];
|
|
12223
|
+
[k: string]: unknown | undefined;
|
|
12224
|
+
}
|
|
12225
|
+
];
|
|
12226
|
+
type IntlifyVueI18NNoUnknownLocale = [] | [
|
|
12227
|
+
{
|
|
12228
|
+
locales?: string[];
|
|
12229
|
+
disableRFC5646?: boolean;
|
|
12230
|
+
}
|
|
12231
|
+
];
|
|
12232
|
+
type IntlifyVueI18NNoUnusedKeys = [] | [
|
|
12233
|
+
{
|
|
12234
|
+
src?: string;
|
|
12235
|
+
extensions?: string[];
|
|
12236
|
+
ignores?: string[];
|
|
12237
|
+
enableFix?: boolean;
|
|
12238
|
+
}
|
|
12239
|
+
];
|
|
12240
|
+
type IntlifyVueI18NSfcLocaleAttr = [] | [("always" | "never")];
|
|
12241
|
+
type IntlifyVueI18NValidMessageSyntax = [] | [
|
|
12242
|
+
{
|
|
12243
|
+
allowNotString?: boolean;
|
|
12244
|
+
}
|
|
12245
|
+
];
|
|
12112
12246
|
type VueScopedCssEnforceStyleType = [] | [
|
|
12113
12247
|
{
|
|
12114
12248
|
allows?: [("plain" | "scoped" | "module"), ...(("plain" | "scoped" | "module"))[]];
|
|
@@ -12268,21 +12402,12 @@ type VueComponentNameInTemplateCasing = [] | [("PascalCase" | "kebab-case")] | [
|
|
|
12268
12402
|
}
|
|
12269
12403
|
];
|
|
12270
12404
|
type VueComponentOptionsNameCasing = [] | [("camelCase" | "kebab-case" | "PascalCase")];
|
|
12271
|
-
type
|
|
12272
|
-
{
|
|
12273
|
-
order?: (string | string[])[];
|
|
12274
|
-
}
|
|
12275
|
-
];
|
|
12276
|
-
type VueCustomEventNameCasing = ([] | [("kebab-case" | "camelCase")] | [
|
|
12405
|
+
type VueCustomEventNameCasing = [] | [("kebab-case" | "camelCase")] | [
|
|
12277
12406
|
("kebab-case" | "camelCase"),
|
|
12278
12407
|
{
|
|
12279
12408
|
ignores?: string[];
|
|
12280
12409
|
}
|
|
12281
|
-
]
|
|
12282
|
-
{
|
|
12283
|
-
ignores?: string[];
|
|
12284
|
-
}
|
|
12285
|
-
]);
|
|
12410
|
+
];
|
|
12286
12411
|
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
12287
12412
|
type VueDefineMacrosOrder = [] | [
|
|
12288
12413
|
{
|
|
@@ -13274,7 +13399,12 @@ type VuePaddingLinesInComponentDefinition = [] | [
|
|
|
13274
13399
|
groupSingleLineProperties?: boolean;
|
|
13275
13400
|
})
|
|
13276
13401
|
];
|
|
13277
|
-
type VuePreferTrueAttributeShorthand = [] | [("always" | "never")]
|
|
13402
|
+
type VuePreferTrueAttributeShorthand = [] | [("always" | "never")] | [
|
|
13403
|
+
("always" | "never"),
|
|
13404
|
+
{
|
|
13405
|
+
except?: string[];
|
|
13406
|
+
}
|
|
13407
|
+
];
|
|
13278
13408
|
type VuePropNameCasing = [] | [("camelCase" | "snake_case")] | [
|
|
13279
13409
|
("camelCase" | "snake_case"),
|
|
13280
13410
|
{
|
|
@@ -13357,7 +13487,6 @@ type VueSortKeys = [] | [("asc" | "desc")] | [
|
|
|
13357
13487
|
ignoreGrandchildrenOf?: unknown[];
|
|
13358
13488
|
minKeys?: number;
|
|
13359
13489
|
natural?: boolean;
|
|
13360
|
-
runOutsideVue?: boolean;
|
|
13361
13490
|
}
|
|
13362
13491
|
];
|
|
13363
13492
|
type VueSpaceInParens = [] | [("always" | "never")] | [
|
|
@@ -13401,12 +13530,6 @@ type VueVOnEventHyphenation = [] | [("always" | "never")] | [
|
|
|
13401
13530
|
ignoreTags?: string[];
|
|
13402
13531
|
}
|
|
13403
13532
|
];
|
|
13404
|
-
type VueVOnFunctionCall = [] | [("always" | "never")] | [
|
|
13405
|
-
("always" | "never"),
|
|
13406
|
-
{
|
|
13407
|
-
ignoreIncludesComment?: boolean;
|
|
13408
|
-
}
|
|
13409
|
-
];
|
|
13410
13533
|
type VueVOnHandlerStyle = [] | [(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])] | [
|
|
13411
13534
|
(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]),
|
|
13412
13535
|
{
|
|
@@ -14069,7 +14192,7 @@ interface MarkdownOptions {
|
|
|
14069
14192
|
* @returns {Promise<Linter.Config[]>}
|
|
14070
14193
|
* eslint flat configurations with `@eslint/markdown` and overrides
|
|
14071
14194
|
*/
|
|
14072
|
-
declare function markdown(options?: MarkdownOptions & OverridesOptions
|
|
14195
|
+
declare function markdown(options?: MarkdownOptions & OverridesOptions): Promise<Linter.Config[]>;
|
|
14073
14196
|
declare const md: typeof markdown;
|
|
14074
14197
|
|
|
14075
14198
|
/**
|
|
@@ -14293,6 +14416,20 @@ interface VueScriptOptions {
|
|
|
14293
14416
|
* @default false
|
|
14294
14417
|
*/
|
|
14295
14418
|
a11y?: boolean;
|
|
14419
|
+
/**
|
|
14420
|
+
* enable `@intlify/eslint-plugin-vue-i18n` rules
|
|
14421
|
+
* @default false
|
|
14422
|
+
*/
|
|
14423
|
+
i18n?: VueI18nOptions;
|
|
14424
|
+
}
|
|
14425
|
+
/**
|
|
14426
|
+
* `@intlify/eslint-plugin-vue-i18n` configuration options.
|
|
14427
|
+
* same `settings['vue-i18n']`
|
|
14428
|
+
* see https://eslint-plugin-vue-i18n.intlify.dev/started.html#settings-vue-i18n
|
|
14429
|
+
*/
|
|
14430
|
+
interface VueI18nOptions {
|
|
14431
|
+
localeDir?: string;
|
|
14432
|
+
messageSyntaxVersion?: string;
|
|
14296
14433
|
}
|
|
14297
14434
|
/**
|
|
14298
14435
|
* `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides configuration options
|
|
@@ -14324,4 +14461,4 @@ interface YmlOptions {
|
|
|
14324
14461
|
declare function yml(options?: YmlOptions & OverridesOptions<YmlRules>): Promise<Linter.Config[]>;
|
|
14325
14462
|
declare const yaml: typeof yml;
|
|
14326
14463
|
|
|
14327
|
-
export { type CommentsOptions, type CommentsRules, type CssOptions, type CssRules, type ImportsOptions, type ImportsRules, type JavaScriptOptions, type JavascriptRules, type JsDocumentOptions, type JsdocRules, type JsoncOptions, type JsoncRules, type MarkdownOptions, type MarkdownRules, type OverridesOptions, type PrettierOptions, type PrettierRules, type PromiseOptions, type PromiseRules, type ReactOptions, type ReactRules, type RegexpOptions, type RegexpRules, type SvelteRules, type SvelteScriptOptions, type TomlOptions, type TomlRules, type TypeScriptOptions, type TypeScriptParserOptions, type TypeScriptProjectServiceOptions, type TypescriptRules, type UnicornOptions, type UnicornRules, type VitestOptions, type VitestRules, type VueRules, type VueScriptOptions, type YmlOptions, type YmlRules, comments, css, defineConfig, imports, javascript, jsdoc, jsonc, markdown, md, prettier, promise, react, regexp, svelte, toml, typescript, unicorn, vitest, vue, yaml, yml };
|
|
14464
|
+
export { type CommentsOptions, type CommentsRules, type CssOptions, type CssRules, type ImportsOptions, type ImportsRules, type JavaScriptOptions, type JavascriptRules, type JsDocumentOptions, type JsdocRules, type JsoncOptions, type JsoncRules, type MarkdownOptions, type MarkdownRules, type OverridesOptions, type PrettierOptions, type PrettierRules, type PromiseOptions, type PromiseRules, type ReactOptions, type ReactRules, type RegexpOptions, type RegexpRules, type SvelteRules, type SvelteScriptOptions, type TomlOptions, type TomlRules, type TypeScriptOptions, type TypeScriptParserOptions, type TypeScriptProjectServiceOptions, type TypescriptRules, type UnicornOptions, type UnicornRules, type VitestOptions, type VitestRules, type VueI18nOptions, type VueRules, type VueScriptOptions, type YmlOptions, type YmlRules, comments, css, defineConfig, imports, javascript, jsdoc, jsonc, markdown, md, prettier, promise, react, regexp, svelte, toml, typescript, unicorn, vitest, vue, yaml, yml };
|