@lincy/eslint-config 6.0.0 → 6.0.1
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.cjs +8 -8
- package/dist/index.d.cts +291 -147
- package/dist/{index.d.ts → index.d.mts} +291 -147
- package/dist/{index.js → index.mjs} +8 -3
- package/dist/{lib-B2tdYoXA.cjs → lib-BJFVxmuP.cjs} +828 -613
- package/dist/{lib-DMY_mkdT.js → lib-D3OsxTXr.mjs} +828 -632
- package/package.json +38 -37
package/dist/index.d.cts
CHANGED
|
@@ -774,6 +774,26 @@ interface RuleOptions {
|
|
|
774
774
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
775
775
|
*/
|
|
776
776
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
|
|
777
|
+
/**
|
|
778
|
+
* Prefers either function properties or method signatures
|
|
779
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
780
|
+
*/
|
|
781
|
+
'jsdoc/ts-method-signature-style'?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>;
|
|
782
|
+
/**
|
|
783
|
+
* Warns against use of the empty object type
|
|
784
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
|
|
785
|
+
*/
|
|
786
|
+
'jsdoc/ts-no-empty-object-type'?: Linter.RuleEntry<[]>;
|
|
787
|
+
/**
|
|
788
|
+
* Catches unnecessary template expressions such as string expressions within a template literal.
|
|
789
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
|
|
790
|
+
*/
|
|
791
|
+
'jsdoc/ts-no-unnecessary-template-expression'?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>;
|
|
792
|
+
/**
|
|
793
|
+
* Prefers function types over call signatures when there are no other properties.
|
|
794
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
|
|
795
|
+
*/
|
|
796
|
+
'jsdoc/ts-prefer-function-type'?: Linter.RuleEntry<JsdocTsPreferFunctionType>;
|
|
777
797
|
/**
|
|
778
798
|
* Formats JSDoc type values.
|
|
779
799
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
|
|
@@ -2724,7 +2744,7 @@ interface RuleOptions {
|
|
|
2724
2744
|
*/
|
|
2725
2745
|
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
2726
2746
|
/**
|
|
2727
|
-
* Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
2747
|
+
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
2728
2748
|
*/
|
|
2729
2749
|
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
2730
2750
|
/**
|
|
@@ -2773,6 +2793,11 @@ interface RuleOptions {
|
|
|
2773
2793
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
2774
2794
|
*/
|
|
2775
2795
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
2796
|
+
/**
|
|
2797
|
+
* Prevents dollar signs from being inserted as text nodes before expressions.
|
|
2798
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
2799
|
+
*/
|
|
2800
|
+
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
2776
2801
|
/**
|
|
2777
2802
|
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
2778
2803
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
@@ -2911,6 +2936,7 @@ interface RuleOptions {
|
|
|
2911
2936
|
/**
|
|
2912
2937
|
* Disallow certain props on components.
|
|
2913
2938
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
2939
|
+
* @deprecated
|
|
2914
2940
|
*/
|
|
2915
2941
|
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
2916
2942
|
/**
|
|
@@ -3032,7 +3058,7 @@ interface RuleOptions {
|
|
|
3032
3058
|
* Prevents using referential-type values as default props in object destructuring.
|
|
3033
3059
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
3034
3060
|
*/
|
|
3035
|
-
'react/no-unstable-default-props'?: Linter.RuleEntry<
|
|
3061
|
+
'react/no-unstable-default-props'?: Linter.RuleEntry<ReactNoUnstableDefaultProps>;
|
|
3036
3062
|
/**
|
|
3037
3063
|
* Warns unused class component methods and properties.
|
|
3038
3064
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
@@ -3663,6 +3689,11 @@ interface RuleOptions {
|
|
|
3663
3689
|
* @see https://eslint.style/rules/eol-last
|
|
3664
3690
|
*/
|
|
3665
3691
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
3692
|
+
/**
|
|
3693
|
+
* Enforce consistent spacing and line break styles inside brackets.
|
|
3694
|
+
* @see https://eslint.style/rules/list-style
|
|
3695
|
+
*/
|
|
3696
|
+
'style/exp-list-style'?: Linter.RuleEntry<StyleExpListStyle>;
|
|
3666
3697
|
/**
|
|
3667
3698
|
* Enforce line breaks between arguments of a function call
|
|
3668
3699
|
* @see https://eslint.style/rules/function-call-argument-newline
|
|
@@ -4424,6 +4455,11 @@ interface RuleOptions {
|
|
|
4424
4455
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
4425
4456
|
*/
|
|
4426
4457
|
'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
4458
|
+
/**
|
|
4459
|
+
* ensure that every `expect.poll` call is awaited
|
|
4460
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
4461
|
+
*/
|
|
4462
|
+
'test/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
4427
4463
|
/**
|
|
4428
4464
|
* require setup and teardown to be within a hook
|
|
4429
4465
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -5028,6 +5064,11 @@ interface RuleOptions {
|
|
|
5028
5064
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
5029
5065
|
*/
|
|
5030
5066
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>;
|
|
5067
|
+
/**
|
|
5068
|
+
* Disallow unused private class members
|
|
5069
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
5070
|
+
*/
|
|
5071
|
+
'ts/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
5031
5072
|
/**
|
|
5032
5073
|
* Disallow unused variables
|
|
5033
5074
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -5254,710 +5295,725 @@ interface RuleOptions {
|
|
|
5254
5295
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
5255
5296
|
/**
|
|
5256
5297
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
5258
5299
|
*/
|
|
5259
5300
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
5260
5301
|
/**
|
|
5261
5302
|
* Enforce a specific parameter name in catch clauses.
|
|
5262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
5263
5304
|
*/
|
|
5264
5305
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
5265
5306
|
/**
|
|
5266
5307
|
* Enforce consistent assertion style with `node:assert`.
|
|
5267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
5268
5309
|
*/
|
|
5269
5310
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
5270
5311
|
/**
|
|
5271
5312
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
5273
5314
|
*/
|
|
5274
5315
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
5275
5316
|
/**
|
|
5276
5317
|
* Use destructured variables over properties.
|
|
5277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
5278
5319
|
*/
|
|
5279
5320
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
5280
5321
|
/**
|
|
5281
5322
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5283
5324
|
*/
|
|
5284
5325
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
5285
5326
|
/**
|
|
5286
5327
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
5288
5329
|
*/
|
|
5289
5330
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
5290
5331
|
/**
|
|
5291
5332
|
* Move function definitions to the highest possible scope.
|
|
5292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
5293
5334
|
*/
|
|
5294
5335
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
5295
5336
|
/**
|
|
5296
5337
|
* Enforce correct `Error` subclassing.
|
|
5297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
5298
5339
|
*/
|
|
5299
5340
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
5300
5341
|
/**
|
|
5301
5342
|
* Enforce no spaces between braces.
|
|
5302
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
5303
5344
|
*/
|
|
5304
5345
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
5305
5346
|
/**
|
|
5306
5347
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
5308
5349
|
*/
|
|
5309
5350
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
5310
5351
|
/**
|
|
5311
5352
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
5313
5354
|
*/
|
|
5314
5355
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
5315
5356
|
/**
|
|
5316
5357
|
* Add expiration conditions to TODO comments.
|
|
5317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
5318
5359
|
*/
|
|
5319
5360
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
5320
5361
|
/**
|
|
5321
5362
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
5323
5364
|
*/
|
|
5324
5365
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
5325
5366
|
/**
|
|
5326
5367
|
* Enforce a case style for filenames.
|
|
5327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
5328
5369
|
*/
|
|
5329
5370
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
5330
5371
|
/**
|
|
5331
5372
|
* Enforce specific import styles per module.
|
|
5332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
5333
5374
|
*/
|
|
5334
5375
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5335
5376
|
/**
|
|
5336
5377
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
5338
5379
|
*/
|
|
5339
5380
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
5340
5381
|
/**
|
|
5341
5382
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5343
5384
|
*/
|
|
5344
5385
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
5345
5386
|
/**
|
|
5346
5387
|
* Disallow recursive access to `this` within getters and setters.
|
|
5347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
5348
5389
|
*/
|
|
5349
5390
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5350
5391
|
/**
|
|
5351
5392
|
* Disallow anonymous functions and classes as the default export.
|
|
5352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
5353
5394
|
*/
|
|
5354
5395
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5355
5396
|
/**
|
|
5356
5397
|
* Prevent passing a function reference directly to iterator methods.
|
|
5357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
5358
5399
|
*/
|
|
5359
5400
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
5360
5401
|
/**
|
|
5361
5402
|
* Prefer `for…of` over the `forEach` method.
|
|
5362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
5363
5404
|
*/
|
|
5364
5405
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
5365
5406
|
/**
|
|
5366
5407
|
* Disallow using the `this` argument in array methods.
|
|
5367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
5368
5409
|
*/
|
|
5369
5410
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5370
5411
|
/**
|
|
5371
5412
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
5373
5414
|
* @deprecated
|
|
5374
5415
|
*/
|
|
5375
5416
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5376
5417
|
/**
|
|
5377
5418
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
5379
5420
|
*/
|
|
5380
5421
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5381
5422
|
/**
|
|
5382
5423
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
5384
5425
|
*/
|
|
5385
5426
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5386
5427
|
/**
|
|
5387
5428
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
5389
5430
|
*/
|
|
5390
5431
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
5391
5432
|
/**
|
|
5392
5433
|
* Disallow member access from await expression.
|
|
5393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
5394
5435
|
*/
|
|
5395
5436
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5396
5437
|
/**
|
|
5397
5438
|
* Disallow using `await` in `Promise` method parameters.
|
|
5398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5399
5440
|
*/
|
|
5400
5441
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5401
5442
|
/**
|
|
5402
5443
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
5404
5445
|
*/
|
|
5405
5446
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5406
5447
|
/**
|
|
5407
5448
|
* Do not use `document.cookie` directly.
|
|
5408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
5409
5450
|
*/
|
|
5410
5451
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5411
5452
|
/**
|
|
5412
5453
|
* Disallow empty files.
|
|
5413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
5414
5455
|
*/
|
|
5415
5456
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
5416
5457
|
/**
|
|
5417
5458
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5418
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
5419
5460
|
*/
|
|
5420
5461
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5421
5462
|
/**
|
|
5422
5463
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
5424
5465
|
*/
|
|
5425
5466
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5467
|
+
/**
|
|
5468
|
+
* Disallow immediate mutation after variable assignment.
|
|
5469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
5470
|
+
*/
|
|
5471
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
5426
5472
|
/**
|
|
5427
5473
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5428
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5429
5475
|
* @deprecated
|
|
5430
5476
|
*/
|
|
5431
5477
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5432
5478
|
/**
|
|
5433
5479
|
* Disallow `instanceof` with built-in objects
|
|
5434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
5435
5481
|
*/
|
|
5436
5482
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5437
5483
|
/**
|
|
5438
5484
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5440
5486
|
*/
|
|
5441
5487
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5442
5488
|
/**
|
|
5443
5489
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5445
5491
|
*/
|
|
5446
5492
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5447
5493
|
/**
|
|
5448
5494
|
* Disallow identifiers starting with `new` or `class`.
|
|
5449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
5450
5496
|
*/
|
|
5451
5497
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5452
5498
|
/**
|
|
5453
5499
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
5455
5501
|
* @deprecated
|
|
5456
5502
|
*/
|
|
5457
5503
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5458
5504
|
/**
|
|
5459
5505
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
5461
5507
|
*/
|
|
5462
5508
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5463
5509
|
/**
|
|
5464
5510
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5465
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5466
5512
|
*/
|
|
5467
5513
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5468
5514
|
/**
|
|
5469
5515
|
* Disallow named usage of default import and export.
|
|
5470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
5471
5517
|
*/
|
|
5472
5518
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5473
5519
|
/**
|
|
5474
5520
|
* Disallow negated conditions.
|
|
5475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
5476
5522
|
*/
|
|
5477
5523
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5478
5524
|
/**
|
|
5479
5525
|
* Disallow negated expression in equality check.
|
|
5480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5481
5527
|
*/
|
|
5482
5528
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5483
5529
|
/**
|
|
5484
5530
|
* Disallow nested ternary expressions.
|
|
5485
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
5486
5532
|
*/
|
|
5487
5533
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5488
5534
|
/**
|
|
5489
5535
|
* Disallow `new Array()`.
|
|
5490
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
5491
5537
|
*/
|
|
5492
5538
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5493
5539
|
/**
|
|
5494
5540
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5495
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
5496
5542
|
*/
|
|
5497
5543
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5498
5544
|
/**
|
|
5499
5545
|
* Disallow the use of the `null` literal.
|
|
5500
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
5501
5547
|
*/
|
|
5502
5548
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5503
5549
|
/**
|
|
5504
5550
|
* Disallow the use of objects as default parameters.
|
|
5505
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5506
5552
|
*/
|
|
5507
5553
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5508
5554
|
/**
|
|
5509
5555
|
* Disallow `process.exit()`.
|
|
5510
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
5511
5557
|
*/
|
|
5512
5558
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5513
5559
|
/**
|
|
5514
5560
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5515
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5516
5562
|
*/
|
|
5517
5563
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5518
5564
|
/**
|
|
5519
5565
|
* Disallow classes that only have static members.
|
|
5520
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
5521
5567
|
*/
|
|
5522
5568
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5523
5569
|
/**
|
|
5524
5570
|
* Disallow `then` property.
|
|
5525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
5526
5572
|
*/
|
|
5527
5573
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5528
5574
|
/**
|
|
5529
5575
|
* Disallow assigning `this` to a variable.
|
|
5530
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
5531
5577
|
*/
|
|
5532
5578
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5533
5579
|
/**
|
|
5534
5580
|
* Disallow comparing `undefined` using `typeof`.
|
|
5535
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
5536
5582
|
*/
|
|
5537
5583
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5538
5584
|
/**
|
|
5539
5585
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5540
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5541
5587
|
*/
|
|
5542
5588
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5543
5589
|
/**
|
|
5544
5590
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5545
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5546
5592
|
*/
|
|
5547
5593
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5548
5594
|
/**
|
|
5549
5595
|
* Disallow awaiting non-promise values.
|
|
5550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
5551
5597
|
*/
|
|
5552
5598
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5553
5599
|
/**
|
|
5554
5600
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5556
5602
|
*/
|
|
5557
5603
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5558
5604
|
/**
|
|
5559
5605
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5561
5607
|
*/
|
|
5562
5608
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5563
5609
|
/**
|
|
5564
5610
|
* Disallow unreadable array destructuring.
|
|
5565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5566
5612
|
*/
|
|
5567
5613
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
5568
5614
|
/**
|
|
5569
5615
|
* Disallow unreadable IIFEs.
|
|
5570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
5571
5617
|
*/
|
|
5572
5618
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5573
5619
|
/**
|
|
5574
5620
|
* Disallow unused object properties.
|
|
5575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
5576
5622
|
*/
|
|
5577
5623
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5624
|
+
/**
|
|
5625
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
5627
|
+
*/
|
|
5628
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5578
5629
|
/**
|
|
5579
5630
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5581
5632
|
*/
|
|
5582
5633
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5583
5634
|
/**
|
|
5584
5635
|
* Disallow useless fallback when spreading in object literals.
|
|
5585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5586
5637
|
*/
|
|
5587
5638
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5588
5639
|
/**
|
|
5589
5640
|
* Disallow useless array length check.
|
|
5590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
5591
5642
|
*/
|
|
5592
5643
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5593
5644
|
/**
|
|
5594
5645
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5596
5647
|
*/
|
|
5597
5648
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5598
5649
|
/**
|
|
5599
5650
|
* Disallow unnecessary spread.
|
|
5600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
5601
5652
|
*/
|
|
5602
5653
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5603
5654
|
/**
|
|
5604
5655
|
* Disallow useless case in switch statements.
|
|
5605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
5606
5657
|
*/
|
|
5607
5658
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5608
5659
|
/**
|
|
5609
5660
|
* Disallow useless `undefined`.
|
|
5610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
5611
5662
|
*/
|
|
5612
5663
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5613
5664
|
/**
|
|
5614
5665
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
5616
5667
|
*/
|
|
5617
5668
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5618
5669
|
/**
|
|
5619
5670
|
* Enforce proper case for numeric literals.
|
|
5620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
5621
5672
|
*/
|
|
5622
5673
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5623
5674
|
/**
|
|
5624
5675
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
5626
5677
|
*/
|
|
5627
5678
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5628
5679
|
/**
|
|
5629
5680
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
5631
5682
|
*/
|
|
5632
5683
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5633
5684
|
/**
|
|
5634
5685
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
5636
5687
|
*/
|
|
5637
5688
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5638
5689
|
/**
|
|
5639
5690
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
5641
5692
|
*/
|
|
5642
5693
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5643
5694
|
/**
|
|
5644
5695
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
5646
5697
|
*/
|
|
5647
5698
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5648
5699
|
/**
|
|
5649
5700
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
5651
5702
|
*/
|
|
5652
5703
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5653
5704
|
/**
|
|
5654
5705
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
5656
5707
|
*/
|
|
5657
5708
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5658
5709
|
/**
|
|
5659
5710
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
5661
5712
|
*/
|
|
5662
5713
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5663
5714
|
/**
|
|
5664
5715
|
* Prefer `BigInt` literals over the constructor.
|
|
5665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
5666
5717
|
*/
|
|
5667
5718
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5668
5719
|
/**
|
|
5669
5720
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5671
5722
|
*/
|
|
5672
5723
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5673
5724
|
/**
|
|
5674
5725
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
5676
5727
|
*/
|
|
5677
5728
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5678
5729
|
/**
|
|
5679
5730
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5681
5732
|
*/
|
|
5682
5733
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5683
5734
|
/**
|
|
5684
5735
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
5686
5737
|
*/
|
|
5687
5738
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5688
5739
|
/**
|
|
5689
5740
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
5691
5742
|
*/
|
|
5692
5743
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5693
5744
|
/**
|
|
5694
5745
|
* Prefer default parameters over reassignment.
|
|
5695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
5696
5747
|
*/
|
|
5697
5748
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5698
5749
|
/**
|
|
5699
5750
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5700
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
5701
5752
|
*/
|
|
5702
5753
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5703
5754
|
/**
|
|
5704
5755
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5706
5757
|
*/
|
|
5707
5758
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5708
5759
|
/**
|
|
5709
5760
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5711
5762
|
*/
|
|
5712
5763
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5713
5764
|
/**
|
|
5714
5765
|
* Prefer `.textContent` over `.innerText`.
|
|
5715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5716
5767
|
*/
|
|
5717
5768
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5718
5769
|
/**
|
|
5719
5770
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
5721
5772
|
*/
|
|
5722
5773
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5723
5774
|
/**
|
|
5724
5775
|
* Prefer `export…from` when re-exporting.
|
|
5725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
5726
5777
|
*/
|
|
5727
5778
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5728
5779
|
/**
|
|
5729
5780
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
5731
5782
|
*/
|
|
5732
5783
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5733
5784
|
/**
|
|
5734
5785
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5736
5787
|
*/
|
|
5737
5788
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5738
5789
|
/**
|
|
5739
5790
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
5741
5792
|
*/
|
|
5742
5793
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5743
5794
|
/**
|
|
5744
5795
|
* Prefer reading a JSON file as a buffer.
|
|
5745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5746
5797
|
*/
|
|
5747
5798
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5748
5799
|
/**
|
|
5749
5800
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5751
5802
|
*/
|
|
5752
5803
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5753
5804
|
/**
|
|
5754
5805
|
* Prefer using a logical operator over a ternary.
|
|
5755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5756
5807
|
*/
|
|
5757
5808
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5758
5809
|
/**
|
|
5759
5810
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
5761
5812
|
*/
|
|
5762
5813
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5763
5814
|
/**
|
|
5764
5815
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
5766
5817
|
*/
|
|
5767
5818
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5768
5819
|
/**
|
|
5769
5820
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5771
5822
|
*/
|
|
5772
5823
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5773
5824
|
/**
|
|
5774
5825
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5776
5827
|
*/
|
|
5777
5828
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5778
5829
|
/**
|
|
5779
5830
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
5781
5832
|
*/
|
|
5782
5833
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5783
5834
|
/**
|
|
5784
5835
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5786
5837
|
*/
|
|
5787
5838
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5788
5839
|
/**
|
|
5789
5840
|
* Prefer negative index over `.length - index` when possible.
|
|
5790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
5791
5842
|
*/
|
|
5792
5843
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5793
5844
|
/**
|
|
5794
5845
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
5796
5847
|
*/
|
|
5797
5848
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5798
5849
|
/**
|
|
5799
5850
|
* Prefer `Number` static properties over global ones.
|
|
5800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
5801
5852
|
*/
|
|
5802
5853
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5803
5854
|
/**
|
|
5804
5855
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
5806
5857
|
*/
|
|
5807
5858
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5808
5859
|
/**
|
|
5809
5860
|
* Prefer omitting the `catch` binding parameter.
|
|
5810
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5811
5862
|
*/
|
|
5812
5863
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5813
5864
|
/**
|
|
5814
5865
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5815
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
5816
5867
|
*/
|
|
5817
5868
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5818
5869
|
/**
|
|
5819
5870
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5820
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
5821
5872
|
*/
|
|
5822
5873
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5823
5874
|
/**
|
|
5824
5875
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5825
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
5826
5877
|
*/
|
|
5827
5878
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5828
5879
|
/**
|
|
5829
5880
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5830
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
5831
5882
|
*/
|
|
5832
5883
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5884
|
+
/**
|
|
5885
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
5887
|
+
*/
|
|
5888
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5833
5889
|
/**
|
|
5834
5890
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5835
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
5836
5892
|
*/
|
|
5837
5893
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5838
5894
|
/**
|
|
5839
5895
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5840
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
5841
5897
|
*/
|
|
5842
5898
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5843
5899
|
/**
|
|
5844
5900
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
5846
5902
|
*/
|
|
5847
5903
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5848
5904
|
/**
|
|
5849
5905
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5850
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
5851
5907
|
*/
|
|
5852
5908
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5853
5909
|
/**
|
|
5854
5910
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
5856
5912
|
*/
|
|
5857
5913
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5858
5914
|
/**
|
|
5859
5915
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5860
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
5861
5917
|
*/
|
|
5862
5918
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5863
5919
|
/**
|
|
5864
5920
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
5866
5922
|
*/
|
|
5867
5923
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5868
5924
|
/**
|
|
5869
5925
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5871
5927
|
*/
|
|
5872
5928
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5873
5929
|
/**
|
|
5874
5930
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5876
5932
|
*/
|
|
5877
5933
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5878
5934
|
/**
|
|
5879
5935
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
5881
5937
|
*/
|
|
5882
5938
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5883
5939
|
/**
|
|
5884
5940
|
* Prefer `switch` over multiple `else-if`.
|
|
5885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
5886
5942
|
*/
|
|
5887
5943
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5888
5944
|
/**
|
|
5889
5945
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
5891
5947
|
*/
|
|
5892
5948
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5893
5949
|
/**
|
|
5894
5950
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
5896
5952
|
*/
|
|
5897
5953
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5898
5954
|
/**
|
|
5899
5955
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
5901
5957
|
*/
|
|
5902
5958
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5903
5959
|
/**
|
|
5904
5960
|
* Prevent abbreviations.
|
|
5905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
5906
5962
|
*/
|
|
5907
5963
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5908
5964
|
/**
|
|
5909
5965
|
* Enforce consistent relative URL style.
|
|
5910
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
5911
5967
|
*/
|
|
5912
5968
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5913
5969
|
/**
|
|
5914
5970
|
* Enforce using the separator argument with `Array#join()`.
|
|
5915
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
5916
5972
|
*/
|
|
5917
5973
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5918
5974
|
/**
|
|
5919
5975
|
* Require non-empty module attributes for imports and exports
|
|
5920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
5921
5977
|
*/
|
|
5922
5978
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5923
5979
|
/**
|
|
5924
5980
|
* Require non-empty specifier list in import and export statements.
|
|
5925
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
5926
5982
|
*/
|
|
5927
5983
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5928
5984
|
/**
|
|
5929
5985
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5931
5987
|
*/
|
|
5932
5988
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5933
5989
|
/**
|
|
5934
5990
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
5936
5992
|
*/
|
|
5937
5993
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5938
5994
|
/**
|
|
5939
5995
|
* Enforce better string content.
|
|
5940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
5941
5997
|
*/
|
|
5942
5998
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5943
5999
|
/**
|
|
5944
6000
|
* Enforce consistent brace style for `case` clauses.
|
|
5945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
5946
6002
|
*/
|
|
5947
6003
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5948
6004
|
/**
|
|
5949
6005
|
* Fix whitespace-insensitive template indentation.
|
|
5950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
5951
6007
|
*/
|
|
5952
6008
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5953
6009
|
/**
|
|
5954
6010
|
* Enforce consistent case for text encoding identifiers.
|
|
5955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5956
6012
|
*/
|
|
5957
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
6013
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5958
6014
|
/**
|
|
5959
6015
|
* Require `new` when creating an error.
|
|
5960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
5961
6017
|
*/
|
|
5962
6018
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5963
6019
|
/**
|
|
@@ -8231,6 +8287,9 @@ type JsdocSortTags = [] | [{
|
|
|
8231
8287
|
linesBetween?: number;
|
|
8232
8288
|
reportIntraTagGroupSpacing?: boolean;
|
|
8233
8289
|
reportTagGroupSpacing?: boolean;
|
|
8290
|
+
tagExceptions?: {
|
|
8291
|
+
[k: string]: number;
|
|
8292
|
+
};
|
|
8234
8293
|
tagSequence?: {
|
|
8235
8294
|
tags?: string[];
|
|
8236
8295
|
}[];
|
|
@@ -8254,16 +8313,44 @@ type JsdocTextEscaping = [] | [{
|
|
|
8254
8313
|
escapeHTML?: boolean;
|
|
8255
8314
|
escapeMarkdown?: boolean;
|
|
8256
8315
|
}];
|
|
8316
|
+
// ----- jsdoc/ts-method-signature-style -----
|
|
8317
|
+
type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
|
|
8318
|
+
enableFixer?: boolean;
|
|
8319
|
+
}];
|
|
8320
|
+
// ----- jsdoc/ts-no-unnecessary-template-expression -----
|
|
8321
|
+
type JsdocTsNoUnnecessaryTemplateExpression = [] | [{
|
|
8322
|
+
enableFixer?: boolean;
|
|
8323
|
+
}];
|
|
8324
|
+
// ----- jsdoc/ts-prefer-function-type -----
|
|
8325
|
+
type JsdocTsPreferFunctionType = [] | [{
|
|
8326
|
+
enableFixer?: boolean;
|
|
8327
|
+
}];
|
|
8257
8328
|
// ----- jsdoc/type-formatting -----
|
|
8258
8329
|
type JsdocTypeFormatting = [] | [{
|
|
8259
8330
|
arrayBrackets?: ("angle" | "square");
|
|
8331
|
+
arrowFunctionPostReturnMarkerSpacing?: string;
|
|
8332
|
+
arrowFunctionPreReturnMarkerSpacing?: string;
|
|
8260
8333
|
enableFixer?: boolean;
|
|
8334
|
+
functionOrClassParameterSpacing?: string;
|
|
8335
|
+
functionOrClassPostGenericSpacing?: string;
|
|
8336
|
+
functionOrClassPostReturnMarkerSpacing?: string;
|
|
8337
|
+
functionOrClassPreReturnMarkerSpacing?: string;
|
|
8338
|
+
functionOrClassTypeParameterSpacing?: string;
|
|
8339
|
+
genericAndTupleElementSpacing?: string;
|
|
8261
8340
|
genericDot?: boolean;
|
|
8341
|
+
keyValuePostColonSpacing?: string;
|
|
8342
|
+
keyValuePostKeySpacing?: string;
|
|
8343
|
+
keyValuePostOptionalSpacing?: string;
|
|
8344
|
+
keyValuePostVariadicSpacing?: string;
|
|
8345
|
+
methodQuotes?: ("double" | "single");
|
|
8262
8346
|
objectFieldIndent?: string;
|
|
8263
8347
|
objectFieldQuote?: ("double" | "single" | null);
|
|
8264
8348
|
objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak");
|
|
8265
8349
|
objectFieldSeparatorOptionalLinebreak?: boolean;
|
|
8266
8350
|
objectFieldSeparatorTrailingPunctuation?: boolean;
|
|
8351
|
+
parameterDefaultValueSpacing?: string;
|
|
8352
|
+
postMethodNameSpacing?: string;
|
|
8353
|
+
postNewSpacing?: string;
|
|
8267
8354
|
separatorForSingleObjectField?: boolean;
|
|
8268
8355
|
stringQuotes?: ("double" | "single");
|
|
8269
8356
|
typeBracketSpacing?: string;
|
|
@@ -11814,6 +11901,10 @@ type ReactNoForbiddenProps = [] | [{
|
|
|
11814
11901
|
prop: string;
|
|
11815
11902
|
})[];
|
|
11816
11903
|
}];
|
|
11904
|
+
// ----- react/no-unstable-default-props -----
|
|
11905
|
+
type ReactNoUnstableDefaultProps = [] | [{
|
|
11906
|
+
safeDefaultProps?: string[];
|
|
11907
|
+
}];
|
|
11817
11908
|
// ----- react/no-useless-fragment -----
|
|
11818
11909
|
type ReactNoUselessFragment = [] | [{
|
|
11819
11910
|
allowExpressions?: boolean;
|
|
@@ -12208,6 +12299,50 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12208
12299
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
12209
12300
|
// ----- style/eol-last -----
|
|
12210
12301
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
12302
|
+
// ----- style/exp-list-style -----
|
|
12303
|
+
type StyleExpListStyle = [] | [{
|
|
12304
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
12305
|
+
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
12306
|
+
overrides?: {
|
|
12307
|
+
"[]"?: _StyleExpListStyle_BaseConfig;
|
|
12308
|
+
"{}"?: _StyleExpListStyle_BaseConfig;
|
|
12309
|
+
"<>"?: _StyleExpListStyle_BaseConfig;
|
|
12310
|
+
"()"?: _StyleExpListStyle_BaseConfig;
|
|
12311
|
+
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
12312
|
+
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
12313
|
+
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
12314
|
+
CallExpression?: _StyleExpListStyle_BaseConfig;
|
|
12315
|
+
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12316
|
+
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12317
|
+
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
12318
|
+
ImportDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12319
|
+
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
12320
|
+
NewExpression?: _StyleExpListStyle_BaseConfig;
|
|
12321
|
+
ObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
12322
|
+
ObjectPattern?: _StyleExpListStyle_BaseConfig;
|
|
12323
|
+
TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
|
|
12324
|
+
TSFunctionType?: _StyleExpListStyle_BaseConfig;
|
|
12325
|
+
TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
|
|
12326
|
+
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
12327
|
+
TSTupleType?: _StyleExpListStyle_BaseConfig;
|
|
12328
|
+
TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
|
|
12329
|
+
TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12330
|
+
TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
|
|
12331
|
+
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
12332
|
+
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
12333
|
+
};
|
|
12334
|
+
}];
|
|
12335
|
+
interface _StyleExpListStyle_SingleLineConfig {
|
|
12336
|
+
spacing?: ("always" | "never");
|
|
12337
|
+
maxItems?: number;
|
|
12338
|
+
}
|
|
12339
|
+
interface _StyleExpListStyle_MultiLineConfig {
|
|
12340
|
+
minItems?: number;
|
|
12341
|
+
}
|
|
12342
|
+
interface _StyleExpListStyle_BaseConfig {
|
|
12343
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
12344
|
+
multiline?: _StyleExpListStyle_MultiLineConfig;
|
|
12345
|
+
}
|
|
12211
12346
|
// ----- style/function-call-argument-newline -----
|
|
12212
12347
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
12213
12348
|
// ----- style/function-call-spacing -----
|
|
@@ -12277,7 +12412,11 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
12277
12412
|
ObjectExpression?: (number | ("first" | "off"));
|
|
12278
12413
|
ImportDeclaration?: (number | ("first" | "off"));
|
|
12279
12414
|
flatTernaryExpressions?: boolean;
|
|
12280
|
-
offsetTernaryExpressions?: boolean
|
|
12415
|
+
offsetTernaryExpressions?: (boolean | {
|
|
12416
|
+
CallExpression?: boolean;
|
|
12417
|
+
AwaitExpression?: boolean;
|
|
12418
|
+
NewExpression?: boolean;
|
|
12419
|
+
});
|
|
12281
12420
|
offsetTernaryExpressionsOffsetCallExpressions?: boolean;
|
|
12282
12421
|
ignoredNodes?: string[];
|
|
12283
12422
|
ignoreComments?: boolean;
|
|
@@ -13078,6 +13217,7 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
13078
13217
|
TSInterfaceBody?: ("always" | "never");
|
|
13079
13218
|
TSEnumBody?: ("always" | "never");
|
|
13080
13219
|
};
|
|
13220
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
13081
13221
|
}];
|
|
13082
13222
|
// ----- style/object-property-newline -----
|
|
13083
13223
|
type StyleObjectPropertyNewline = [] | [{
|
|
@@ -13262,7 +13402,7 @@ type TestNoFocusedTests = [] | [{
|
|
|
13262
13402
|
}];
|
|
13263
13403
|
// ----- test/no-hooks -----
|
|
13264
13404
|
type TestNoHooks = [] | [{
|
|
13265
|
-
allow?:
|
|
13405
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
13266
13406
|
}];
|
|
13267
13407
|
// ----- test/no-large-snapshots -----
|
|
13268
13408
|
type TestNoLargeSnapshots = [] | [{
|
|
@@ -14627,6 +14767,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
14627
14767
|
selectors?: string[];
|
|
14628
14768
|
comments?: string[];
|
|
14629
14769
|
}];
|
|
14770
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
14771
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
14772
|
+
withDash?: boolean;
|
|
14773
|
+
}];
|
|
14630
14774
|
// ----- unocss/enforce-class-compile -----
|
|
14631
14775
|
type UnocssEnforceClassCompile = [] | [{
|
|
14632
14776
|
prefix?: string;
|
|
@@ -16792,4 +16936,4 @@ declare function ensurePackages(packages: (string | undefined)[]): Promise<void>
|
|
|
16792
16936
|
declare function isInEditorEnv(): boolean;
|
|
16793
16937
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
16794
16938
|
//#endregion
|
|
16795
|
-
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIgnores, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx,
|
|
16939
|
+
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIgnores, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, combine, comments, lincy as default, lincy, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|