@pengzhanbo/eslint-config 2.4.1 → 2.6.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/dist/index.d.mts +543 -245
- package/dist/index.mjs +27 -52
- package/package.json +41 -41
package/dist/index.d.mts
CHANGED
|
@@ -270,12 +270,6 @@ interface RuleOptions {
|
|
|
270
270
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-attribute-decorator.md
|
|
271
271
|
*/
|
|
272
272
|
'angular/no-attribute-decorator'?: Linter.RuleEntry<[]>;
|
|
273
|
-
/**
|
|
274
|
-
* Ensures that directives do not implement conflicting lifecycle interfaces.
|
|
275
|
-
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-conflicting-lifecycle.md
|
|
276
|
-
* @deprecated
|
|
277
|
-
*/
|
|
278
|
-
'angular/no-conflicting-lifecycle'?: Linter.RuleEntry<[]>;
|
|
279
273
|
/**
|
|
280
274
|
* Disallow using code which is marked as developer preview
|
|
281
275
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-developer-preview.md
|
|
@@ -377,7 +371,7 @@ interface RuleOptions {
|
|
|
377
371
|
*/
|
|
378
372
|
'angular/prefer-inject'?: Linter.RuleEntry<[]>;
|
|
379
373
|
/**
|
|
380
|
-
* Ensures
|
|
374
|
+
* Ensures components do not opt out of the default `ChangeDetectionStrategy.OnPush` change detection strategy
|
|
381
375
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md
|
|
382
376
|
*/
|
|
383
377
|
'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<[]>;
|
|
@@ -462,12 +456,12 @@ interface RuleOptions {
|
|
|
462
456
|
*/
|
|
463
457
|
'angular/use-pipe-transform-interface'?: Linter.RuleEntry<[]>;
|
|
464
458
|
/**
|
|
465
|
-
*
|
|
459
|
+
* Enforce consistent line breaks for chaining member access
|
|
466
460
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
|
|
467
461
|
*/
|
|
468
462
|
'antfu/consistent-chaining'?: Linter.RuleEntry<AntfuConsistentChaining>;
|
|
469
463
|
/**
|
|
470
|
-
*
|
|
464
|
+
* Enforce consistent line breaks inside braces and parentheses
|
|
471
465
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
472
466
|
*/
|
|
473
467
|
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>;
|
|
@@ -493,22 +487,22 @@ interface RuleOptions {
|
|
|
493
487
|
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>;
|
|
494
488
|
/**
|
|
495
489
|
* Prevent importing modules in `dist` folder
|
|
496
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.
|
|
490
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.md
|
|
497
491
|
*/
|
|
498
492
|
'antfu/no-import-dist'?: Linter.RuleEntry<[]>;
|
|
499
493
|
/**
|
|
500
494
|
* Prevent importing modules in `node_modules` folder by relative or absolute path
|
|
501
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.
|
|
495
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.md
|
|
502
496
|
*/
|
|
503
497
|
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>;
|
|
504
498
|
/**
|
|
505
499
|
* Prevent using top-level await
|
|
506
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.
|
|
500
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.md
|
|
507
501
|
*/
|
|
508
502
|
'antfu/no-top-level-await'?: Linter.RuleEntry<[]>;
|
|
509
503
|
/**
|
|
510
504
|
* Do not use `exports =`
|
|
511
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.
|
|
505
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.md
|
|
512
506
|
*/
|
|
513
507
|
'antfu/no-ts-export-equal'?: Linter.RuleEntry<[]>;
|
|
514
508
|
/**
|
|
@@ -3728,46 +3722,46 @@ interface RuleOptions {
|
|
|
3728
3722
|
'react/immutability'?: Linter.RuleEntry<[]>;
|
|
3729
3723
|
/**
|
|
3730
3724
|
* Disallows passing 'children' as a prop.
|
|
3731
|
-
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
3725
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-children-prop
|
|
3732
3726
|
*/
|
|
3733
3727
|
'react/jsx-no-children-prop'?: Linter.RuleEntry<[]>;
|
|
3734
3728
|
/**
|
|
3735
3729
|
* Disallows passing 'children' as a prop when children are also passed as nested content.
|
|
3736
|
-
* @see https://eslint-react.xyz/docs/rules/no-children-prop-with-children
|
|
3730
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-children-prop-with-children
|
|
3737
3731
|
*/
|
|
3738
3732
|
'react/jsx-no-children-prop-with-children'?: Linter.RuleEntry<[]>;
|
|
3739
3733
|
/**
|
|
3740
3734
|
* Prevents comment strings from being accidentally inserted into a JSX element's text nodes.
|
|
3741
|
-
* @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
|
|
3735
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
3742
3736
|
*/
|
|
3743
3737
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
3744
3738
|
/**
|
|
3745
3739
|
* Prevent patterns that cause deoptimization when using the automatic JSX runtime.
|
|
3746
|
-
* @see https://eslint-react.xyz/docs/rules/no-key-after-spread
|
|
3740
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-key-after-spread
|
|
3747
3741
|
*/
|
|
3748
3742
|
'react/jsx-no-key-after-spread'?: Linter.RuleEntry<[]>;
|
|
3749
3743
|
/**
|
|
3750
3744
|
* Catches `$` before `{expr}` in JSX — typically from template literal `${expr}` being copy-pasted into JSX without removing the `$`. The `$` "leaks" into the rendered output.
|
|
3751
|
-
* @see https://eslint-react.xyz/docs/rules/no-leaked-dollar
|
|
3745
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-leaked-dollar
|
|
3752
3746
|
*/
|
|
3753
3747
|
'react/jsx-no-leaked-dollar'?: Linter.RuleEntry<[]>;
|
|
3754
3748
|
/**
|
|
3755
3749
|
* Catches `;` at the start of JSX text nodes — typically from accidentally placing a statement-ending `;` inside JSX. The `;` "leaks" into the rendered output.
|
|
3756
|
-
* @see https://eslint-react.xyz/docs/rules/no-leaked-semicolon
|
|
3750
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-leaked-semicolon
|
|
3757
3751
|
*/
|
|
3758
3752
|
'react/jsx-no-leaked-semicolon'?: Linter.RuleEntry<[]>;
|
|
3759
3753
|
/**
|
|
3760
3754
|
* Disallow JSX namespace syntax, as React does not support them.
|
|
3761
|
-
* @see https://eslint-react.xyz/docs/rules/no-namespace
|
|
3755
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-namespace
|
|
3762
3756
|
*/
|
|
3763
3757
|
'react/jsx-no-namespace'?: Linter.RuleEntry<[]>;
|
|
3764
3758
|
/**
|
|
3765
3759
|
* Disallows useless fragment elements.
|
|
3766
|
-
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3760
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-useless-fragment
|
|
3767
3761
|
*/
|
|
3768
3762
|
'react/jsx-no-useless-fragment'?: Linter.RuleEntry<ReactJsxNoUselessFragment>;
|
|
3769
3763
|
/**
|
|
3770
|
-
* Enforces
|
|
3764
|
+
* Enforces identifier names assigned from `createContext` calls to be a valid component name with the suffix `Context`.
|
|
3771
3765
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3772
3766
|
*/
|
|
3773
3767
|
'react/naming-convention-context-name'?: Linter.RuleEntry<[]>;
|
|
@@ -3847,7 +3841,7 @@ interface RuleOptions {
|
|
|
3847
3841
|
*/
|
|
3848
3842
|
'react/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
3849
3843
|
/**
|
|
3850
|
-
* Disallows 'createRef' in function components.
|
|
3844
|
+
* Disallows 'createRef' in function components and Hooks.
|
|
3851
3845
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
3852
3846
|
*/
|
|
3853
3847
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
@@ -3972,7 +3966,7 @@ interface RuleOptions {
|
|
|
3972
3966
|
*/
|
|
3973
3967
|
'react/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
3974
3968
|
/**
|
|
3975
|
-
* Warns about state variables that are defined but never used
|
|
3969
|
+
* Warns about state variables that are defined but never used.
|
|
3976
3970
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
3977
3971
|
*/
|
|
3978
3972
|
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
@@ -3993,7 +3987,7 @@ interface RuleOptions {
|
|
|
3993
3987
|
'react/refs'?: Linter.RuleEntry<[]>;
|
|
3994
3988
|
/**
|
|
3995
3989
|
* Validates and transforms React Client/Server Function definitions.
|
|
3996
|
-
* @see https://eslint-react.xyz/docs/rules/function-definition
|
|
3990
|
+
* @see https://eslint-react.xyz/docs/rules/rsc-function-definition
|
|
3997
3991
|
*/
|
|
3998
3992
|
'react/rsc-function-definition'?: Linter.RuleEntry<[]>;
|
|
3999
3993
|
/**
|
|
@@ -4142,7 +4136,7 @@ interface RuleOptions {
|
|
|
4142
4136
|
*/
|
|
4143
4137
|
'react/x-no-context-provider'?: Linter.RuleEntry<[]>;
|
|
4144
4138
|
/**
|
|
4145
|
-
* Disallows 'createRef' in function components.
|
|
4139
|
+
* Disallows 'createRef' in function components and Hooks.
|
|
4146
4140
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
4147
4141
|
*/
|
|
4148
4142
|
'react/x-no-create-ref'?: Linter.RuleEntry<[]>;
|
|
@@ -4267,7 +4261,7 @@ interface RuleOptions {
|
|
|
4267
4261
|
*/
|
|
4268
4262
|
'react/x-no-unused-props'?: Linter.RuleEntry<[]>;
|
|
4269
4263
|
/**
|
|
4270
|
-
* Warns about state variables that are defined but never used
|
|
4264
|
+
* Warns about state variables that are defined but never used.
|
|
4271
4265
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
4272
4266
|
*/
|
|
4273
4267
|
'react/x-no-unused-state'?: Linter.RuleEntry<[]>;
|
|
@@ -5609,6 +5603,11 @@ interface RuleOptions {
|
|
|
5609
5603
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
|
|
5610
5604
|
*/
|
|
5611
5605
|
'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
|
|
5606
|
+
/**
|
|
5607
|
+
* disallow `<style>` elements nested inside other elements or blocks
|
|
5608
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-nested-style-tag/
|
|
5609
|
+
*/
|
|
5610
|
+
'svelte/no-nested-style-tag'?: Linter.RuleEntry<[]>;
|
|
5612
5611
|
/**
|
|
5613
5612
|
* disallow use of not function in event handler
|
|
5614
5613
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
|
|
@@ -5724,6 +5723,11 @@ interface RuleOptions {
|
|
|
5724
5723
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
|
|
5725
5724
|
*/
|
|
5726
5725
|
'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>;
|
|
5726
|
+
/**
|
|
5727
|
+
* disallow unnecessary `$derived.by()` when `$derived()` is sufficient
|
|
5728
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-derived-over-derived-by/
|
|
5729
|
+
*/
|
|
5730
|
+
'svelte/prefer-derived-over-derived-by'?: Linter.RuleEntry<[]>;
|
|
5727
5731
|
/**
|
|
5728
5732
|
* destructure values from object stores for better change tracking & fewer redraws
|
|
5729
5733
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
|
|
@@ -7067,753 +7071,921 @@ interface RuleOptions {
|
|
|
7067
7071
|
*/
|
|
7068
7072
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7069
7073
|
/**
|
|
7070
|
-
*
|
|
7071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7074
|
+
* Prefer better DOM traversal APIs.
|
|
7075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/better-dom-traversing.md
|
|
7072
7076
|
*/
|
|
7073
|
-
'unicorn/better-
|
|
7077
|
+
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
7078
|
+
/**
|
|
7079
|
+
* Removed. Prefer `eslint-plugin-regexp`
|
|
7080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
7081
|
+
* @deprecated
|
|
7082
|
+
*/
|
|
7083
|
+
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
7074
7084
|
/**
|
|
7075
7085
|
* Enforce a specific parameter name in catch clauses.
|
|
7076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/catch-error-name.md
|
|
7077
7087
|
*/
|
|
7078
7088
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
7079
7089
|
/**
|
|
7080
7090
|
* Enforce consistent assertion style with `node:assert`.
|
|
7081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-assert.md
|
|
7082
7092
|
*/
|
|
7083
7093
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
7094
|
+
/**
|
|
7095
|
+
* Enforce consistent spelling of compound words in identifiers.
|
|
7096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-compound-words.md
|
|
7097
|
+
*/
|
|
7098
|
+
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
7084
7099
|
/**
|
|
7085
7100
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-date-clone.md
|
|
7087
7102
|
*/
|
|
7088
7103
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
7089
7104
|
/**
|
|
7090
7105
|
* Use destructured variables over properties.
|
|
7091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-destructuring.md
|
|
7092
7107
|
*/
|
|
7093
7108
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
7094
7109
|
/**
|
|
7095
7110
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-empty-array-spread.md
|
|
7097
7112
|
*/
|
|
7098
7113
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
7099
7114
|
/**
|
|
7100
7115
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-existence-index-check.md
|
|
7102
7117
|
*/
|
|
7103
7118
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
7104
7119
|
/**
|
|
7105
7120
|
* Move function definitions to the highest possible scope.
|
|
7106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-function-scoping.md
|
|
7107
7122
|
*/
|
|
7108
7123
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
7124
|
+
/**
|
|
7125
|
+
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
7126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-json-file-read.md
|
|
7127
|
+
*/
|
|
7128
|
+
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
7109
7129
|
/**
|
|
7110
7130
|
* Enforce consistent style for escaping `${` in template literals.
|
|
7111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-template-literal-escape.md
|
|
7112
7132
|
*/
|
|
7113
7133
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
7114
7134
|
/**
|
|
7115
7135
|
* Enforce correct `Error` subclassing.
|
|
7116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/custom-error-definition.md
|
|
7117
7137
|
*/
|
|
7118
7138
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
7139
|
+
/**
|
|
7140
|
+
* Enforce consistent style for DOM element dataset access.
|
|
7141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/dom-node-dataset.md
|
|
7142
|
+
*/
|
|
7143
|
+
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
7119
7144
|
/**
|
|
7120
7145
|
* Enforce no spaces between braces.
|
|
7121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/empty-brace-spaces.md
|
|
7122
7147
|
*/
|
|
7123
7148
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
7124
7149
|
/**
|
|
7125
7150
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/error-message.md
|
|
7127
7152
|
*/
|
|
7128
7153
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
7129
7154
|
/**
|
|
7130
7155
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/escape-case.md
|
|
7132
7157
|
*/
|
|
7133
7158
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
7134
7159
|
/**
|
|
7135
7160
|
* Add expiration conditions to TODO comments.
|
|
7136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/expiring-todo-comments.md
|
|
7137
7162
|
*/
|
|
7138
7163
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
7139
7164
|
/**
|
|
7140
7165
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/explicit-length-check.md
|
|
7142
7167
|
*/
|
|
7143
7168
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
7144
7169
|
/**
|
|
7145
|
-
* Enforce a case style for filenames.
|
|
7146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7170
|
+
* Enforce a case style for filenames and directory names.
|
|
7171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/filename-case.md
|
|
7147
7172
|
*/
|
|
7148
7173
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
7149
7174
|
/**
|
|
7150
7175
|
* Enforce specific import styles per module.
|
|
7151
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/import-style.md
|
|
7152
7177
|
*/
|
|
7153
7178
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
7154
7179
|
/**
|
|
7155
7180
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
7156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/isolated-functions.md
|
|
7157
7182
|
*/
|
|
7158
7183
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
7159
7184
|
/**
|
|
7160
7185
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
7161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/new-for-builtins.md
|
|
7162
7187
|
*/
|
|
7163
7188
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
7164
7189
|
/**
|
|
7165
7190
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
7167
7192
|
*/
|
|
7168
7193
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
7169
7194
|
/**
|
|
7170
7195
|
* Disallow recursive access to `this` within getters and setters.
|
|
7171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-accessor-recursion.md
|
|
7172
7197
|
*/
|
|
7173
7198
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
7174
7199
|
/**
|
|
7175
7200
|
* Disallow anonymous functions and classes as the default export.
|
|
7176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-anonymous-default-export.md
|
|
7177
7202
|
*/
|
|
7178
7203
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
7179
7204
|
/**
|
|
7180
7205
|
* Prevent passing a function reference directly to iterator methods.
|
|
7181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-callback-reference.md
|
|
7207
|
+
*/
|
|
7208
|
+
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
7209
|
+
/**
|
|
7210
|
+
* Disallow using reference values as `Array#fill()` values.
|
|
7211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
7182
7212
|
*/
|
|
7183
|
-
'unicorn/no-array-
|
|
7213
|
+
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
7184
7214
|
/**
|
|
7185
7215
|
* Prefer `for…of` over the `forEach` method.
|
|
7186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-for-each.md
|
|
7187
7217
|
*/
|
|
7188
7218
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
7219
|
+
/**
|
|
7220
|
+
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
7221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-from-fill.md
|
|
7222
|
+
*/
|
|
7223
|
+
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
7189
7224
|
/**
|
|
7190
7225
|
* Disallow using the `this` argument in array methods.
|
|
7191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-method-this-argument.md
|
|
7192
7227
|
*/
|
|
7193
7228
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
7194
7229
|
/**
|
|
7195
7230
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7231
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
7197
7232
|
* @deprecated
|
|
7198
7233
|
*/
|
|
7199
7234
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
7200
7235
|
/**
|
|
7201
7236
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-reduce.md
|
|
7203
7238
|
*/
|
|
7204
7239
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
7205
7240
|
/**
|
|
7206
7241
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
7207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-reverse.md
|
|
7208
7243
|
*/
|
|
7209
7244
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
7210
7245
|
/**
|
|
7211
7246
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
7212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-sort.md
|
|
7213
7248
|
*/
|
|
7214
7249
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
7215
7250
|
/**
|
|
7216
7251
|
* Disallow member access from await expression.
|
|
7217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-await-expression-member.md
|
|
7218
7253
|
*/
|
|
7219
7254
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
7220
7255
|
/**
|
|
7221
7256
|
* Disallow using `await` in `Promise` method parameters.
|
|
7222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-await-in-promise-methods.md
|
|
7223
7258
|
*/
|
|
7224
7259
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7260
|
+
/**
|
|
7261
|
+
* Disallow unnecessary `Blob` to `File` conversion.
|
|
7262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-blob-to-file.md
|
|
7263
|
+
*/
|
|
7264
|
+
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
7265
|
+
/**
|
|
7266
|
+
* Prefer drawing canvases directly instead of converting them to images.
|
|
7267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-canvas-to-image.md
|
|
7268
|
+
*/
|
|
7269
|
+
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
7270
|
+
/**
|
|
7271
|
+
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
7272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-confusing-array-splice.md
|
|
7273
|
+
*/
|
|
7274
|
+
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
7225
7275
|
/**
|
|
7226
7276
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-console-spaces.md
|
|
7228
7278
|
*/
|
|
7229
7279
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
7230
7280
|
/**
|
|
7231
7281
|
* Do not use `document.cookie` directly.
|
|
7232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-document-cookie.md
|
|
7233
7283
|
*/
|
|
7234
7284
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
7285
|
+
/**
|
|
7286
|
+
* Disallow duplicate values in `Set` constructor array literals.
|
|
7287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-duplicate-set-values.md
|
|
7288
|
+
*/
|
|
7289
|
+
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
7235
7290
|
/**
|
|
7236
7291
|
* Disallow empty files.
|
|
7237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-empty-file.md
|
|
7238
7293
|
*/
|
|
7239
|
-
'unicorn/no-empty-file'?: Linter.RuleEntry<
|
|
7294
|
+
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
7295
|
+
/**
|
|
7296
|
+
* Disallow exports in scripts.
|
|
7297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-exports-in-scripts.md
|
|
7298
|
+
*/
|
|
7299
|
+
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
7240
7300
|
/**
|
|
7241
7301
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-for-loop.md
|
|
7243
7303
|
*/
|
|
7244
7304
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7245
7305
|
/**
|
|
7246
7306
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
7247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-hex-escape.md
|
|
7248
7308
|
*/
|
|
7249
7309
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7250
7310
|
/**
|
|
7251
7311
|
* Disallow immediate mutation after variable assignment.
|
|
7252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-immediate-mutation.md
|
|
7253
7313
|
*/
|
|
7254
7314
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
7315
|
+
/**
|
|
7316
|
+
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
7317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-incorrect-query-selector.md
|
|
7318
|
+
*/
|
|
7319
|
+
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
7255
7320
|
/**
|
|
7256
7321
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7258
7323
|
* @deprecated
|
|
7259
7324
|
*/
|
|
7260
7325
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7261
7326
|
/**
|
|
7262
7327
|
* Disallow `instanceof` with built-in objects
|
|
7263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-instanceof-builtins.md
|
|
7264
7329
|
*/
|
|
7265
7330
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7266
7331
|
/**
|
|
7267
7332
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7269
7334
|
*/
|
|
7270
7335
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7336
|
+
/**
|
|
7337
|
+
* Disallow invalid `accept` values on file inputs.
|
|
7338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
7339
|
+
*/
|
|
7340
|
+
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
7271
7341
|
/**
|
|
7272
7342
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7273
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7274
7344
|
*/
|
|
7275
7345
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7276
7346
|
/**
|
|
7277
7347
|
* Disallow identifiers starting with `new` or `class`.
|
|
7278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-keyword-prefix.md
|
|
7279
7349
|
*/
|
|
7280
7350
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7351
|
+
/**
|
|
7352
|
+
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
7353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-late-current-target-access.md
|
|
7354
|
+
*/
|
|
7355
|
+
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
7281
7356
|
/**
|
|
7282
7357
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7283
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7284
7359
|
* @deprecated
|
|
7285
7360
|
*/
|
|
7286
7361
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7287
7362
|
/**
|
|
7288
7363
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-lonely-if.md
|
|
7290
7365
|
*/
|
|
7291
7366
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7292
7367
|
/**
|
|
7293
7368
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7295
7370
|
*/
|
|
7296
7371
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7372
|
+
/**
|
|
7373
|
+
* Disallow manually wrapped comments.
|
|
7374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
7375
|
+
*/
|
|
7376
|
+
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
7297
7377
|
/**
|
|
7298
7378
|
* Disallow named usage of default import and export.
|
|
7299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-named-default.md
|
|
7300
7380
|
*/
|
|
7301
7381
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7302
7382
|
/**
|
|
7303
7383
|
* Disallow negated conditions.
|
|
7304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-negated-condition.md
|
|
7305
7385
|
*/
|
|
7306
7386
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7307
7387
|
/**
|
|
7308
7388
|
* Disallow negated expression in equality check.
|
|
7309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7310
7390
|
*/
|
|
7311
7391
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7312
7392
|
/**
|
|
7313
7393
|
* Disallow nested ternary expressions.
|
|
7314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-nested-ternary.md
|
|
7315
7395
|
*/
|
|
7316
7396
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7317
7397
|
/**
|
|
7318
7398
|
* Disallow `new Array()`.
|
|
7319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-new-array.md
|
|
7320
7400
|
*/
|
|
7321
7401
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7322
7402
|
/**
|
|
7323
7403
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7404
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-new-buffer.md
|
|
7325
7405
|
*/
|
|
7326
7406
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7327
7407
|
/**
|
|
7328
7408
|
* Disallow the use of the `null` literal.
|
|
7329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-null.md
|
|
7330
7410
|
*/
|
|
7331
7411
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7332
7412
|
/**
|
|
7333
7413
|
* Disallow the use of objects as default parameters.
|
|
7334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7335
7415
|
*/
|
|
7336
7416
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7337
7417
|
/**
|
|
7338
7418
|
* Disallow `process.exit()`.
|
|
7339
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-process-exit.md
|
|
7340
7420
|
*/
|
|
7341
7421
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7342
7422
|
/**
|
|
7343
7423
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7344
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7345
7425
|
*/
|
|
7346
7426
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7347
7427
|
/**
|
|
7348
7428
|
* Disallow classes that only have static members.
|
|
7349
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-static-only-class.md
|
|
7350
7430
|
*/
|
|
7351
7431
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7352
7432
|
/**
|
|
7353
7433
|
* Disallow `then` property.
|
|
7354
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-thenable.md
|
|
7355
7435
|
*/
|
|
7356
7436
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7357
7437
|
/**
|
|
7358
7438
|
* Disallow assigning `this` to a variable.
|
|
7359
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-this-assignment.md
|
|
7360
7440
|
*/
|
|
7361
7441
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7442
|
+
/**
|
|
7443
|
+
* Disallow `this` outside of classes.
|
|
7444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-this-outside-of-class.md
|
|
7445
|
+
*/
|
|
7446
|
+
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
7362
7447
|
/**
|
|
7363
7448
|
* Disallow comparing `undefined` using `typeof`.
|
|
7364
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-typeof-undefined.md
|
|
7365
7450
|
*/
|
|
7366
7451
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7367
7452
|
/**
|
|
7368
7453
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7369
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7370
7455
|
*/
|
|
7371
7456
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7372
7457
|
/**
|
|
7373
7458
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7374
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7375
7460
|
*/
|
|
7376
7461
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7377
7462
|
/**
|
|
7378
7463
|
* Disallow awaiting non-promise values.
|
|
7379
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-await.md
|
|
7380
7465
|
*/
|
|
7381
7466
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7467
|
+
/**
|
|
7468
|
+
* Disallow unnecessary nested ternary expressions.
|
|
7469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
7470
|
+
*/
|
|
7471
|
+
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7382
7472
|
/**
|
|
7383
7473
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
7385
7475
|
*/
|
|
7386
7476
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7387
7477
|
/**
|
|
7388
7478
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
7390
7480
|
*/
|
|
7391
7481
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7392
7482
|
/**
|
|
7393
7483
|
* Disallow unreadable array destructuring.
|
|
7394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
7395
7485
|
*/
|
|
7396
7486
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
7397
7487
|
/**
|
|
7398
7488
|
* Disallow unreadable IIFEs.
|
|
7399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unreadable-iife.md
|
|
7400
7490
|
*/
|
|
7401
7491
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
7492
|
+
/**
|
|
7493
|
+
* Disallow ignoring the return value of selected array methods.
|
|
7494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unused-array-method-return.md
|
|
7495
|
+
*/
|
|
7496
|
+
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
7402
7497
|
/**
|
|
7403
7498
|
* Disallow unused object properties.
|
|
7404
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unused-properties.md
|
|
7405
7500
|
*/
|
|
7406
7501
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
7407
7502
|
/**
|
|
7408
7503
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
7409
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-collection-argument.md
|
|
7410
7505
|
*/
|
|
7411
7506
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
7412
7507
|
/**
|
|
7413
7508
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
7414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
7415
7510
|
*/
|
|
7416
7511
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
7417
7512
|
/**
|
|
7418
7513
|
* Disallow useless fallback when spreading in object literals.
|
|
7419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
7420
7515
|
*/
|
|
7421
7516
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
7422
7517
|
/**
|
|
7423
7518
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
7424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
7425
7520
|
*/
|
|
7426
7521
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
7427
7522
|
/**
|
|
7428
7523
|
* Disallow useless array length check.
|
|
7429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-length-check.md
|
|
7430
7525
|
*/
|
|
7431
7526
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
7432
7527
|
/**
|
|
7433
7528
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
7435
7530
|
*/
|
|
7436
7531
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
7437
7532
|
/**
|
|
7438
7533
|
* Disallow unnecessary spread.
|
|
7439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-spread.md
|
|
7440
7535
|
*/
|
|
7441
7536
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
7442
7537
|
/**
|
|
7443
7538
|
* Disallow useless case in switch statements.
|
|
7444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-switch-case.md
|
|
7445
7540
|
*/
|
|
7446
7541
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
7447
7542
|
/**
|
|
7448
7543
|
* Disallow useless `undefined`.
|
|
7449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-undefined.md
|
|
7450
7545
|
*/
|
|
7451
7546
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
7452
7547
|
/**
|
|
7453
7548
|
* Disallow number literals with zero fractions or dangling dots.
|
|
7454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-zero-fractions.md
|
|
7455
7550
|
*/
|
|
7456
7551
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
7457
7552
|
/**
|
|
7458
7553
|
* Enforce proper case for numeric literals.
|
|
7459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/number-literal-case.md
|
|
7460
7555
|
*/
|
|
7461
7556
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
7462
7557
|
/**
|
|
7463
7558
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/numeric-separators-style.md
|
|
7465
7560
|
*/
|
|
7466
7561
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
7467
7562
|
/**
|
|
7468
7563
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-add-event-listener.md
|
|
7470
7565
|
*/
|
|
7471
7566
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
7472
7567
|
/**
|
|
7473
7568
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-find.md
|
|
7475
7570
|
*/
|
|
7476
7571
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
7477
7572
|
/**
|
|
7478
7573
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-flat.md
|
|
7480
7575
|
*/
|
|
7481
7576
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
7482
7577
|
/**
|
|
7483
7578
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
7484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-flat-map.md
|
|
7485
7580
|
*/
|
|
7486
7581
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7487
7582
|
/**
|
|
7488
7583
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
7489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-index-of.md
|
|
7490
7585
|
*/
|
|
7491
7586
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
7587
|
+
/**
|
|
7588
|
+
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
7589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-last-methods.md
|
|
7590
|
+
*/
|
|
7591
|
+
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
7492
7592
|
/**
|
|
7493
7593
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-some.md
|
|
7495
7595
|
*/
|
|
7496
7596
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
7497
7597
|
/**
|
|
7498
7598
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-at.md
|
|
7500
7600
|
*/
|
|
7501
7601
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
7502
7602
|
/**
|
|
7503
7603
|
* Prefer `BigInt` literals over the constructor.
|
|
7504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-bigint-literals.md
|
|
7505
7605
|
*/
|
|
7506
7606
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
7507
7607
|
/**
|
|
7508
7608
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
7510
7610
|
*/
|
|
7511
7611
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
7512
7612
|
/**
|
|
7513
7613
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
7514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-class-fields.md
|
|
7515
7615
|
*/
|
|
7516
7616
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
7517
7617
|
/**
|
|
7518
7618
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
7519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-classlist-toggle.md
|
|
7520
7620
|
*/
|
|
7521
7621
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
7522
7622
|
/**
|
|
7523
7623
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-code-point.md
|
|
7525
7625
|
*/
|
|
7526
7626
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
7527
7627
|
/**
|
|
7528
7628
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-date-now.md
|
|
7530
7630
|
*/
|
|
7531
7631
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
7532
7632
|
/**
|
|
7533
7633
|
* Prefer default parameters over reassignment.
|
|
7534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-default-parameters.md
|
|
7535
7635
|
*/
|
|
7536
7636
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
7537
7637
|
/**
|
|
7538
|
-
* Prefer `
|
|
7539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7638
|
+
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
7639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-dom-node-append.md
|
|
7540
7640
|
*/
|
|
7541
7641
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
7542
7642
|
/**
|
|
7543
|
-
*
|
|
7544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7643
|
+
* Renamed to `unicorn/dom-node-dataset`.
|
|
7644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
7645
|
+
* @deprecated
|
|
7545
7646
|
*/
|
|
7546
7647
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
7547
7648
|
/**
|
|
7548
7649
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-dom-node-remove.md
|
|
7550
7651
|
*/
|
|
7551
7652
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
7552
7653
|
/**
|
|
7553
7654
|
* Prefer `.textContent` over `.innerText`.
|
|
7554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
7555
7656
|
*/
|
|
7556
7657
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
7557
7658
|
/**
|
|
7558
7659
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-event-target.md
|
|
7560
7661
|
*/
|
|
7561
7662
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
7562
7663
|
/**
|
|
7563
7664
|
* Prefer `export…from` when re-exporting.
|
|
7564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-export-from.md
|
|
7565
7666
|
*/
|
|
7566
7667
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
7668
|
+
/**
|
|
7669
|
+
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
7670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
7671
|
+
*/
|
|
7672
|
+
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
7567
7673
|
/**
|
|
7568
7674
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-global-this.md
|
|
7570
7676
|
*/
|
|
7571
7677
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
7678
|
+
/**
|
|
7679
|
+
* Prefer HTTPS over HTTP.
|
|
7680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-https.md
|
|
7681
|
+
*/
|
|
7682
|
+
'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
|
|
7572
7683
|
/**
|
|
7573
7684
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
7574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-import-meta-properties.md
|
|
7575
7686
|
*/
|
|
7576
7687
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
7577
7688
|
/**
|
|
7578
7689
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
7579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-includes.md
|
|
7580
7691
|
*/
|
|
7581
7692
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
7582
7693
|
/**
|
|
7583
|
-
* Prefer
|
|
7584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7694
|
+
* Prefer `.includes()` over repeated equality comparisons.
|
|
7695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
7696
|
+
*/
|
|
7697
|
+
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
7698
|
+
/**
|
|
7699
|
+
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
7700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-iterator-concat.md
|
|
7701
|
+
*/
|
|
7702
|
+
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
7703
|
+
/**
|
|
7704
|
+
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
7705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
7706
|
+
*/
|
|
7707
|
+
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
7708
|
+
/**
|
|
7709
|
+
* Renamed to `unicorn/consistent-json-file-read`.
|
|
7710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
7711
|
+
* @deprecated
|
|
7585
7712
|
*/
|
|
7586
7713
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
7587
7714
|
/**
|
|
7588
|
-
* Prefer `KeyboardEvent#key` over
|
|
7589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7715
|
+
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
7716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
7590
7717
|
*/
|
|
7591
7718
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
7592
7719
|
/**
|
|
7593
7720
|
* Prefer using a logical operator over a ternary.
|
|
7594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
7595
7722
|
*/
|
|
7596
7723
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
7724
|
+
/**
|
|
7725
|
+
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
7726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-math-abs.md
|
|
7727
|
+
*/
|
|
7728
|
+
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
7597
7729
|
/**
|
|
7598
7730
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
7599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-math-min-max.md
|
|
7600
7732
|
*/
|
|
7601
7733
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
7602
7734
|
/**
|
|
7603
7735
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
7604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-math-trunc.md
|
|
7605
7737
|
*/
|
|
7606
7738
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
7607
7739
|
/**
|
|
7608
7740
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
7609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
7610
7742
|
*/
|
|
7611
7743
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
7612
7744
|
/**
|
|
7613
7745
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
7614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-modern-math-apis.md
|
|
7615
7747
|
*/
|
|
7616
7748
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
7617
7749
|
/**
|
|
7618
7750
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
7619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-module.md
|
|
7620
7752
|
*/
|
|
7621
7753
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
7622
7754
|
/**
|
|
7623
7755
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
7624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
7625
7757
|
*/
|
|
7626
7758
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
7627
7759
|
/**
|
|
7628
7760
|
* Prefer negative index over `.length - index` when possible.
|
|
7629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-negative-index.md
|
|
7630
7762
|
*/
|
|
7631
7763
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
7632
7764
|
/**
|
|
7633
7765
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
7634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-node-protocol.md
|
|
7635
7767
|
*/
|
|
7636
7768
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
7637
7769
|
/**
|
|
7638
7770
|
* Prefer `Number` static properties over global ones.
|
|
7639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-number-properties.md
|
|
7640
7772
|
*/
|
|
7641
7773
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
7642
7774
|
/**
|
|
7643
7775
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
7644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-object-from-entries.md
|
|
7645
7777
|
*/
|
|
7646
7778
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
7647
7779
|
/**
|
|
7648
7780
|
* Prefer omitting the `catch` binding parameter.
|
|
7649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
7650
7782
|
*/
|
|
7651
7783
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
7652
7784
|
/**
|
|
7653
7785
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
7654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-prototype-methods.md
|
|
7655
7787
|
*/
|
|
7656
7788
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
7657
7789
|
/**
|
|
7658
|
-
* Prefer `.querySelector()`
|
|
7659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7790
|
+
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
7791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-query-selector.md
|
|
7660
7792
|
*/
|
|
7661
|
-
'unicorn/prefer-query-selector'?: Linter.RuleEntry<
|
|
7793
|
+
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
7794
|
+
/**
|
|
7795
|
+
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
7796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-queue-microtask.md
|
|
7797
|
+
*/
|
|
7798
|
+
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
7662
7799
|
/**
|
|
7663
7800
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
7664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-reflect-apply.md
|
|
7665
7802
|
*/
|
|
7666
7803
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
7667
7804
|
/**
|
|
7668
7805
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
7669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-regexp-test.md
|
|
7670
7807
|
*/
|
|
7671
7808
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
7672
7809
|
/**
|
|
7673
7810
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
7674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-response-static-json.md
|
|
7675
7812
|
*/
|
|
7676
7813
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
7677
7814
|
/**
|
|
7678
7815
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
7679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-set-has.md
|
|
7680
7817
|
*/
|
|
7681
|
-
'unicorn/prefer-set-has'?: Linter.RuleEntry<
|
|
7818
|
+
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
7682
7819
|
/**
|
|
7683
7820
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
7684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-set-size.md
|
|
7685
7822
|
*/
|
|
7686
7823
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
7687
7824
|
/**
|
|
7688
7825
|
* Prefer simple conditions first in logical expressions.
|
|
7689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-simple-condition-first.md
|
|
7690
7827
|
*/
|
|
7691
7828
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
7692
7829
|
/**
|
|
7693
|
-
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
7694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7830
|
+
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
7831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-single-call.md
|
|
7695
7832
|
*/
|
|
7696
7833
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
7834
|
+
/**
|
|
7835
|
+
* Prefer `String#split()` with a limit.
|
|
7836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-split-limit.md
|
|
7837
|
+
*/
|
|
7838
|
+
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
7697
7839
|
/**
|
|
7698
7840
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
7699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-spread.md
|
|
7700
7842
|
*/
|
|
7701
7843
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
7844
|
+
/**
|
|
7845
|
+
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
7846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-match-all.md
|
|
7847
|
+
*/
|
|
7848
|
+
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
7849
|
+
/**
|
|
7850
|
+
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
7851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
7852
|
+
*/
|
|
7853
|
+
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
7702
7854
|
/**
|
|
7703
7855
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
7704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-raw.md
|
|
7705
7857
|
*/
|
|
7706
7858
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
7707
7859
|
/**
|
|
7708
|
-
* Prefer `String#
|
|
7709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7860
|
+
* Prefer `String#repeat()` for repeated whitespace.
|
|
7861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-repeat.md
|
|
7862
|
+
*/
|
|
7863
|
+
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
7864
|
+
/**
|
|
7865
|
+
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
7866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-replace-all.md
|
|
7710
7867
|
*/
|
|
7711
7868
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
7712
7869
|
/**
|
|
7713
7870
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
7714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-slice.md
|
|
7715
7872
|
*/
|
|
7716
7873
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
7717
7874
|
/**
|
|
7718
7875
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
7719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
7720
7877
|
*/
|
|
7721
7878
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
7722
7879
|
/**
|
|
7723
7880
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
7724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
7725
7882
|
*/
|
|
7726
7883
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
7727
7884
|
/**
|
|
7728
7885
|
* Prefer using `structuredClone` to create a deep clone.
|
|
7729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-structured-clone.md
|
|
7730
7887
|
*/
|
|
7731
7888
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
7732
7889
|
/**
|
|
7733
7890
|
* Prefer `switch` over multiple `else-if`.
|
|
7734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-switch.md
|
|
7735
7892
|
*/
|
|
7736
7893
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
7737
7894
|
/**
|
|
7738
7895
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
7739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-ternary.md
|
|
7740
7897
|
*/
|
|
7741
7898
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
7742
7899
|
/**
|
|
7743
7900
|
* Prefer top-level await over top-level promises and async function calls.
|
|
7744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-top-level-await.md
|
|
7745
7902
|
*/
|
|
7746
7903
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
7747
7904
|
/**
|
|
7748
7905
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
7749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-type-error.md
|
|
7750
7907
|
*/
|
|
7751
7908
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
7752
7909
|
/**
|
|
7753
7910
|
* Prevent abbreviations.
|
|
7754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prevent-abbreviations.md
|
|
7755
7912
|
*/
|
|
7756
7913
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
7757
7914
|
/**
|
|
7758
7915
|
* Enforce consistent relative URL style.
|
|
7759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/relative-url-style.md
|
|
7760
7917
|
*/
|
|
7761
7918
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
7762
7919
|
/**
|
|
7763
7920
|
* Enforce using the separator argument with `Array#join()`.
|
|
7764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-array-join-separator.md
|
|
7765
7922
|
*/
|
|
7766
7923
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
7924
|
+
/**
|
|
7925
|
+
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
7926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-css-escape.md
|
|
7927
|
+
*/
|
|
7928
|
+
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
7767
7929
|
/**
|
|
7768
7930
|
* Require non-empty module attributes for imports and exports
|
|
7769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-module-attributes.md
|
|
7770
7932
|
*/
|
|
7771
7933
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
7772
7934
|
/**
|
|
7773
7935
|
* Require non-empty specifier list in import and export statements.
|
|
7774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-module-specifiers.md
|
|
7775
7937
|
*/
|
|
7776
7938
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
7777
7939
|
/**
|
|
7778
7940
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7780
7942
|
*/
|
|
7781
7943
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
7944
|
+
/**
|
|
7945
|
+
* Require passive event listeners for high-frequency events.
|
|
7946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-passive-events.md
|
|
7947
|
+
*/
|
|
7948
|
+
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
7782
7949
|
/**
|
|
7783
7950
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-post-message-target-origin.md
|
|
7785
7952
|
*/
|
|
7786
7953
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
7787
7954
|
/**
|
|
7788
7955
|
* Enforce better string content.
|
|
7789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/string-content.md
|
|
7790
7957
|
*/
|
|
7791
7958
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
7792
7959
|
/**
|
|
7793
7960
|
* Enforce consistent brace style for `case` clauses.
|
|
7794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/switch-case-braces.md
|
|
7795
7962
|
*/
|
|
7796
7963
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
7797
7964
|
/**
|
|
7798
7965
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
7799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/switch-case-break-position.md
|
|
7800
7967
|
*/
|
|
7801
7968
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
7802
7969
|
/**
|
|
7803
7970
|
* Fix whitespace-insensitive template indentation.
|
|
7804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/template-indent.md
|
|
7805
7972
|
*/
|
|
7806
7973
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
7807
7974
|
/**
|
|
7808
7975
|
* Enforce consistent case for text encoding identifiers.
|
|
7809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/text-encoding-identifier-case.md
|
|
7810
7977
|
*/
|
|
7811
7978
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
7812
7979
|
/**
|
|
7813
7980
|
* Require `new` when creating an error.
|
|
7814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/throw-new-error.md
|
|
7815
7982
|
*/
|
|
7816
7983
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
7984
|
+
/**
|
|
7985
|
+
* Limit the complexity of `try` blocks.
|
|
7986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/try-complexity.md
|
|
7987
|
+
*/
|
|
7988
|
+
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
7817
7989
|
/**
|
|
7818
7990
|
* Utilities in UnoCSS blocklist
|
|
7819
7991
|
* @see https://unocss.dev/integrations/eslint#rules
|
|
@@ -8163,7 +8335,7 @@ interface RuleOptions {
|
|
|
8163
8335
|
*/
|
|
8164
8336
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
8165
8337
|
/**
|
|
8166
|
-
* Enforce consistent spacing between
|
|
8338
|
+
* Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
|
|
8167
8339
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
8168
8340
|
*/
|
|
8169
8341
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>;
|
|
@@ -8885,7 +9057,7 @@ interface RuleOptions {
|
|
|
8885
9057
|
*/
|
|
8886
9058
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>;
|
|
8887
9059
|
/**
|
|
8888
|
-
* Require quotes around object literal property names in `<template>`
|
|
9060
|
+
* Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
|
|
8889
9061
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
8890
9062
|
*/
|
|
8891
9063
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>;
|
|
@@ -9403,6 +9575,7 @@ type AngularTemplateConditionalComplexity = [] | [{
|
|
|
9403
9575
|
}]; // ----- angular-template/cyclomatic-complexity -----
|
|
9404
9576
|
type AngularTemplateCyclomaticComplexity = [] | [{
|
|
9405
9577
|
maxComplexity?: number;
|
|
9578
|
+
variant?: ("classic" | "modified");
|
|
9406
9579
|
}]; // ----- angular-template/elements-content -----
|
|
9407
9580
|
type AngularTemplateElementsContent = [] | [{
|
|
9408
9581
|
allowList?: string[];
|
|
@@ -17502,23 +17675,40 @@ type TsUnifiedSignatures = [] | [{
|
|
|
17502
17675
|
ignoreDifferentlyNamedParameters?: boolean;
|
|
17503
17676
|
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
17504
17677
|
}]; // ----- unicode-bom -----
|
|
17505
|
-
type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/
|
|
17506
|
-
type UnicornBetterRegex = [] | [{
|
|
17507
|
-
sortCharacterClasses?: boolean;
|
|
17508
|
-
}]; // ----- unicorn/catch-error-name -----
|
|
17678
|
+
type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/catch-error-name -----
|
|
17509
17679
|
type UnicornCatchErrorName = [] | [{
|
|
17510
17680
|
name?: string;
|
|
17511
17681
|
ignore?: unknown[];
|
|
17512
|
-
}]; // ----- unicorn/consistent-
|
|
17682
|
+
}]; // ----- unicorn/consistent-compound-words -----
|
|
17683
|
+
type UnicornConsistentCompoundWords = [] | [{
|
|
17684
|
+
checkProperties?: boolean;
|
|
17685
|
+
checkVariables?: boolean;
|
|
17686
|
+
checkDefaultAndNamespaceImports?: (boolean | "internal");
|
|
17687
|
+
checkShorthandImports?: (boolean | "internal");
|
|
17688
|
+
checkShorthandProperties?: boolean;
|
|
17689
|
+
extendDefaultReplacements?: boolean;
|
|
17690
|
+
replacements?: _UnicornConsistentCompoundWords_Replacements;
|
|
17691
|
+
allowList?: _UnicornConsistentCompoundWords_TrueObject;
|
|
17692
|
+
}];
|
|
17693
|
+
interface _UnicornConsistentCompoundWords_Replacements {
|
|
17694
|
+
[k: string]: (false | string) | undefined;
|
|
17695
|
+
}
|
|
17696
|
+
interface _UnicornConsistentCompoundWords_TrueObject {
|
|
17697
|
+
[k: string]: true | undefined;
|
|
17698
|
+
} // ----- unicorn/consistent-function-scoping -----
|
|
17513
17699
|
type UnicornConsistentFunctionScoping = [] | [{
|
|
17514
17700
|
checkArrowFunctions?: boolean;
|
|
17701
|
+
}]; // ----- unicorn/consistent-json-file-read -----
|
|
17702
|
+
type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/dom-node-dataset -----
|
|
17703
|
+
type UnicornDomNodeDataset = [] | [{
|
|
17704
|
+
preferAttributes?: boolean;
|
|
17515
17705
|
}]; // ----- unicorn/escape-case -----
|
|
17516
17706
|
type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/expiring-todo-comments -----
|
|
17517
17707
|
type UnicornExpiringTodoComments = [] | [{
|
|
17518
17708
|
terms?: string[];
|
|
17519
17709
|
ignore?: unknown[];
|
|
17520
|
-
|
|
17521
|
-
|
|
17710
|
+
checkDates?: boolean;
|
|
17711
|
+
checkDatesOnPullRequests?: boolean;
|
|
17522
17712
|
allowWarningComments?: boolean;
|
|
17523
17713
|
date?: string;
|
|
17524
17714
|
}]; // ----- unicorn/explicit-length-check -----
|
|
@@ -17529,6 +17719,7 @@ type UnicornFilenameCase = [] | [({
|
|
|
17529
17719
|
case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
|
|
17530
17720
|
ignore?: unknown[];
|
|
17531
17721
|
multipleFileExtensions?: boolean;
|
|
17722
|
+
checkDirectories?: boolean;
|
|
17532
17723
|
} | {
|
|
17533
17724
|
cases?: {
|
|
17534
17725
|
camelCase?: boolean;
|
|
@@ -17538,6 +17729,7 @@ type UnicornFilenameCase = [] | [({
|
|
|
17538
17729
|
};
|
|
17539
17730
|
ignore?: unknown[];
|
|
17540
17731
|
multipleFileExtensions?: boolean;
|
|
17732
|
+
checkDirectories?: boolean;
|
|
17541
17733
|
})]; // ----- unicorn/import-style -----
|
|
17542
17734
|
type UnicornImportStyle = [] | [{
|
|
17543
17735
|
checkImport?: boolean;
|
|
@@ -17561,6 +17753,9 @@ type UnicornIsolatedFunctions = [] | [{
|
|
|
17561
17753
|
functions?: string[];
|
|
17562
17754
|
selectors?: string[];
|
|
17563
17755
|
comments?: string[];
|
|
17756
|
+
}]; // ----- unicorn/no-array-callback-reference -----
|
|
17757
|
+
type UnicornNoArrayCallbackReference = [] | [{
|
|
17758
|
+
ignore?: string[];
|
|
17564
17759
|
}]; // ----- unicorn/no-array-reduce -----
|
|
17565
17760
|
type UnicornNoArrayReduce = [] | [{
|
|
17566
17761
|
allowSimpleOperations?: boolean;
|
|
@@ -17570,6 +17765,9 @@ type UnicornNoArrayReverse = [] | [{
|
|
|
17570
17765
|
}]; // ----- unicorn/no-array-sort -----
|
|
17571
17766
|
type UnicornNoArraySort = [] | [{
|
|
17572
17767
|
allowExpressionStatement?: boolean;
|
|
17768
|
+
}]; // ----- unicorn/no-empty-file -----
|
|
17769
|
+
type UnicornNoEmptyFile = [] | [{
|
|
17770
|
+
allowComments?: boolean;
|
|
17573
17771
|
}]; // ----- unicorn/no-instanceof-builtins -----
|
|
17574
17772
|
type UnicornNoInstanceofBuiltins = [] | [{
|
|
17575
17773
|
useErrorIsError?: boolean;
|
|
@@ -17583,13 +17781,14 @@ type UnicornNoKeywordPrefix = [] | [{
|
|
|
17583
17781
|
onlyCamelCase?: boolean;
|
|
17584
17782
|
}]; // ----- unicorn/no-null -----
|
|
17585
17783
|
type UnicornNoNull = [] | [{
|
|
17784
|
+
checkArguments?: boolean;
|
|
17586
17785
|
checkStrictEquality?: boolean;
|
|
17587
17786
|
}]; // ----- unicorn/no-typeof-undefined -----
|
|
17588
17787
|
type UnicornNoTypeofUndefined = [] | [{
|
|
17589
17788
|
checkGlobalVariables?: boolean;
|
|
17590
17789
|
}]; // ----- unicorn/no-unnecessary-polyfills -----
|
|
17591
17790
|
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
17592
|
-
targets
|
|
17791
|
+
targets?: (string | unknown[] | {
|
|
17593
17792
|
[k: string]: unknown | undefined;
|
|
17594
17793
|
});
|
|
17595
17794
|
}]; // ----- unicorn/no-useless-undefined -----
|
|
@@ -17620,6 +17819,7 @@ type UnicornNumericSeparatorsStyle = [] | [{
|
|
|
17620
17819
|
onlyIfContainsSeparator?: boolean;
|
|
17621
17820
|
minimumDigits?: number;
|
|
17622
17821
|
groupLength?: number;
|
|
17822
|
+
fractionGroupLength?: number;
|
|
17623
17823
|
};
|
|
17624
17824
|
onlyIfContainsSeparator?: boolean;
|
|
17625
17825
|
}]; // ----- unicorn/prefer-add-event-listener -----
|
|
@@ -17637,7 +17837,10 @@ type UnicornPreferAt = [] | [{
|
|
|
17637
17837
|
checkAllIndexAccess?: boolean;
|
|
17638
17838
|
}]; // ----- unicorn/prefer-export-from -----
|
|
17639
17839
|
type UnicornPreferExportFrom = [] | [{
|
|
17640
|
-
|
|
17840
|
+
checkUsedVariables?: boolean;
|
|
17841
|
+
}]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
|
|
17842
|
+
type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
|
|
17843
|
+
minimumComparisons?: number;
|
|
17641
17844
|
}]; // ----- unicorn/prefer-number-properties -----
|
|
17642
17845
|
type UnicornPreferNumberProperties = [] | [{
|
|
17643
17846
|
checkInfinity?: boolean;
|
|
@@ -17645,9 +17848,22 @@ type UnicornPreferNumberProperties = [] | [{
|
|
|
17645
17848
|
}]; // ----- unicorn/prefer-object-from-entries -----
|
|
17646
17849
|
type UnicornPreferObjectFromEntries = [] | [{
|
|
17647
17850
|
functions?: unknown[];
|
|
17851
|
+
}]; // ----- unicorn/prefer-query-selector -----
|
|
17852
|
+
type UnicornPreferQuerySelector = [] | [{
|
|
17853
|
+
allowWithVariables?: boolean;
|
|
17854
|
+
}]; // ----- unicorn/prefer-queue-microtask -----
|
|
17855
|
+
type UnicornPreferQueueMicrotask = [] | [{
|
|
17856
|
+
checkSetImmediate?: boolean;
|
|
17857
|
+
checkSetTimeout?: boolean;
|
|
17858
|
+
}]; // ----- unicorn/prefer-set-has -----
|
|
17859
|
+
type UnicornPreferSetHas = [] | [{
|
|
17860
|
+
minimumItems?: number;
|
|
17648
17861
|
}]; // ----- unicorn/prefer-single-call -----
|
|
17649
17862
|
type UnicornPreferSingleCall = [] | [{
|
|
17650
17863
|
ignore?: unknown[];
|
|
17864
|
+
}]; // ----- unicorn/prefer-string-repeat -----
|
|
17865
|
+
type UnicornPreferStringRepeat = [] | [{
|
|
17866
|
+
minimumRepetitions?: number;
|
|
17651
17867
|
}]; // ----- unicorn/prefer-structured-clone -----
|
|
17652
17868
|
type UnicornPreferStructuredClone = [] | [{
|
|
17653
17869
|
functions?: unknown[];
|
|
@@ -17680,15 +17896,20 @@ interface _UnicornPreventAbbreviations_BooleanObject {
|
|
|
17680
17896
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
17681
17897
|
[k: string]: boolean | undefined;
|
|
17682
17898
|
} // ----- unicorn/relative-url-style -----
|
|
17683
|
-
type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/
|
|
17899
|
+
type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
|
|
17900
|
+
type UnicornRequireCssEscape = [] | [{
|
|
17901
|
+
checkAllSelectors?: boolean;
|
|
17902
|
+
}]; // ----- unicorn/string-content -----
|
|
17684
17903
|
type UnicornStringContent = [] | [{
|
|
17685
17904
|
patterns?: {
|
|
17686
17905
|
[k: string]: (string | {
|
|
17687
17906
|
suggest: string;
|
|
17688
17907
|
fix?: boolean;
|
|
17908
|
+
caseSensitive?: boolean;
|
|
17689
17909
|
message?: string;
|
|
17690
17910
|
}) | undefined;
|
|
17691
17911
|
};
|
|
17912
|
+
selectors?: string[];
|
|
17692
17913
|
}]; // ----- unicorn/switch-case-braces -----
|
|
17693
17914
|
type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
|
|
17694
17915
|
type UnicornTemplateIndent = [] | [{
|
|
@@ -17700,6 +17921,9 @@ type UnicornTemplateIndent = [] | [{
|
|
|
17700
17921
|
}]; // ----- unicorn/text-encoding-identifier-case -----
|
|
17701
17922
|
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
17702
17923
|
withDash?: boolean;
|
|
17924
|
+
}]; // ----- unicorn/try-complexity -----
|
|
17925
|
+
type UnicornTryComplexity = [] | [{
|
|
17926
|
+
max?: number;
|
|
17703
17927
|
}]; // ----- unocss/enforce-class-compile -----
|
|
17704
17928
|
type UnocssEnforceClassCompile = [] | [{
|
|
17705
17929
|
prefix?: string;
|
|
@@ -17822,6 +18046,7 @@ type VueArrayElementNewline = [] | [(_VueArrayElementNewlineBasicConfig | {
|
|
|
17822
18046
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig;
|
|
17823
18047
|
})];
|
|
17824
18048
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
18049
|
+
consistent?: boolean;
|
|
17825
18050
|
multiline?: boolean;
|
|
17826
18051
|
minItems?: (number | null);
|
|
17827
18052
|
}); // ----- vue/arrow-spacing -----
|
|
@@ -17881,9 +18106,14 @@ type VueCommaDangle = [] | [(_VueCommaDangleValue | {
|
|
|
17881
18106
|
imports?: _VueCommaDangleValueWithIgnore;
|
|
17882
18107
|
exports?: _VueCommaDangleValueWithIgnore;
|
|
17883
18108
|
functions?: _VueCommaDangleValueWithIgnore;
|
|
18109
|
+
importAttributes?: _VueCommaDangleValueWithIgnore;
|
|
18110
|
+
dynamicImports?: _VueCommaDangleValueWithIgnore;
|
|
18111
|
+
enums?: _VueCommaDangleValueWithIgnore;
|
|
18112
|
+
generics?: _VueCommaDangleValueWithIgnore;
|
|
18113
|
+
tuples?: _VueCommaDangleValueWithIgnore;
|
|
17884
18114
|
})];
|
|
17885
18115
|
type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
|
|
17886
|
-
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "
|
|
18116
|
+
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore"); // ----- vue/comma-spacing -----
|
|
17887
18117
|
type VueCommaSpacing = [] | [{
|
|
17888
18118
|
before?: boolean;
|
|
17889
18119
|
after?: boolean;
|
|
@@ -17933,6 +18163,10 @@ type VueFirstAttributeLinebreak = [] | [{
|
|
|
17933
18163
|
}]; // ----- vue/func-call-spacing -----
|
|
17934
18164
|
type VueFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
17935
18165
|
allowNewlines?: boolean;
|
|
18166
|
+
optionalChain?: {
|
|
18167
|
+
before?: boolean;
|
|
18168
|
+
after?: boolean;
|
|
18169
|
+
};
|
|
17936
18170
|
}]); // ----- vue/html-button-has-type -----
|
|
17937
18171
|
type VueHtmlButtonHasType = [] | [{
|
|
17938
18172
|
button?: boolean;
|
|
@@ -18004,6 +18238,7 @@ type VueKeySpacing = [] | [({
|
|
|
18004
18238
|
mode?: ("strict" | "minimum");
|
|
18005
18239
|
beforeColon?: boolean;
|
|
18006
18240
|
afterColon?: boolean;
|
|
18241
|
+
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[];
|
|
18007
18242
|
} | {
|
|
18008
18243
|
singleLine?: {
|
|
18009
18244
|
mode?: ("strict" | "minimum");
|
|
@@ -18047,18 +18282,6 @@ type VueKeywordSpacing = [] | [{
|
|
|
18047
18282
|
before?: boolean;
|
|
18048
18283
|
after?: boolean;
|
|
18049
18284
|
};
|
|
18050
|
-
as?: {
|
|
18051
|
-
before?: boolean;
|
|
18052
|
-
after?: boolean;
|
|
18053
|
-
};
|
|
18054
|
-
async?: {
|
|
18055
|
-
before?: boolean;
|
|
18056
|
-
after?: boolean;
|
|
18057
|
-
};
|
|
18058
|
-
await?: {
|
|
18059
|
-
before?: boolean;
|
|
18060
|
-
after?: boolean;
|
|
18061
|
-
};
|
|
18062
18285
|
boolean?: {
|
|
18063
18286
|
before?: boolean;
|
|
18064
18287
|
after?: boolean;
|
|
@@ -18151,18 +18374,10 @@ type VueKeywordSpacing = [] | [{
|
|
|
18151
18374
|
before?: boolean;
|
|
18152
18375
|
after?: boolean;
|
|
18153
18376
|
};
|
|
18154
|
-
from?: {
|
|
18155
|
-
before?: boolean;
|
|
18156
|
-
after?: boolean;
|
|
18157
|
-
};
|
|
18158
18377
|
function?: {
|
|
18159
18378
|
before?: boolean;
|
|
18160
18379
|
after?: boolean;
|
|
18161
18380
|
};
|
|
18162
|
-
get?: {
|
|
18163
|
-
before?: boolean;
|
|
18164
|
-
after?: boolean;
|
|
18165
|
-
};
|
|
18166
18381
|
goto?: {
|
|
18167
18382
|
before?: boolean;
|
|
18168
18383
|
after?: boolean;
|
|
@@ -18195,10 +18410,6 @@ type VueKeywordSpacing = [] | [{
|
|
|
18195
18410
|
before?: boolean;
|
|
18196
18411
|
after?: boolean;
|
|
18197
18412
|
};
|
|
18198
|
-
let?: {
|
|
18199
|
-
before?: boolean;
|
|
18200
|
-
after?: boolean;
|
|
18201
|
-
};
|
|
18202
18413
|
long?: {
|
|
18203
18414
|
before?: boolean;
|
|
18204
18415
|
after?: boolean;
|
|
@@ -18215,10 +18426,6 @@ type VueKeywordSpacing = [] | [{
|
|
|
18215
18426
|
before?: boolean;
|
|
18216
18427
|
after?: boolean;
|
|
18217
18428
|
};
|
|
18218
|
-
of?: {
|
|
18219
|
-
before?: boolean;
|
|
18220
|
-
after?: boolean;
|
|
18221
|
-
};
|
|
18222
18429
|
package?: {
|
|
18223
18430
|
before?: boolean;
|
|
18224
18431
|
after?: boolean;
|
|
@@ -18239,10 +18446,6 @@ type VueKeywordSpacing = [] | [{
|
|
|
18239
18446
|
before?: boolean;
|
|
18240
18447
|
after?: boolean;
|
|
18241
18448
|
};
|
|
18242
|
-
set?: {
|
|
18243
|
-
before?: boolean;
|
|
18244
|
-
after?: boolean;
|
|
18245
|
-
};
|
|
18246
18449
|
short?: {
|
|
18247
18450
|
before?: boolean;
|
|
18248
18451
|
after?: boolean;
|
|
@@ -18311,10 +18514,66 @@ type VueKeywordSpacing = [] | [{
|
|
|
18311
18514
|
before?: boolean;
|
|
18312
18515
|
after?: boolean;
|
|
18313
18516
|
};
|
|
18517
|
+
arguments?: {
|
|
18518
|
+
before?: boolean;
|
|
18519
|
+
after?: boolean;
|
|
18520
|
+
};
|
|
18521
|
+
as?: {
|
|
18522
|
+
before?: boolean;
|
|
18523
|
+
after?: boolean;
|
|
18524
|
+
};
|
|
18525
|
+
async?: {
|
|
18526
|
+
before?: boolean;
|
|
18527
|
+
after?: boolean;
|
|
18528
|
+
};
|
|
18529
|
+
await?: {
|
|
18530
|
+
before?: boolean;
|
|
18531
|
+
after?: boolean;
|
|
18532
|
+
};
|
|
18533
|
+
eval?: {
|
|
18534
|
+
before?: boolean;
|
|
18535
|
+
after?: boolean;
|
|
18536
|
+
};
|
|
18537
|
+
from?: {
|
|
18538
|
+
before?: boolean;
|
|
18539
|
+
after?: boolean;
|
|
18540
|
+
};
|
|
18541
|
+
get?: {
|
|
18542
|
+
before?: boolean;
|
|
18543
|
+
after?: boolean;
|
|
18544
|
+
};
|
|
18545
|
+
let?: {
|
|
18546
|
+
before?: boolean;
|
|
18547
|
+
after?: boolean;
|
|
18548
|
+
};
|
|
18549
|
+
of?: {
|
|
18550
|
+
before?: boolean;
|
|
18551
|
+
after?: boolean;
|
|
18552
|
+
};
|
|
18553
|
+
set?: {
|
|
18554
|
+
before?: boolean;
|
|
18555
|
+
after?: boolean;
|
|
18556
|
+
};
|
|
18557
|
+
type?: {
|
|
18558
|
+
before?: boolean;
|
|
18559
|
+
after?: boolean;
|
|
18560
|
+
};
|
|
18561
|
+
using?: {
|
|
18562
|
+
before?: boolean;
|
|
18563
|
+
after?: boolean;
|
|
18564
|
+
};
|
|
18314
18565
|
yield?: {
|
|
18315
18566
|
before?: boolean;
|
|
18316
18567
|
after?: boolean;
|
|
18317
18568
|
};
|
|
18569
|
+
accessor?: {
|
|
18570
|
+
before?: boolean;
|
|
18571
|
+
after?: boolean;
|
|
18572
|
+
};
|
|
18573
|
+
satisfies?: {
|
|
18574
|
+
before?: boolean;
|
|
18575
|
+
after?: boolean;
|
|
18576
|
+
};
|
|
18318
18577
|
};
|
|
18319
18578
|
}]; // ----- vue/match-component-file-name -----
|
|
18320
18579
|
type VueMatchComponentFileName = [] | [{
|
|
@@ -18434,7 +18693,9 @@ type VueMultilineHtmlElementContentNewline = [] | [{
|
|
|
18434
18693
|
ignores?: string[];
|
|
18435
18694
|
allowEmptyLines?: boolean;
|
|
18436
18695
|
}]; // ----- vue/multiline-ternary -----
|
|
18437
|
-
type VueMultilineTernary = [] | [("always" | "always-multiline" | "never")]
|
|
18696
|
+
type VueMultilineTernary = [] | [("always" | "always-multiline" | "never")] | [("always" | "always-multiline" | "never"), {
|
|
18697
|
+
ignoreJSX?: boolean;
|
|
18698
|
+
}]; // ----- vue/mustache-interpolation-spacing -----
|
|
18438
18699
|
type VueMustacheInterpolationSpacing = [] | [("always" | "never")]; // ----- vue/new-line-between-multi-line-property -----
|
|
18439
18700
|
type VueNewLineBetweenMultiLineProperty = [] | [{
|
|
18440
18701
|
minLineOfMultilineProperty?: number;
|
|
@@ -18494,6 +18755,13 @@ type VueNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
18494
18755
|
enforceForNewInMemberExpressions?: boolean;
|
|
18495
18756
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
18496
18757
|
allowParensAfterCommentPattern?: string;
|
|
18758
|
+
nestedConditionalExpressions?: boolean;
|
|
18759
|
+
allowNodesInSpreadElement?: {
|
|
18760
|
+
ConditionalExpression?: boolean;
|
|
18761
|
+
LogicalExpression?: boolean;
|
|
18762
|
+
AwaitExpression?: boolean;
|
|
18763
|
+
};
|
|
18764
|
+
ignoredNodes?: string[];
|
|
18497
18765
|
}]); // ----- vue/no-implicit-coercion -----
|
|
18498
18766
|
type VueNoImplicitCoercion = [] | [{
|
|
18499
18767
|
boolean?: boolean;
|
|
@@ -18717,14 +18985,41 @@ type VueObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
18717
18985
|
minProperties?: number;
|
|
18718
18986
|
consistent?: boolean;
|
|
18719
18987
|
});
|
|
18988
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
18989
|
+
multiline?: boolean;
|
|
18990
|
+
minProperties?: number;
|
|
18991
|
+
consistent?: boolean;
|
|
18992
|
+
});
|
|
18993
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
18994
|
+
multiline?: boolean;
|
|
18995
|
+
minProperties?: number;
|
|
18996
|
+
consistent?: boolean;
|
|
18997
|
+
});
|
|
18998
|
+
TSEnumBody?: (("always" | "never") | {
|
|
18999
|
+
multiline?: boolean;
|
|
19000
|
+
minProperties?: number;
|
|
19001
|
+
consistent?: boolean;
|
|
19002
|
+
});
|
|
18720
19003
|
})]; // ----- vue/object-curly-spacing -----
|
|
18721
19004
|
type VueObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
18722
19005
|
arraysInObjects?: boolean;
|
|
18723
19006
|
objectsInObjects?: boolean;
|
|
19007
|
+
overrides?: {
|
|
19008
|
+
ObjectPattern?: ("always" | "never");
|
|
19009
|
+
ObjectExpression?: ("always" | "never");
|
|
19010
|
+
ImportDeclaration?: ("always" | "never");
|
|
19011
|
+
ImportAttributes?: ("always" | "never");
|
|
19012
|
+
ExportNamedDeclaration?: ("always" | "never");
|
|
19013
|
+
ExportAllDeclaration?: ("always" | "never");
|
|
19014
|
+
TSMappedType?: ("always" | "never");
|
|
19015
|
+
TSTypeLiteral?: ("always" | "never");
|
|
19016
|
+
TSInterfaceBody?: ("always" | "never");
|
|
19017
|
+
TSEnumBody?: ("always" | "never");
|
|
19018
|
+
};
|
|
19019
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
18724
19020
|
}]; // ----- vue/object-property-newline -----
|
|
18725
19021
|
type VueObjectPropertyNewline = [] | [{
|
|
18726
19022
|
allowAllPropertiesOnSameLine?: boolean;
|
|
18727
|
-
allowMultiplePropertiesPerLine?: boolean;
|
|
18728
19023
|
}]; // ----- vue/object-shorthand -----
|
|
18729
19024
|
type VueObjectShorthand = ([] | [("always" | "methods" | "properties" | "never" | "consistent" | "consistent-as-needed")] | [] | [("always" | "methods" | "properties")] | [("always" | "methods" | "properties"), {
|
|
18730
19025
|
avoidQuotes?: boolean;
|
|
@@ -18734,7 +19029,7 @@ type VueObjectShorthand = ([] | [("always" | "methods" | "properties" | "never"
|
|
|
18734
19029
|
avoidQuotes?: boolean;
|
|
18735
19030
|
avoidExplicitReturnArrows?: boolean;
|
|
18736
19031
|
}]); // ----- vue/operator-linebreak -----
|
|
18737
|
-
type VueOperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [("after" | "before" | "none" | null), {
|
|
19032
|
+
type VueOperatorLinebreak = [] | [(("after" | "before" | "none") | null)] | [(("after" | "before" | "none") | null), {
|
|
18738
19033
|
overrides?: {
|
|
18739
19034
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined;
|
|
18740
19035
|
};
|
|
@@ -18822,6 +19117,7 @@ type VueSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
18822
19117
|
}]; // ----- vue/space-infix-ops -----
|
|
18823
19118
|
type VueSpaceInfixOps = [] | [{
|
|
18824
19119
|
int32Hint?: boolean;
|
|
19120
|
+
ignoreTypes?: boolean;
|
|
18825
19121
|
}]; // ----- vue/space-unary-ops -----
|
|
18826
19122
|
type VueSpaceUnaryOps = [] | [{
|
|
18827
19123
|
words?: boolean;
|
|
@@ -19063,7 +19359,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
19063
19359
|
exceptRange?: boolean;
|
|
19064
19360
|
onlyEquality?: boolean;
|
|
19065
19361
|
}]; // Names of all the configs
|
|
19066
|
-
type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/unicorn' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | '
|
|
19362
|
+
type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/unicorn' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss/rules' | 'config/astro/setup' | 'config/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables/code' | 'config/formatters/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
|
|
19067
19363
|
//#endregion
|
|
19068
19364
|
//#region src/vender/prettier-types.d.ts
|
|
19069
19365
|
/**
|
|
@@ -19393,7 +19689,7 @@ interface OptionsStylistic {
|
|
|
19393
19689
|
interface OptionsStylistic {
|
|
19394
19690
|
stylistic?: boolean | StylisticConfig;
|
|
19395
19691
|
}
|
|
19396
|
-
interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi" | "experimental"> {}
|
|
19692
|
+
interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi" | "braceStyle" | "experimental"> {}
|
|
19397
19693
|
interface OptionsOverrides {
|
|
19398
19694
|
overrides?: TypedFlatConfigItem["rules"];
|
|
19399
19695
|
}
|
|
@@ -19556,6 +19852,12 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
19556
19852
|
*/
|
|
19557
19853
|
unicorn?: boolean | OptionsUnicorn;
|
|
19558
19854
|
/**
|
|
19855
|
+
* Options for eslint-plugin-perfectionist.
|
|
19856
|
+
*
|
|
19857
|
+
* @default true
|
|
19858
|
+
*/
|
|
19859
|
+
perfectionist?: boolean | OptionsOverrides;
|
|
19860
|
+
/**
|
|
19559
19861
|
* Options for eslint-plugin-import-lite.
|
|
19560
19862
|
*
|
|
19561
19863
|
* @default true
|
|
@@ -19725,10 +20027,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
19725
20027
|
//#region src/factory.d.ts
|
|
19726
20028
|
declare const defaultPluginRenaming: {
|
|
19727
20029
|
"@eslint-react": string;
|
|
19728
|
-
"@eslint-react/dom": string;
|
|
19729
|
-
"@eslint-react/naming-convention": string;
|
|
19730
|
-
"@eslint-react/rsc": string;
|
|
19731
|
-
"@eslint-react/web-api": string;
|
|
19732
20030
|
"@next/next": string;
|
|
19733
20031
|
"@stylistic": string;
|
|
19734
20032
|
"@typescript-eslint": string;
|
|
@@ -19812,7 +20110,7 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
|
19812
20110
|
*
|
|
19813
20111
|
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
19814
20112
|
*/
|
|
19815
|
-
declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
|
|
20113
|
+
declare function perfectionist(options: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
19816
20114
|
//#endregion
|
|
19817
20115
|
//#region src/configs/pnpm.d.ts
|
|
19818
20116
|
declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
|