@antfu/eslint-config 7.7.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.mjs +8 -13
- package/dist/index.d.mts +410 -490
- package/dist/index.mjs +14 -104
- package/dist/{lib-D3Kr7UIJ.mjs → lib-EoktVv6C.mjs} +2793 -2278
- package/package.json +44 -49
package/dist/index.d.mts
CHANGED
|
@@ -123,7 +123,7 @@ interface RuleOptions {
|
|
|
123
123
|
*/
|
|
124
124
|
'angular-template/no-negated-async'?: Linter.RuleEntry<[]>;
|
|
125
125
|
/**
|
|
126
|
-
* Denies nesting of
|
|
126
|
+
* Denies nesting of `<p>` and `<a>` tags.
|
|
127
127
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-nested-tags.md
|
|
128
128
|
*/
|
|
129
129
|
'angular-template/no-nested-tags'?: Linter.RuleEntry<[]>;
|
|
@@ -2117,6 +2117,11 @@ interface RuleOptions {
|
|
|
2117
2117
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
2118
2118
|
*/
|
|
2119
2119
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
2120
|
+
/**
|
|
2121
|
+
* Require or disallow metadata for fenced code blocks
|
|
2122
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
2123
|
+
*/
|
|
2124
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
2120
2125
|
/**
|
|
2121
2126
|
* Enforce heading levels increment by one
|
|
2122
2127
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -3818,149 +3823,11 @@ interface RuleOptions {
|
|
|
3818
3823
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
3819
3824
|
*/
|
|
3820
3825
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
3821
|
-
/**
|
|
3822
|
-
* Disallows direct calls to the ['set' function](https://react.dev/reference/react/useState#setstate) of 'useState' in 'useEffect'.
|
|
3823
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
3824
|
-
*/
|
|
3825
|
-
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
3826
|
-
/**
|
|
3827
|
-
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
3828
|
-
*/
|
|
3829
|
-
'react-hooks/automatic-effect-dependencies'?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>;
|
|
3830
|
-
/**
|
|
3831
|
-
* Validates against calling capitalized functions/methods instead of using JSX
|
|
3832
|
-
*/
|
|
3833
|
-
'react-hooks/capitalized-calls'?: Linter.RuleEntry<ReactHooksCapitalizedCalls>;
|
|
3834
|
-
/**
|
|
3835
|
-
* Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
|
|
3836
|
-
*/
|
|
3837
|
-
'react-hooks/component-hook-factories'?: Linter.RuleEntry<ReactHooksComponentHookFactories>;
|
|
3838
|
-
/**
|
|
3839
|
-
* Validates the compiler configuration options
|
|
3840
|
-
*/
|
|
3841
|
-
'react-hooks/config'?: Linter.RuleEntry<ReactHooksConfig>;
|
|
3842
|
-
/**
|
|
3843
|
-
* Validates usage of error boundaries instead of try/catch for errors in child components
|
|
3844
|
-
*/
|
|
3845
|
-
'react-hooks/error-boundaries'?: Linter.RuleEntry<ReactHooksErrorBoundaries>;
|
|
3846
|
-
/**
|
|
3847
|
-
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
3848
|
-
* @see https://github.com/facebook/react/issues/14920
|
|
3849
|
-
*/
|
|
3850
|
-
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>;
|
|
3851
|
-
/**
|
|
3852
|
-
* Validates usage of fbt
|
|
3853
|
-
*/
|
|
3854
|
-
'react-hooks/fbt'?: Linter.RuleEntry<ReactHooksFbt>;
|
|
3855
|
-
/**
|
|
3856
|
-
* Validates usage of `fire`
|
|
3857
|
-
*/
|
|
3858
|
-
'react-hooks/fire'?: Linter.RuleEntry<ReactHooksFire>;
|
|
3859
|
-
/**
|
|
3860
|
-
* Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
|
|
3861
|
-
*/
|
|
3862
|
-
'react-hooks/gating'?: Linter.RuleEntry<ReactHooksGating>;
|
|
3863
|
-
/**
|
|
3864
|
-
* Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
|
|
3865
|
-
*/
|
|
3866
|
-
'react-hooks/globals'?: Linter.RuleEntry<ReactHooksGlobals>;
|
|
3867
|
-
/**
|
|
3868
|
-
* Validates the rules of hooks
|
|
3869
|
-
*/
|
|
3870
|
-
'react-hooks/hooks'?: Linter.RuleEntry<ReactHooksHooks>;
|
|
3871
|
-
/**
|
|
3872
|
-
* Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
|
|
3873
|
-
*/
|
|
3874
|
-
'react-hooks/immutability'?: Linter.RuleEntry<ReactHooksImmutability>;
|
|
3875
|
-
/**
|
|
3876
|
-
* Validates against usage of libraries which are incompatible with memoization (manual or automatic)
|
|
3877
|
-
*/
|
|
3878
|
-
'react-hooks/incompatible-library'?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>;
|
|
3879
|
-
/**
|
|
3880
|
-
* Internal invariants
|
|
3881
|
-
*/
|
|
3882
|
-
'react-hooks/invariant'?: Linter.RuleEntry<ReactHooksInvariant>;
|
|
3883
|
-
/**
|
|
3884
|
-
* Validates that effect dependencies are memoized
|
|
3885
|
-
*/
|
|
3886
|
-
'react-hooks/memoized-effect-dependencies'?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>;
|
|
3887
|
-
/**
|
|
3888
|
-
* Validates against deriving values from state in an effect
|
|
3889
|
-
*/
|
|
3890
|
-
'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
|
|
3891
|
-
/**
|
|
3892
|
-
* Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
|
|
3893
|
-
*/
|
|
3894
|
-
'react-hooks/preserve-manual-memoization'?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>;
|
|
3895
|
-
/**
|
|
3896
|
-
* Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
|
|
3897
|
-
*/
|
|
3898
|
-
'react-hooks/purity'?: Linter.RuleEntry<ReactHooksPurity>;
|
|
3899
|
-
/**
|
|
3900
|
-
* Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
|
|
3901
|
-
*/
|
|
3902
|
-
'react-hooks/refs'?: Linter.RuleEntry<ReactHooksRefs>;
|
|
3903
|
-
/**
|
|
3904
|
-
* Validates against suppression of other rules
|
|
3905
|
-
*/
|
|
3906
|
-
'react-hooks/rule-suppression'?: Linter.RuleEntry<ReactHooksRuleSuppression>;
|
|
3907
|
-
/**
|
|
3908
|
-
* enforces the Rules of Hooks
|
|
3909
|
-
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
3910
|
-
*/
|
|
3911
|
-
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<ReactHooksRulesOfHooks>;
|
|
3912
|
-
/**
|
|
3913
|
-
* Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
|
|
3914
|
-
*/
|
|
3915
|
-
'react-hooks/set-state-in-effect'?: Linter.RuleEntry<ReactHooksSetStateInEffect>;
|
|
3916
|
-
/**
|
|
3917
|
-
* Validates against setting state during render, which can trigger additional renders and potential infinite render loops
|
|
3918
|
-
*/
|
|
3919
|
-
'react-hooks/set-state-in-render'?: Linter.RuleEntry<ReactHooksSetStateInRender>;
|
|
3920
|
-
/**
|
|
3921
|
-
* Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
|
|
3922
|
-
*/
|
|
3923
|
-
'react-hooks/static-components'?: Linter.RuleEntry<ReactHooksStaticComponents>;
|
|
3924
|
-
/**
|
|
3925
|
-
* Validates against invalid syntax
|
|
3926
|
-
*/
|
|
3927
|
-
'react-hooks/syntax'?: Linter.RuleEntry<ReactHooksSyntax>;
|
|
3928
|
-
/**
|
|
3929
|
-
* Unimplemented features
|
|
3930
|
-
*/
|
|
3931
|
-
'react-hooks/todo'?: Linter.RuleEntry<ReactHooksTodo>;
|
|
3932
|
-
/**
|
|
3933
|
-
* Validates against syntax that we do not plan to support in React Compiler
|
|
3934
|
-
*/
|
|
3935
|
-
'react-hooks/unsupported-syntax'?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>;
|
|
3936
|
-
/**
|
|
3937
|
-
* Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
3938
|
-
*/
|
|
3939
|
-
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
3940
|
-
/**
|
|
3941
|
-
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
3942
|
-
*/
|
|
3943
|
-
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
3944
|
-
/**
|
|
3945
|
-
* Enforces naming conventions for components.
|
|
3946
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
3947
|
-
*/
|
|
3948
|
-
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
3949
3826
|
/**
|
|
3950
3827
|
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
3951
3828
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3952
3829
|
*/
|
|
3953
3830
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
3954
|
-
/**
|
|
3955
|
-
* Enforces consistent file-naming conventions.
|
|
3956
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
3957
|
-
*/
|
|
3958
|
-
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
3959
|
-
/**
|
|
3960
|
-
* Enforces consistent use of the JSX file extension.
|
|
3961
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
3962
|
-
*/
|
|
3963
|
-
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
3964
3831
|
/**
|
|
3965
3832
|
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
3966
3833
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
@@ -3971,14 +3838,9 @@ interface RuleOptions {
|
|
|
3971
3838
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
3972
3839
|
*/
|
|
3973
3840
|
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
3974
|
-
/**
|
|
3975
|
-
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
3976
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
3977
|
-
*/
|
|
3978
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
3979
3841
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
3980
3842
|
/**
|
|
3981
|
-
*
|
|
3843
|
+
* Validates and transforms React Client/Server Function definitions.
|
|
3982
3844
|
* @see https://eslint-react.xyz/docs/rules/function-definition
|
|
3983
3845
|
*/
|
|
3984
3846
|
'react-rsc/function-definition'?: Linter.RuleEntry<[]>;
|
|
@@ -4002,6 +3864,26 @@ interface RuleOptions {
|
|
|
4002
3864
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
4003
3865
|
*/
|
|
4004
3866
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3867
|
+
/**
|
|
3868
|
+
* Disallows higher order functions that define components or hooks inside them.
|
|
3869
|
+
* @see https://eslint-react.xyz/docs/rules/component-hook-factories
|
|
3870
|
+
*/
|
|
3871
|
+
'react/component-hook-factories'?: Linter.RuleEntry<[]>;
|
|
3872
|
+
/**
|
|
3873
|
+
* Validates usage of Error Boundaries instead of try/catch for errors in child components.
|
|
3874
|
+
* @see https://eslint-react.xyz/docs/rules/error-boundaries
|
|
3875
|
+
*/
|
|
3876
|
+
'react/error-boundaries'?: Linter.RuleEntry<[]>;
|
|
3877
|
+
/**
|
|
3878
|
+
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
3879
|
+
* @see https://github.com/facebook/react/issues/14920
|
|
3880
|
+
*/
|
|
3881
|
+
'react/exhaustive-deps'?: Linter.RuleEntry<ReactExhaustiveDeps>;
|
|
3882
|
+
/**
|
|
3883
|
+
* Validates against mutating props, state, and other values that are immutable.
|
|
3884
|
+
* @see https://eslint-react.xyz/docs/rules/immutability
|
|
3885
|
+
*/
|
|
3886
|
+
'react/immutability'?: Linter.RuleEntry<[]>;
|
|
4005
3887
|
/**
|
|
4006
3888
|
* Prevents unintentional '$' sign before expression.
|
|
4007
3889
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
@@ -4013,25 +3895,10 @@ interface RuleOptions {
|
|
|
4013
3895
|
*/
|
|
4014
3896
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
4015
3897
|
/**
|
|
4016
|
-
* Prevents comment strings (
|
|
3898
|
+
* Prevents comment strings (ex: beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
4017
3899
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
4018
3900
|
*/
|
|
4019
3901
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
4020
|
-
/**
|
|
4021
|
-
* Disallows duplicate props in JSX elements.
|
|
4022
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
4023
|
-
*/
|
|
4024
|
-
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
4025
|
-
/**
|
|
4026
|
-
* Disallows immediately-invoked function expressions in JSX.
|
|
4027
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
4028
|
-
*/
|
|
4029
|
-
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
4030
|
-
/**
|
|
4031
|
-
* Prevents using variables in JSX that are not defined in the scope.
|
|
4032
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
4033
|
-
*/
|
|
4034
|
-
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
4035
3902
|
/**
|
|
4036
3903
|
* Enforces shorthand syntax for boolean props.
|
|
4037
3904
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
@@ -4042,16 +3909,6 @@ interface RuleOptions {
|
|
|
4042
3909
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
4043
3910
|
*/
|
|
4044
3911
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
4045
|
-
/**
|
|
4046
|
-
* Marks React variables as used when JSX is present.
|
|
4047
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
4048
|
-
*/
|
|
4049
|
-
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
4050
|
-
/**
|
|
4051
|
-
* Marks JSX element variables as used.
|
|
4052
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
4053
|
-
*/
|
|
4054
|
-
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
4055
3912
|
/**
|
|
4056
3913
|
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
4057
3914
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
@@ -4127,11 +3984,6 @@ interface RuleOptions {
|
|
|
4127
3984
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
4128
3985
|
*/
|
|
4129
3986
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
4130
|
-
/**
|
|
4131
|
-
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
4132
|
-
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
4133
|
-
*/
|
|
4134
|
-
'react/no-default-props'?: Linter.RuleEntry<[]>;
|
|
4135
3987
|
/**
|
|
4136
3988
|
* Disallows direct mutation of 'this.state'.
|
|
4137
3989
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
@@ -4142,22 +3994,26 @@ interface RuleOptions {
|
|
|
4142
3994
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
4143
3995
|
*/
|
|
4144
3996
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
4145
|
-
/**
|
|
4146
|
-
* Disallows certain props on components.
|
|
4147
|
-
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
4148
|
-
* @deprecated
|
|
4149
|
-
*/
|
|
4150
|
-
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
4151
3997
|
/**
|
|
4152
3998
|
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
4153
3999
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
4154
4000
|
*/
|
|
4155
4001
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
4002
|
+
/**
|
|
4003
|
+
* Prevents implicitly passing the 'children' prop to components.
|
|
4004
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-children
|
|
4005
|
+
*/
|
|
4006
|
+
'react/no-implicit-children'?: Linter.RuleEntry<[]>;
|
|
4156
4007
|
/**
|
|
4157
4008
|
* Prevents implicitly passing the 'key' prop to components.
|
|
4158
4009
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
4159
4010
|
*/
|
|
4160
4011
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
4012
|
+
/**
|
|
4013
|
+
* Prevents implicitly passing the 'ref' prop to components.
|
|
4014
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-ref
|
|
4015
|
+
*/
|
|
4016
|
+
'react/no-implicit-ref'?: Linter.RuleEntry<[]>;
|
|
4161
4017
|
/**
|
|
4162
4018
|
* Prevents problematic leaked values from being rendered.
|
|
4163
4019
|
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
@@ -4193,11 +4049,6 @@ interface RuleOptions {
|
|
|
4193
4049
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
4194
4050
|
*/
|
|
4195
4051
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
4196
|
-
/**
|
|
4197
|
-
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
4198
|
-
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
4199
|
-
*/
|
|
4200
|
-
'react/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
4201
4052
|
/**
|
|
4202
4053
|
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
4203
4054
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
@@ -4218,16 +4069,6 @@ interface RuleOptions {
|
|
|
4218
4069
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
4219
4070
|
*/
|
|
4220
4071
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
4221
|
-
/**
|
|
4222
|
-
* Replaces string refs with callback refs.
|
|
4223
|
-
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
4224
|
-
*/
|
|
4225
|
-
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
4226
|
-
/**
|
|
4227
|
-
* Disallows unnecessary 'key' props on nested child elements when rendering lists.
|
|
4228
|
-
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
4229
|
-
*/
|
|
4230
|
-
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
4231
4072
|
/**
|
|
4232
4073
|
* Disallows unnecessary usage of 'useCallback'.
|
|
4233
4074
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
@@ -4243,11 +4084,6 @@ interface RuleOptions {
|
|
|
4243
4084
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
4244
4085
|
*/
|
|
4245
4086
|
'react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
4246
|
-
/**
|
|
4247
|
-
* Disallows unnecessary usage of 'useRef'.
|
|
4248
|
-
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-ref
|
|
4249
|
-
*/
|
|
4250
|
-
'react/no-unnecessary-use-ref'?: Linter.RuleEntry<[]>;
|
|
4251
4087
|
/**
|
|
4252
4088
|
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
4253
4089
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
@@ -4293,11 +4129,6 @@ interface RuleOptions {
|
|
|
4293
4129
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
4294
4130
|
*/
|
|
4295
4131
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
4296
|
-
/**
|
|
4297
|
-
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
4298
|
-
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
4299
|
-
*/
|
|
4300
|
-
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
4301
4132
|
/**
|
|
4302
4133
|
* Disallows useless fragment elements.
|
|
4303
4134
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
@@ -4314,15 +4145,55 @@ interface RuleOptions {
|
|
|
4314
4145
|
*/
|
|
4315
4146
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
4316
4147
|
/**
|
|
4317
|
-
*
|
|
4318
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
4148
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
4149
|
+
* @see https://eslint-react.xyz/docs/rules/purity
|
|
4150
|
+
*/
|
|
4151
|
+
'react/purity'?: Linter.RuleEntry<[]>;
|
|
4152
|
+
/**
|
|
4153
|
+
* Validates correct usage of refs by checking that 'ref.current' is not read or written during render.
|
|
4154
|
+
* @see https://eslint-react.xyz/docs/rules/refs
|
|
4155
|
+
*/
|
|
4156
|
+
'react/refs'?: Linter.RuleEntry<[]>;
|
|
4157
|
+
/**
|
|
4158
|
+
* Enforces the Rules of Hooks.
|
|
4159
|
+
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
4160
|
+
*/
|
|
4161
|
+
'react/rules-of-hooks'?: Linter.RuleEntry<ReactRulesOfHooks>;
|
|
4162
|
+
/**
|
|
4163
|
+
* Validates against setting state synchronously in an effect, which can lead to re-renders that degrade performance.
|
|
4164
|
+
* @see https://eslint-react.xyz/docs/rules/set-state-in-effect
|
|
4165
|
+
*/
|
|
4166
|
+
'react/set-state-in-effect'?: Linter.RuleEntry<[]>;
|
|
4167
|
+
/**
|
|
4168
|
+
* Validates against unconditionally setting state during render, which can trigger additional renders and potential infinite render loops.
|
|
4169
|
+
* @see https://eslint-react.xyz/docs/rules/set-state-in-render
|
|
4170
|
+
*/
|
|
4171
|
+
'react/set-state-in-render'?: Linter.RuleEntry<[]>;
|
|
4172
|
+
/**
|
|
4173
|
+
* Enforces the Rules of Props.
|
|
4174
|
+
* @see https://eslint-react.xyz/docs/rules/unstable-rules-of-props
|
|
4175
|
+
*/
|
|
4176
|
+
'react/unstable-rules-of-props'?: Linter.RuleEntry<[]>;
|
|
4177
|
+
/**
|
|
4178
|
+
* Enforces the Rules of State.
|
|
4179
|
+
* @see https://eslint-react.xyz/docs/rules/unstable-rules-of-state
|
|
4180
|
+
*/
|
|
4181
|
+
'react/unstable-rules-of-state'?: Linter.RuleEntry<[]>;
|
|
4182
|
+
/**
|
|
4183
|
+
* Validates against syntax that React Compiler does not support.
|
|
4184
|
+
* @see https://eslint-react.xyz/docs/rules/unsupported-syntax
|
|
4185
|
+
*/
|
|
4186
|
+
'react/unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
4187
|
+
/**
|
|
4188
|
+
* Validates that 'useMemo' is called with a callback that returns a value.
|
|
4189
|
+
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
4319
4190
|
*/
|
|
4320
|
-
'react/
|
|
4191
|
+
'react/use-memo'?: Linter.RuleEntry<[]>;
|
|
4321
4192
|
/**
|
|
4322
|
-
* Enforces
|
|
4323
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
4193
|
+
* Enforces correct usage of 'useState', including destructuring, symmetric naming of the value and setter, and wrapping expensive initializers in a lazy initializer function.
|
|
4194
|
+
* @see https://eslint-react.xyz/docs/rules/use-state
|
|
4324
4195
|
*/
|
|
4325
|
-
'react/
|
|
4196
|
+
'react/use-state'?: Linter.RuleEntry<ReactUseState>;
|
|
4326
4197
|
/**
|
|
4327
4198
|
* disallow confusing quantifiers
|
|
4328
4199
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
@@ -5503,6 +5374,11 @@ interface RuleOptions {
|
|
|
5503
5374
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-attributes-per-line/
|
|
5504
5375
|
*/
|
|
5505
5376
|
'svelte/max-attributes-per-line'?: Linter.RuleEntry<SvelteMaxAttributesPerLine>;
|
|
5377
|
+
/**
|
|
5378
|
+
* enforce maximum number of lines in svelte component blocks
|
|
5379
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-lines-per-block/
|
|
5380
|
+
*/
|
|
5381
|
+
'svelte/max-lines-per-block'?: Linter.RuleEntry<SvelteMaxLinesPerBlock>;
|
|
5506
5382
|
/**
|
|
5507
5383
|
* enforce unified spacing in mustache
|
|
5508
5384
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/mustache-spacing/
|
|
@@ -5602,7 +5478,7 @@ interface RuleOptions {
|
|
|
5602
5478
|
*/
|
|
5603
5479
|
'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>;
|
|
5604
5480
|
/**
|
|
5605
|
-
* disallow
|
|
5481
|
+
* disallow internal navigation (links, `goto()`, `pushState()`, `replaceState()`) without a `resolve()`
|
|
5606
5482
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
|
|
5607
5483
|
*/
|
|
5608
5484
|
'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
|
|
@@ -6230,6 +6106,11 @@ interface RuleOptions {
|
|
|
6230
6106
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
6231
6107
|
*/
|
|
6232
6108
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
|
|
6109
|
+
/**
|
|
6110
|
+
* enforce unbound methods are called with their expected scope
|
|
6111
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
6112
|
+
*/
|
|
6113
|
+
'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
|
|
6233
6114
|
/**
|
|
6234
6115
|
* enforce valid describe callback
|
|
6235
6116
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -7060,730 +6941,750 @@ interface RuleOptions {
|
|
|
7060
6941
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7061
6942
|
/**
|
|
7062
6943
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
7063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
7064
6945
|
*/
|
|
7065
6946
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
7066
6947
|
/**
|
|
7067
6948
|
* Enforce a specific parameter name in catch clauses.
|
|
7068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
7069
6950
|
*/
|
|
7070
6951
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
7071
6952
|
/**
|
|
7072
6953
|
* Enforce consistent assertion style with `node:assert`.
|
|
7073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
7074
6955
|
*/
|
|
7075
6956
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
7076
6957
|
/**
|
|
7077
6958
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
7079
6960
|
*/
|
|
7080
6961
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
7081
6962
|
/**
|
|
7082
6963
|
* Use destructured variables over properties.
|
|
7083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
7084
6965
|
*/
|
|
7085
6966
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
7086
6967
|
/**
|
|
7087
6968
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6969
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
7089
6970
|
*/
|
|
7090
6971
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
7091
6972
|
/**
|
|
7092
6973
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
7094
6975
|
*/
|
|
7095
6976
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
7096
6977
|
/**
|
|
7097
6978
|
* Move function definitions to the highest possible scope.
|
|
7098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
7099
6980
|
*/
|
|
7100
6981
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6982
|
+
/**
|
|
6983
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
6984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
6985
|
+
*/
|
|
6986
|
+
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
7101
6987
|
/**
|
|
7102
6988
|
* Enforce correct `Error` subclassing.
|
|
7103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
7104
6990
|
*/
|
|
7105
6991
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
7106
6992
|
/**
|
|
7107
6993
|
* Enforce no spaces between braces.
|
|
7108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
7109
6995
|
*/
|
|
7110
6996
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
7111
6997
|
/**
|
|
7112
6998
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
7114
7000
|
*/
|
|
7115
7001
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
7116
7002
|
/**
|
|
7117
7003
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
7119
7005
|
*/
|
|
7120
7006
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
7121
7007
|
/**
|
|
7122
7008
|
* Add expiration conditions to TODO comments.
|
|
7123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
7124
7010
|
*/
|
|
7125
7011
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
7126
7012
|
/**
|
|
7127
7013
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
7129
7015
|
*/
|
|
7130
7016
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
7131
7017
|
/**
|
|
7132
7018
|
* Enforce a case style for filenames.
|
|
7133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
7134
7020
|
*/
|
|
7135
7021
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
7136
7022
|
/**
|
|
7137
7023
|
* Enforce specific import styles per module.
|
|
7138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
7139
7025
|
*/
|
|
7140
7026
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
7141
7027
|
/**
|
|
7142
7028
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
7143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7029
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
7144
7030
|
*/
|
|
7145
7031
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
7146
7032
|
/**
|
|
7147
7033
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
7148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
7149
7035
|
*/
|
|
7150
7036
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
7151
7037
|
/**
|
|
7152
7038
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
7154
7040
|
*/
|
|
7155
7041
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
7156
7042
|
/**
|
|
7157
7043
|
* Disallow recursive access to `this` within getters and setters.
|
|
7158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
7159
7045
|
*/
|
|
7160
7046
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
7161
7047
|
/**
|
|
7162
7048
|
* Disallow anonymous functions and classes as the default export.
|
|
7163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7049
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
7164
7050
|
*/
|
|
7165
7051
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
7166
7052
|
/**
|
|
7167
7053
|
* Prevent passing a function reference directly to iterator methods.
|
|
7168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
7169
7055
|
*/
|
|
7170
7056
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
7171
7057
|
/**
|
|
7172
7058
|
* Prefer `for…of` over the `forEach` method.
|
|
7173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
7174
7060
|
*/
|
|
7175
7061
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
7176
7062
|
/**
|
|
7177
7063
|
* Disallow using the `this` argument in array methods.
|
|
7178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
7179
7065
|
*/
|
|
7180
7066
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
7181
7067
|
/**
|
|
7182
7068
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
7184
7070
|
* @deprecated
|
|
7185
7071
|
*/
|
|
7186
7072
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
7187
7073
|
/**
|
|
7188
7074
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
7190
7076
|
*/
|
|
7191
7077
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
7192
7078
|
/**
|
|
7193
7079
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
7194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
7195
7081
|
*/
|
|
7196
7082
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
7197
7083
|
/**
|
|
7198
7084
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
7199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
7200
7086
|
*/
|
|
7201
7087
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
7202
7088
|
/**
|
|
7203
7089
|
* Disallow member access from await expression.
|
|
7204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
7205
7091
|
*/
|
|
7206
7092
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
7207
7093
|
/**
|
|
7208
7094
|
* Disallow using `await` in `Promise` method parameters.
|
|
7209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
7210
7096
|
*/
|
|
7211
7097
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7212
7098
|
/**
|
|
7213
7099
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
7215
7101
|
*/
|
|
7216
7102
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
7217
7103
|
/**
|
|
7218
7104
|
* Do not use `document.cookie` directly.
|
|
7219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
7220
7106
|
*/
|
|
7221
7107
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
7222
7108
|
/**
|
|
7223
7109
|
* Disallow empty files.
|
|
7224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
7225
7111
|
*/
|
|
7226
7112
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
7227
7113
|
/**
|
|
7228
7114
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
7230
7116
|
*/
|
|
7231
7117
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7232
7118
|
/**
|
|
7233
7119
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
7234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
7235
7121
|
*/
|
|
7236
7122
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7237
7123
|
/**
|
|
7238
7124
|
* Disallow immediate mutation after variable assignment.
|
|
7239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
7240
7126
|
*/
|
|
7241
7127
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
7242
7128
|
/**
|
|
7243
7129
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7245
7131
|
* @deprecated
|
|
7246
7132
|
*/
|
|
7247
7133
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7248
7134
|
/**
|
|
7249
7135
|
* Disallow `instanceof` with built-in objects
|
|
7250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
7251
7137
|
*/
|
|
7252
7138
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7253
7139
|
/**
|
|
7254
7140
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7256
7142
|
*/
|
|
7257
7143
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7258
7144
|
/**
|
|
7259
7145
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7261
7147
|
*/
|
|
7262
7148
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7263
7149
|
/**
|
|
7264
7150
|
* Disallow identifiers starting with `new` or `class`.
|
|
7265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
7266
7152
|
*/
|
|
7267
7153
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7268
7154
|
/**
|
|
7269
7155
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7271
7157
|
* @deprecated
|
|
7272
7158
|
*/
|
|
7273
7159
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7274
7160
|
/**
|
|
7275
7161
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
7277
7163
|
*/
|
|
7278
7164
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7279
7165
|
/**
|
|
7280
7166
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7282
7168
|
*/
|
|
7283
7169
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7284
7170
|
/**
|
|
7285
7171
|
* Disallow named usage of default import and export.
|
|
7286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
7287
7173
|
*/
|
|
7288
7174
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7289
7175
|
/**
|
|
7290
7176
|
* Disallow negated conditions.
|
|
7291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
7292
7178
|
*/
|
|
7293
7179
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7294
7180
|
/**
|
|
7295
7181
|
* Disallow negated expression in equality check.
|
|
7296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7297
7183
|
*/
|
|
7298
7184
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7299
7185
|
/**
|
|
7300
7186
|
* Disallow nested ternary expressions.
|
|
7301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
7302
7188
|
*/
|
|
7303
7189
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7304
7190
|
/**
|
|
7305
7191
|
* Disallow `new Array()`.
|
|
7306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
7307
7193
|
*/
|
|
7308
7194
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7309
7195
|
/**
|
|
7310
7196
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
7312
7198
|
*/
|
|
7313
7199
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7314
7200
|
/**
|
|
7315
7201
|
* Disallow the use of the `null` literal.
|
|
7316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
7317
7203
|
*/
|
|
7318
7204
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7319
7205
|
/**
|
|
7320
7206
|
* Disallow the use of objects as default parameters.
|
|
7321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7322
7208
|
*/
|
|
7323
7209
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7324
7210
|
/**
|
|
7325
7211
|
* Disallow `process.exit()`.
|
|
7326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
7327
7213
|
*/
|
|
7328
7214
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7329
7215
|
/**
|
|
7330
7216
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7332
7218
|
*/
|
|
7333
7219
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7334
7220
|
/**
|
|
7335
7221
|
* Disallow classes that only have static members.
|
|
7336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
7337
7223
|
*/
|
|
7338
7224
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7339
7225
|
/**
|
|
7340
7226
|
* Disallow `then` property.
|
|
7341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
7342
7228
|
*/
|
|
7343
7229
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7344
7230
|
/**
|
|
7345
7231
|
* Disallow assigning `this` to a variable.
|
|
7346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
7347
7233
|
*/
|
|
7348
7234
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7349
7235
|
/**
|
|
7350
7236
|
* Disallow comparing `undefined` using `typeof`.
|
|
7351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
7352
7238
|
*/
|
|
7353
7239
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7354
7240
|
/**
|
|
7355
7241
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7357
7243
|
*/
|
|
7358
7244
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7359
7245
|
/**
|
|
7360
7246
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7362
7248
|
*/
|
|
7363
7249
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7364
7250
|
/**
|
|
7365
7251
|
* Disallow awaiting non-promise values.
|
|
7366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
7367
7253
|
*/
|
|
7368
7254
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7369
7255
|
/**
|
|
7370
7256
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
7372
7258
|
*/
|
|
7373
7259
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7374
7260
|
/**
|
|
7375
7261
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
7377
7263
|
*/
|
|
7378
7264
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7379
7265
|
/**
|
|
7380
7266
|
* Disallow unreadable array destructuring.
|
|
7381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
7382
7268
|
*/
|
|
7383
7269
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
7384
7270
|
/**
|
|
7385
7271
|
* Disallow unreadable IIFEs.
|
|
7386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
7387
7273
|
*/
|
|
7388
7274
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
7389
7275
|
/**
|
|
7390
7276
|
* Disallow unused object properties.
|
|
7391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
7392
7278
|
*/
|
|
7393
7279
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
7394
7280
|
/**
|
|
7395
7281
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
7396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
7397
7283
|
*/
|
|
7398
7284
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
7399
7285
|
/**
|
|
7400
7286
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
7401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
7402
7288
|
*/
|
|
7403
7289
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
7404
7290
|
/**
|
|
7405
7291
|
* Disallow useless fallback when spreading in object literals.
|
|
7406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
7407
7293
|
*/
|
|
7408
7294
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
7295
|
+
/**
|
|
7296
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
7297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
7298
|
+
*/
|
|
7299
|
+
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
7409
7300
|
/**
|
|
7410
7301
|
* Disallow useless array length check.
|
|
7411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
7412
7303
|
*/
|
|
7413
7304
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
7414
7305
|
/**
|
|
7415
7306
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
7417
7308
|
*/
|
|
7418
7309
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
7419
7310
|
/**
|
|
7420
7311
|
* Disallow unnecessary spread.
|
|
7421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
7422
7313
|
*/
|
|
7423
7314
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
7424
7315
|
/**
|
|
7425
7316
|
* Disallow useless case in switch statements.
|
|
7426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
7427
7318
|
*/
|
|
7428
7319
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
7429
7320
|
/**
|
|
7430
7321
|
* Disallow useless `undefined`.
|
|
7431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
7432
7323
|
*/
|
|
7433
7324
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
7434
7325
|
/**
|
|
7435
7326
|
* Disallow number literals with zero fractions or dangling dots.
|
|
7436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
7437
7328
|
*/
|
|
7438
7329
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
7439
7330
|
/**
|
|
7440
7331
|
* Enforce proper case for numeric literals.
|
|
7441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
7442
7333
|
*/
|
|
7443
7334
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
7444
7335
|
/**
|
|
7445
7336
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
7447
7338
|
*/
|
|
7448
7339
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
7449
7340
|
/**
|
|
7450
7341
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
7452
7343
|
*/
|
|
7453
7344
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
7454
7345
|
/**
|
|
7455
7346
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
7457
7348
|
*/
|
|
7458
7349
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
7459
7350
|
/**
|
|
7460
7351
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
7462
7353
|
*/
|
|
7463
7354
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
7464
7355
|
/**
|
|
7465
7356
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
7466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
7467
7358
|
*/
|
|
7468
7359
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7469
7360
|
/**
|
|
7470
7361
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
7471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
7472
7363
|
*/
|
|
7473
7364
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
7474
7365
|
/**
|
|
7475
7366
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
7477
7368
|
*/
|
|
7478
7369
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
7479
7370
|
/**
|
|
7480
7371
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
7482
7373
|
*/
|
|
7483
7374
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
7484
7375
|
/**
|
|
7485
7376
|
* Prefer `BigInt` literals over the constructor.
|
|
7486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
7487
7378
|
*/
|
|
7488
7379
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
7489
7380
|
/**
|
|
7490
7381
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
7492
7383
|
*/
|
|
7493
7384
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
7494
7385
|
/**
|
|
7495
7386
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
7496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
7497
7388
|
*/
|
|
7498
7389
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
7499
7390
|
/**
|
|
7500
7391
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
7501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
7502
7393
|
*/
|
|
7503
7394
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
7504
7395
|
/**
|
|
7505
7396
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
7507
7398
|
*/
|
|
7508
7399
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
7509
7400
|
/**
|
|
7510
7401
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
7512
7403
|
*/
|
|
7513
7404
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
7514
7405
|
/**
|
|
7515
7406
|
* Prefer default parameters over reassignment.
|
|
7516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
7517
7408
|
*/
|
|
7518
7409
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
7519
7410
|
/**
|
|
7520
7411
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
7521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
7522
7413
|
*/
|
|
7523
7414
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
7524
7415
|
/**
|
|
7525
7416
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
7526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
7527
7418
|
*/
|
|
7528
7419
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
7529
7420
|
/**
|
|
7530
7421
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
7532
7423
|
*/
|
|
7533
7424
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
7534
7425
|
/**
|
|
7535
7426
|
* Prefer `.textContent` over `.innerText`.
|
|
7536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
7537
7428
|
*/
|
|
7538
7429
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
7539
7430
|
/**
|
|
7540
7431
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
7542
7433
|
*/
|
|
7543
7434
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
7544
7435
|
/**
|
|
7545
7436
|
* Prefer `export…from` when re-exporting.
|
|
7546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
7547
7438
|
*/
|
|
7548
7439
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
7549
7440
|
/**
|
|
7550
7441
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
7552
7443
|
*/
|
|
7553
7444
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
7554
7445
|
/**
|
|
7555
7446
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
7556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
7557
7448
|
*/
|
|
7558
7449
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
7559
7450
|
/**
|
|
7560
7451
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
7561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
7562
7453
|
*/
|
|
7563
7454
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
7564
7455
|
/**
|
|
7565
7456
|
* Prefer reading a JSON file as a buffer.
|
|
7566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
7567
7458
|
*/
|
|
7568
7459
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
7569
7460
|
/**
|
|
7570
7461
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
7571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
7572
7463
|
*/
|
|
7573
7464
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
7574
7465
|
/**
|
|
7575
7466
|
* Prefer using a logical operator over a ternary.
|
|
7576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
7577
7468
|
*/
|
|
7578
7469
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
7579
7470
|
/**
|
|
7580
7471
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
7581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
7582
7473
|
*/
|
|
7583
7474
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
7584
7475
|
/**
|
|
7585
7476
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
7586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
7587
7478
|
*/
|
|
7588
7479
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
7589
7480
|
/**
|
|
7590
7481
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
7591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
7592
7483
|
*/
|
|
7593
7484
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
7594
7485
|
/**
|
|
7595
7486
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
7596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
7597
7488
|
*/
|
|
7598
7489
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
7599
7490
|
/**
|
|
7600
7491
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
7601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
7602
7493
|
*/
|
|
7603
7494
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
7604
7495
|
/**
|
|
7605
7496
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
7606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
7607
7498
|
*/
|
|
7608
7499
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
7609
7500
|
/**
|
|
7610
7501
|
* Prefer negative index over `.length - index` when possible.
|
|
7611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
7612
7503
|
*/
|
|
7613
7504
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
7614
7505
|
/**
|
|
7615
7506
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
7616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
7617
7508
|
*/
|
|
7618
7509
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
7619
7510
|
/**
|
|
7620
7511
|
* Prefer `Number` static properties over global ones.
|
|
7621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
7622
7513
|
*/
|
|
7623
7514
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
7624
7515
|
/**
|
|
7625
7516
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
7626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
7627
7518
|
*/
|
|
7628
7519
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
7629
7520
|
/**
|
|
7630
7521
|
* Prefer omitting the `catch` binding parameter.
|
|
7631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
7632
7523
|
*/
|
|
7633
7524
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
7634
7525
|
/**
|
|
7635
7526
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
7636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
7637
7528
|
*/
|
|
7638
7529
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
7639
7530
|
/**
|
|
7640
7531
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
7641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
7642
7533
|
*/
|
|
7643
7534
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
7644
7535
|
/**
|
|
7645
7536
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
7646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
7647
7538
|
*/
|
|
7648
7539
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
7649
7540
|
/**
|
|
7650
7541
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
7651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
7652
7543
|
*/
|
|
7653
7544
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
7654
7545
|
/**
|
|
7655
7546
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
7656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
7657
7548
|
*/
|
|
7658
7549
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
7659
7550
|
/**
|
|
7660
7551
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
7661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
7662
7553
|
*/
|
|
7663
7554
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
7664
7555
|
/**
|
|
7665
7556
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
7666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
7667
7558
|
*/
|
|
7668
7559
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
7560
|
+
/**
|
|
7561
|
+
* Prefer simple conditions first in logical expressions.
|
|
7562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
7563
|
+
*/
|
|
7564
|
+
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
7669
7565
|
/**
|
|
7670
7566
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
7671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
7672
7568
|
*/
|
|
7673
7569
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
7674
7570
|
/**
|
|
7675
7571
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
7676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
7677
7573
|
*/
|
|
7678
7574
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
7679
7575
|
/**
|
|
7680
7576
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
7681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
7682
7578
|
*/
|
|
7683
7579
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
7684
7580
|
/**
|
|
7685
7581
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
7686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
7687
7583
|
*/
|
|
7688
7584
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
7689
7585
|
/**
|
|
7690
7586
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
7691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
7692
7588
|
*/
|
|
7693
7589
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
7694
7590
|
/**
|
|
7695
7591
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
7696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
7697
7593
|
*/
|
|
7698
7594
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
7699
7595
|
/**
|
|
7700
7596
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
7701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
7702
7598
|
*/
|
|
7703
7599
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
7704
7600
|
/**
|
|
7705
7601
|
* Prefer using `structuredClone` to create a deep clone.
|
|
7706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
7707
7603
|
*/
|
|
7708
7604
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
7709
7605
|
/**
|
|
7710
7606
|
* Prefer `switch` over multiple `else-if`.
|
|
7711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7607
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
7712
7608
|
*/
|
|
7713
7609
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
7714
7610
|
/**
|
|
7715
7611
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
7716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7612
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
7717
7613
|
*/
|
|
7718
7614
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
7719
7615
|
/**
|
|
7720
7616
|
* Prefer top-level await over top-level promises and async function calls.
|
|
7721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7617
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
7722
7618
|
*/
|
|
7723
7619
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
7724
7620
|
/**
|
|
7725
7621
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
7726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
7727
7623
|
*/
|
|
7728
7624
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
7729
7625
|
/**
|
|
7730
7626
|
* Prevent abbreviations.
|
|
7731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7627
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
7732
7628
|
*/
|
|
7733
7629
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
7734
7630
|
/**
|
|
7735
7631
|
* Enforce consistent relative URL style.
|
|
7736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7632
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
7737
7633
|
*/
|
|
7738
7634
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
7739
7635
|
/**
|
|
7740
7636
|
* Enforce using the separator argument with `Array#join()`.
|
|
7741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
7742
7638
|
*/
|
|
7743
7639
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
7744
7640
|
/**
|
|
7745
7641
|
* Require non-empty module attributes for imports and exports
|
|
7746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7642
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
7747
7643
|
*/
|
|
7748
7644
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
7749
7645
|
/**
|
|
7750
7646
|
* Require non-empty specifier list in import and export statements.
|
|
7751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7647
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
7752
7648
|
*/
|
|
7753
7649
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
7754
7650
|
/**
|
|
7755
7651
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7652
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7757
7653
|
*/
|
|
7758
7654
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
7759
7655
|
/**
|
|
7760
7656
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
7762
7658
|
*/
|
|
7763
7659
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
7764
7660
|
/**
|
|
7765
7661
|
* Enforce better string content.
|
|
7766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
7767
7663
|
*/
|
|
7768
7664
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
7769
7665
|
/**
|
|
7770
7666
|
* Enforce consistent brace style for `case` clauses.
|
|
7771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
7772
7668
|
*/
|
|
7773
7669
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
7670
|
+
/**
|
|
7671
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
7672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
7673
|
+
*/
|
|
7674
|
+
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
7774
7675
|
/**
|
|
7775
7676
|
* Fix whitespace-insensitive template indentation.
|
|
7776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
7777
7678
|
*/
|
|
7778
7679
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
7779
7680
|
/**
|
|
7780
7681
|
* Enforce consistent case for text encoding identifiers.
|
|
7781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
7782
7683
|
*/
|
|
7783
7684
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
7784
7685
|
/**
|
|
7785
7686
|
* Require `new` when creating an error.
|
|
7786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
7787
7688
|
*/
|
|
7788
7689
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
7789
7690
|
/**
|
|
@@ -11267,13 +11168,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
11267
11168
|
}] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
|
|
11268
11169
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
11269
11170
|
required?: string[];
|
|
11270
|
-
}]; // ----- markdown/
|
|
11171
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
11172
|
+
type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
|
|
11271
11173
|
type MarkdownHeadingIncrement = [] | [{
|
|
11272
11174
|
frontmatterTitle?: string;
|
|
11273
11175
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
11274
11176
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
11275
11177
|
allowDefinitions?: string[];
|
|
11276
11178
|
allowFootnoteDefinitions?: string[];
|
|
11179
|
+
checkFootnoteDefinitions?: boolean;
|
|
11277
11180
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
11278
11181
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
11279
11182
|
checkSiblingsOnly?: boolean;
|
|
@@ -11306,6 +11209,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
11306
11209
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
11307
11210
|
allowDefinitions?: string[];
|
|
11308
11211
|
allowFootnoteDefinitions?: string[];
|
|
11212
|
+
checkFootnoteDefinitions?: boolean;
|
|
11309
11213
|
}]; // ----- markdown/table-column-count -----
|
|
11310
11214
|
type MarkdownTableColumnCount = [] | [{
|
|
11311
11215
|
checkMissingCells?: boolean;
|
|
@@ -12159,6 +12063,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12159
12063
|
pattern: string;
|
|
12160
12064
|
flags?: string;
|
|
12161
12065
|
} | string));
|
|
12066
|
+
matchesAstSelector?: string;
|
|
12162
12067
|
};
|
|
12163
12068
|
partitionByComment?: (boolean | (({
|
|
12164
12069
|
pattern: string;
|
|
@@ -12184,7 +12089,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12184
12089
|
});
|
|
12185
12090
|
partitionByNewLine?: boolean;
|
|
12186
12091
|
}[]; // ----- perfectionist/sort-classes -----
|
|
12187
|
-
type PerfectionistSortClasses =
|
|
12092
|
+
type PerfectionistSortClasses = {
|
|
12188
12093
|
fallbackSort?: {
|
|
12189
12094
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12190
12095
|
order?: ("asc" | "desc");
|
|
@@ -12301,6 +12206,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12301
12206
|
order?: ("asc" | "desc");
|
|
12302
12207
|
})[];
|
|
12303
12208
|
newlinesBetween?: ("ignore" | number);
|
|
12209
|
+
useConfigurationIf?: {
|
|
12210
|
+
allNamesMatchPattern?: (({
|
|
12211
|
+
pattern: string;
|
|
12212
|
+
flags?: string;
|
|
12213
|
+
} | string)[] | ({
|
|
12214
|
+
pattern: string;
|
|
12215
|
+
flags?: string;
|
|
12216
|
+
} | string));
|
|
12217
|
+
matchesAstSelector?: string;
|
|
12218
|
+
};
|
|
12304
12219
|
useExperimentalDependencyDetection?: boolean;
|
|
12305
12220
|
ignoreCallbackDependenciesPatterns?: (({
|
|
12306
12221
|
pattern: string;
|
|
@@ -12332,7 +12247,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12332
12247
|
} | string)));
|
|
12333
12248
|
});
|
|
12334
12249
|
partitionByNewLine?: boolean;
|
|
12335
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
12250
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
12336
12251
|
type PerfectionistSortDecorators = {
|
|
12337
12252
|
fallbackSort?: {
|
|
12338
12253
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12431,7 +12346,7 @@ type PerfectionistSortDecorators = {
|
|
|
12431
12346
|
});
|
|
12432
12347
|
partitionByNewLine?: boolean;
|
|
12433
12348
|
}[]; // ----- perfectionist/sort-enums -----
|
|
12434
|
-
type PerfectionistSortEnums =
|
|
12349
|
+
type PerfectionistSortEnums = {
|
|
12435
12350
|
fallbackSort?: {
|
|
12436
12351
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12437
12352
|
order?: ("asc" | "desc");
|
|
@@ -12521,6 +12436,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12521
12436
|
order?: ("asc" | "desc");
|
|
12522
12437
|
})[];
|
|
12523
12438
|
newlinesBetween?: ("ignore" | number);
|
|
12439
|
+
useConfigurationIf?: {
|
|
12440
|
+
allNamesMatchPattern?: (({
|
|
12441
|
+
pattern: string;
|
|
12442
|
+
flags?: string;
|
|
12443
|
+
} | string)[] | ({
|
|
12444
|
+
pattern: string;
|
|
12445
|
+
flags?: string;
|
|
12446
|
+
} | string));
|
|
12447
|
+
matchesAstSelector?: string;
|
|
12448
|
+
};
|
|
12524
12449
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
12525
12450
|
useExperimentalDependencyDetection?: boolean;
|
|
12526
12451
|
partitionByComment?: (boolean | (({
|
|
@@ -12546,7 +12471,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12546
12471
|
} | string)));
|
|
12547
12472
|
});
|
|
12548
12473
|
partitionByNewLine?: boolean;
|
|
12549
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
12474
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
12550
12475
|
type PerfectionistSortExportAttributes = {
|
|
12551
12476
|
fallbackSort?: {
|
|
12552
12477
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12616,6 +12541,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
12616
12541
|
order?: ("asc" | "desc");
|
|
12617
12542
|
})[];
|
|
12618
12543
|
newlinesBetween?: ("ignore" | number);
|
|
12544
|
+
useConfigurationIf?: {
|
|
12545
|
+
allNamesMatchPattern?: (({
|
|
12546
|
+
pattern: string;
|
|
12547
|
+
flags?: string;
|
|
12548
|
+
} | string)[] | ({
|
|
12549
|
+
pattern: string;
|
|
12550
|
+
flags?: string;
|
|
12551
|
+
} | string));
|
|
12552
|
+
matchesAstSelector?: string;
|
|
12553
|
+
};
|
|
12619
12554
|
partitionByComment?: (boolean | (({
|
|
12620
12555
|
pattern: string;
|
|
12621
12556
|
flags?: string;
|
|
@@ -12808,6 +12743,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12808
12743
|
order?: ("asc" | "desc");
|
|
12809
12744
|
})[];
|
|
12810
12745
|
newlinesBetween?: ("ignore" | number);
|
|
12746
|
+
useConfigurationIf?: {
|
|
12747
|
+
allNamesMatchPattern?: (({
|
|
12748
|
+
pattern: string;
|
|
12749
|
+
flags?: string;
|
|
12750
|
+
} | string)[] | ({
|
|
12751
|
+
pattern: string;
|
|
12752
|
+
flags?: string;
|
|
12753
|
+
} | string));
|
|
12754
|
+
matchesAstSelector?: string;
|
|
12755
|
+
};
|
|
12811
12756
|
partitionByNewLine?: boolean;
|
|
12812
12757
|
partitionByComment?: (boolean | (({
|
|
12813
12758
|
pattern: string;
|
|
@@ -12901,6 +12846,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
12901
12846
|
order?: ("asc" | "desc");
|
|
12902
12847
|
})[];
|
|
12903
12848
|
newlinesBetween?: ("ignore" | number);
|
|
12849
|
+
useConfigurationIf?: {
|
|
12850
|
+
allNamesMatchPattern?: (({
|
|
12851
|
+
pattern: string;
|
|
12852
|
+
flags?: string;
|
|
12853
|
+
} | string)[] | ({
|
|
12854
|
+
pattern: string;
|
|
12855
|
+
flags?: string;
|
|
12856
|
+
} | string));
|
|
12857
|
+
matchesAstSelector?: string;
|
|
12858
|
+
};
|
|
12904
12859
|
partitionByComment?: (boolean | (({
|
|
12905
12860
|
pattern: string;
|
|
12906
12861
|
flags?: string;
|
|
@@ -13169,6 +13124,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13169
13124
|
pattern: string;
|
|
13170
13125
|
flags?: string;
|
|
13171
13126
|
} | string));
|
|
13127
|
+
matchesAstSelector?: string;
|
|
13172
13128
|
declarationMatchesPattern?: (({
|
|
13173
13129
|
scope?: ("shallow" | "deep");
|
|
13174
13130
|
pattern: string;
|
|
@@ -13275,6 +13231,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13275
13231
|
order?: ("asc" | "desc");
|
|
13276
13232
|
})[];
|
|
13277
13233
|
newlinesBetween?: ("ignore" | number);
|
|
13234
|
+
useConfigurationIf?: {
|
|
13235
|
+
allNamesMatchPattern?: (({
|
|
13236
|
+
pattern: string;
|
|
13237
|
+
flags?: string;
|
|
13238
|
+
} | string)[] | ({
|
|
13239
|
+
pattern: string;
|
|
13240
|
+
flags?: string;
|
|
13241
|
+
} | string));
|
|
13242
|
+
matchesAstSelector?: string;
|
|
13243
|
+
};
|
|
13278
13244
|
partitionByComment?: (boolean | (({
|
|
13279
13245
|
pattern: string;
|
|
13280
13246
|
flags?: string;
|
|
@@ -13403,6 +13369,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13403
13369
|
pattern: string;
|
|
13404
13370
|
flags?: string;
|
|
13405
13371
|
} | string));
|
|
13372
|
+
matchesAstSelector?: string;
|
|
13406
13373
|
tagMatchesPattern?: (({
|
|
13407
13374
|
pattern: string;
|
|
13408
13375
|
flags?: string;
|
|
@@ -13490,6 +13457,7 @@ type PerfectionistSortMaps = {
|
|
|
13490
13457
|
pattern: string;
|
|
13491
13458
|
flags?: string;
|
|
13492
13459
|
} | string));
|
|
13460
|
+
matchesAstSelector?: string;
|
|
13493
13461
|
};
|
|
13494
13462
|
partitionByComment?: (boolean | (({
|
|
13495
13463
|
pattern: string;
|
|
@@ -13711,6 +13679,16 @@ type PerfectionistSortNamedExports = {
|
|
|
13711
13679
|
order?: ("asc" | "desc");
|
|
13712
13680
|
})[];
|
|
13713
13681
|
newlinesBetween?: ("ignore" | number);
|
|
13682
|
+
useConfigurationIf?: {
|
|
13683
|
+
allNamesMatchPattern?: (({
|
|
13684
|
+
pattern: string;
|
|
13685
|
+
flags?: string;
|
|
13686
|
+
} | string)[] | ({
|
|
13687
|
+
pattern: string;
|
|
13688
|
+
flags?: string;
|
|
13689
|
+
} | string));
|
|
13690
|
+
matchesAstSelector?: string;
|
|
13691
|
+
};
|
|
13714
13692
|
ignoreAlias?: boolean;
|
|
13715
13693
|
partitionByComment?: (boolean | (({
|
|
13716
13694
|
pattern: string;
|
|
@@ -13811,6 +13789,16 @@ type PerfectionistSortNamedImports = {
|
|
|
13811
13789
|
order?: ("asc" | "desc");
|
|
13812
13790
|
})[];
|
|
13813
13791
|
newlinesBetween?: ("ignore" | number);
|
|
13792
|
+
useConfigurationIf?: {
|
|
13793
|
+
allNamesMatchPattern?: (({
|
|
13794
|
+
pattern: string;
|
|
13795
|
+
flags?: string;
|
|
13796
|
+
} | string)[] | ({
|
|
13797
|
+
pattern: string;
|
|
13798
|
+
flags?: string;
|
|
13799
|
+
} | string));
|
|
13800
|
+
matchesAstSelector?: string;
|
|
13801
|
+
};
|
|
13814
13802
|
ignoreAlias?: boolean;
|
|
13815
13803
|
partitionByComment?: (boolean | (({
|
|
13816
13804
|
pattern: string;
|
|
@@ -13958,6 +13946,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13958
13946
|
pattern: string;
|
|
13959
13947
|
flags?: string;
|
|
13960
13948
|
} | string));
|
|
13949
|
+
matchesAstSelector?: string;
|
|
13961
13950
|
declarationMatchesPattern?: (({
|
|
13962
13951
|
scope?: ("shallow" | "deep");
|
|
13963
13952
|
pattern: string;
|
|
@@ -14124,6 +14113,7 @@ type PerfectionistSortObjects = {
|
|
|
14124
14113
|
pattern: string;
|
|
14125
14114
|
flags?: string;
|
|
14126
14115
|
} | string));
|
|
14116
|
+
matchesAstSelector?: string;
|
|
14127
14117
|
declarationMatchesPattern?: (({
|
|
14128
14118
|
scope?: ("shallow" | "deep");
|
|
14129
14119
|
pattern: string;
|
|
@@ -14134,6 +14124,7 @@ type PerfectionistSortObjects = {
|
|
|
14134
14124
|
flags?: string;
|
|
14135
14125
|
} | string));
|
|
14136
14126
|
};
|
|
14127
|
+
partitionByComputedKey?: boolean;
|
|
14137
14128
|
styledComponents?: boolean;
|
|
14138
14129
|
useExperimentalDependencyDetection?: boolean;
|
|
14139
14130
|
partitionByComment?: (boolean | (({
|
|
@@ -14240,6 +14231,7 @@ type PerfectionistSortSets = {
|
|
|
14240
14231
|
pattern: string;
|
|
14241
14232
|
flags?: string;
|
|
14242
14233
|
} | string));
|
|
14234
|
+
matchesAstSelector?: string;
|
|
14243
14235
|
};
|
|
14244
14236
|
partitionByComment?: (boolean | (({
|
|
14245
14237
|
pattern: string;
|
|
@@ -14349,6 +14341,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
14349
14341
|
order?: ("asc" | "desc");
|
|
14350
14342
|
})[];
|
|
14351
14343
|
newlinesBetween?: ("ignore" | number);
|
|
14344
|
+
useConfigurationIf?: {
|
|
14345
|
+
allNamesMatchPattern?: (({
|
|
14346
|
+
pattern: string;
|
|
14347
|
+
flags?: string;
|
|
14348
|
+
} | string)[] | ({
|
|
14349
|
+
pattern: string;
|
|
14350
|
+
flags?: string;
|
|
14351
|
+
} | string));
|
|
14352
|
+
matchesAstSelector?: string;
|
|
14353
|
+
};
|
|
14352
14354
|
partitionByComment?: (boolean | (({
|
|
14353
14355
|
pattern: string;
|
|
14354
14356
|
flags?: string;
|
|
@@ -14373,7 +14375,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
14373
14375
|
});
|
|
14374
14376
|
partitionByNewLine?: boolean;
|
|
14375
14377
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
14376
|
-
type PerfectionistSortVariableDeclarations =
|
|
14378
|
+
type PerfectionistSortVariableDeclarations = {
|
|
14377
14379
|
fallbackSort?: {
|
|
14378
14380
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14379
14381
|
order?: ("asc" | "desc");
|
|
@@ -14445,6 +14447,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14445
14447
|
order?: ("asc" | "desc");
|
|
14446
14448
|
})[];
|
|
14447
14449
|
newlinesBetween?: ("ignore" | number);
|
|
14450
|
+
useConfigurationIf?: {
|
|
14451
|
+
allNamesMatchPattern?: (({
|
|
14452
|
+
pattern: string;
|
|
14453
|
+
flags?: string;
|
|
14454
|
+
} | string)[] | ({
|
|
14455
|
+
pattern: string;
|
|
14456
|
+
flags?: string;
|
|
14457
|
+
} | string));
|
|
14458
|
+
matchesAstSelector?: string;
|
|
14459
|
+
};
|
|
14448
14460
|
useExperimentalDependencyDetection?: boolean;
|
|
14449
14461
|
partitionByComment?: (boolean | (({
|
|
14450
14462
|
pattern: string;
|
|
@@ -14469,7 +14481,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14469
14481
|
} | string)));
|
|
14470
14482
|
});
|
|
14471
14483
|
partitionByNewLine?: boolean;
|
|
14472
|
-
}]; // ----- pnpm/json-enforce-catalog -----
|
|
14484
|
+
}[]; // ----- pnpm/json-enforce-catalog -----
|
|
14473
14485
|
type PnpmJsonEnforceCatalog = [] | [{
|
|
14474
14486
|
allowedProtocols?: string[];
|
|
14475
14487
|
autofix?: boolean;
|
|
@@ -14561,139 +14573,35 @@ type Radix = [] | [("always" | "as-needed")]; // ----- react-dom/no-unknown-prop
|
|
|
14561
14573
|
type ReactDomNoUnknownProperty = [] | [{
|
|
14562
14574
|
ignore?: string[];
|
|
14563
14575
|
requireDataLowercase?: boolean;
|
|
14564
|
-
}]; // ----- react-hooks/automatic-effect-dependencies -----
|
|
14565
|
-
type ReactHooksAutomaticEffectDependencies = [] | [{
|
|
14566
|
-
[k: string]: unknown | undefined;
|
|
14567
|
-
}]; // ----- react-hooks/capitalized-calls -----
|
|
14568
|
-
type ReactHooksCapitalizedCalls = [] | [{
|
|
14569
|
-
[k: string]: unknown | undefined;
|
|
14570
|
-
}]; // ----- react-hooks/component-hook-factories -----
|
|
14571
|
-
type ReactHooksComponentHookFactories = [] | [{
|
|
14572
|
-
[k: string]: unknown | undefined;
|
|
14573
|
-
}]; // ----- react-hooks/config -----
|
|
14574
|
-
type ReactHooksConfig = [] | [{
|
|
14575
|
-
[k: string]: unknown | undefined;
|
|
14576
|
-
}]; // ----- react-hooks/error-boundaries -----
|
|
14577
|
-
type ReactHooksErrorBoundaries = [] | [{
|
|
14578
|
-
[k: string]: unknown | undefined;
|
|
14579
|
-
}]; // ----- react-hooks/exhaustive-deps -----
|
|
14580
|
-
type ReactHooksExhaustiveDeps = [] | [{
|
|
14581
|
-
additionalHooks?: string;
|
|
14582
|
-
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
14583
|
-
experimental_autoDependenciesHooks?: string[];
|
|
14584
|
-
requireExplicitEffectDeps?: boolean;
|
|
14585
|
-
}]; // ----- react-hooks/fbt -----
|
|
14586
|
-
type ReactHooksFbt = [] | [{
|
|
14587
|
-
[k: string]: unknown | undefined;
|
|
14588
|
-
}]; // ----- react-hooks/fire -----
|
|
14589
|
-
type ReactHooksFire = [] | [{
|
|
14590
|
-
[k: string]: unknown | undefined;
|
|
14591
|
-
}]; // ----- react-hooks/gating -----
|
|
14592
|
-
type ReactHooksGating = [] | [{
|
|
14593
|
-
[k: string]: unknown | undefined;
|
|
14594
|
-
}]; // ----- react-hooks/globals -----
|
|
14595
|
-
type ReactHooksGlobals = [] | [{
|
|
14596
|
-
[k: string]: unknown | undefined;
|
|
14597
|
-
}]; // ----- react-hooks/hooks -----
|
|
14598
|
-
type ReactHooksHooks = [] | [{
|
|
14599
|
-
[k: string]: unknown | undefined;
|
|
14600
|
-
}]; // ----- react-hooks/immutability -----
|
|
14601
|
-
type ReactHooksImmutability = [] | [{
|
|
14602
|
-
[k: string]: unknown | undefined;
|
|
14603
|
-
}]; // ----- react-hooks/incompatible-library -----
|
|
14604
|
-
type ReactHooksIncompatibleLibrary = [] | [{
|
|
14605
|
-
[k: string]: unknown | undefined;
|
|
14606
|
-
}]; // ----- react-hooks/invariant -----
|
|
14607
|
-
type ReactHooksInvariant = [] | [{
|
|
14608
|
-
[k: string]: unknown | undefined;
|
|
14609
|
-
}]; // ----- react-hooks/memoized-effect-dependencies -----
|
|
14610
|
-
type ReactHooksMemoizedEffectDependencies = [] | [{
|
|
14611
|
-
[k: string]: unknown | undefined;
|
|
14612
|
-
}]; // ----- react-hooks/no-deriving-state-in-effects -----
|
|
14613
|
-
type ReactHooksNoDerivingStateInEffects = [] | [{
|
|
14614
|
-
[k: string]: unknown | undefined;
|
|
14615
|
-
}]; // ----- react-hooks/preserve-manual-memoization -----
|
|
14616
|
-
type ReactHooksPreserveManualMemoization = [] | [{
|
|
14617
|
-
[k: string]: unknown | undefined;
|
|
14618
|
-
}]; // ----- react-hooks/purity -----
|
|
14619
|
-
type ReactHooksPurity = [] | [{
|
|
14620
|
-
[k: string]: unknown | undefined;
|
|
14621
|
-
}]; // ----- react-hooks/refs -----
|
|
14622
|
-
type ReactHooksRefs = [] | [{
|
|
14623
|
-
[k: string]: unknown | undefined;
|
|
14624
|
-
}]; // ----- react-hooks/rule-suppression -----
|
|
14625
|
-
type ReactHooksRuleSuppression = [] | [{
|
|
14626
|
-
[k: string]: unknown | undefined;
|
|
14627
|
-
}]; // ----- react-hooks/rules-of-hooks -----
|
|
14628
|
-
type ReactHooksRulesOfHooks = [] | [{
|
|
14629
|
-
additionalHooks?: string;
|
|
14630
|
-
}]; // ----- react-hooks/set-state-in-effect -----
|
|
14631
|
-
type ReactHooksSetStateInEffect = [] | [{
|
|
14632
|
-
[k: string]: unknown | undefined;
|
|
14633
|
-
}]; // ----- react-hooks/set-state-in-render -----
|
|
14634
|
-
type ReactHooksSetStateInRender = [] | [{
|
|
14635
|
-
[k: string]: unknown | undefined;
|
|
14636
|
-
}]; // ----- react-hooks/static-components -----
|
|
14637
|
-
type ReactHooksStaticComponents = [] | [{
|
|
14638
|
-
[k: string]: unknown | undefined;
|
|
14639
|
-
}]; // ----- react-hooks/syntax -----
|
|
14640
|
-
type ReactHooksSyntax = [] | [{
|
|
14641
|
-
[k: string]: unknown | undefined;
|
|
14642
|
-
}]; // ----- react-hooks/todo -----
|
|
14643
|
-
type ReactHooksTodo = [] | [{
|
|
14644
|
-
[k: string]: unknown | undefined;
|
|
14645
|
-
}]; // ----- react-hooks/unsupported-syntax -----
|
|
14646
|
-
type ReactHooksUnsupportedSyntax = [] | [{
|
|
14647
|
-
[k: string]: unknown | undefined;
|
|
14648
|
-
}]; // ----- react-hooks/use-memo -----
|
|
14649
|
-
type ReactHooksUseMemo = [] | [{
|
|
14650
|
-
[k: string]: unknown | undefined;
|
|
14651
|
-
}]; // ----- react-hooks/void-use-memo -----
|
|
14652
|
-
type ReactHooksVoidUseMemo = [] | [{
|
|
14653
|
-
[k: string]: unknown | undefined;
|
|
14654
|
-
}]; // ----- react-naming-convention/component-name -----
|
|
14655
|
-
type ReactNamingConventionComponentName = [] | [(("PascalCase" | "CONSTANT_CASE") | {
|
|
14656
|
-
allowAllCaps?: boolean;
|
|
14657
|
-
excepts?: string[];
|
|
14658
|
-
rule?: ("PascalCase" | "CONSTANT_CASE");
|
|
14659
|
-
})]; // ----- react-naming-convention/filename -----
|
|
14660
|
-
type ReactNamingConventionFilename = [] | [(("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
14661
|
-
excepts?: string[];
|
|
14662
|
-
extensions?: string[];
|
|
14663
|
-
rule?: ("PascalCase" | "camelCase" | "kebab-case" | "snake_case");
|
|
14664
|
-
})]; // ----- react-naming-convention/filename-extension -----
|
|
14665
|
-
type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") | {
|
|
14666
|
-
allow?: ("always" | "as-needed");
|
|
14667
|
-
extensions?: string[];
|
|
14668
|
-
ignoreFilesWithoutCode?: boolean;
|
|
14669
|
-
})]; // ----- react-naming-convention/use-state -----
|
|
14670
|
-
type ReactNamingConventionUseState = [] | [{
|
|
14671
|
-
enforceAssignment?: boolean;
|
|
14672
|
-
enforceSetterName?: boolean;
|
|
14673
14576
|
}]; // ----- react-refresh/only-export-components -----
|
|
14674
14577
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
14675
14578
|
extraHOCs?: string[];
|
|
14676
14579
|
allowExportNames?: string[];
|
|
14677
14580
|
allowConstantExport?: boolean;
|
|
14678
14581
|
checkJS?: boolean;
|
|
14582
|
+
}]; // ----- react/exhaustive-deps -----
|
|
14583
|
+
type ReactExhaustiveDeps = [] | [{
|
|
14584
|
+
additionalHooks?: string;
|
|
14585
|
+
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
14586
|
+
experimental_autoDependenciesHooks?: string[];
|
|
14587
|
+
requireExplicitEffectDeps?: boolean;
|
|
14679
14588
|
}]; // ----- react/jsx-shorthand-boolean -----
|
|
14680
14589
|
type ReactJsxShorthandBoolean = [] | [(-1 | 1)]; // ----- react/jsx-shorthand-fragment -----
|
|
14681
|
-
type ReactJsxShorthandFragment = [] | [(-1 | 1)]; // ----- react/no-
|
|
14682
|
-
type ReactNoForbiddenProps = [] | [{
|
|
14683
|
-
forbid?: (string | {
|
|
14684
|
-
excludedNodes?: string[];
|
|
14685
|
-
prop: string;
|
|
14686
|
-
} | {
|
|
14687
|
-
includedNodes?: string[];
|
|
14688
|
-
prop: string;
|
|
14689
|
-
})[];
|
|
14690
|
-
}]; // ----- react/no-unstable-default-props -----
|
|
14590
|
+
type ReactJsxShorthandFragment = [] | [(-1 | 1)]; // ----- react/no-unstable-default-props -----
|
|
14691
14591
|
type ReactNoUnstableDefaultProps = [] | [{
|
|
14692
14592
|
safeDefaultProps?: string[];
|
|
14693
14593
|
}]; // ----- react/no-useless-fragment -----
|
|
14694
14594
|
type ReactNoUselessFragment = [] | [{
|
|
14695
14595
|
allowEmptyFragment?: boolean;
|
|
14696
14596
|
allowExpressions?: boolean;
|
|
14597
|
+
}]; // ----- react/rules-of-hooks -----
|
|
14598
|
+
type ReactRulesOfHooks = [] | [{
|
|
14599
|
+
additionalHooks?: string;
|
|
14600
|
+
}]; // ----- react/use-state -----
|
|
14601
|
+
type ReactUseState = [] | [{
|
|
14602
|
+
enforceAssignment?: boolean;
|
|
14603
|
+
enforceLazyInitialization?: boolean;
|
|
14604
|
+
enforceSetterName?: boolean;
|
|
14697
14605
|
}]; // ----- regexp/hexadecimal-escape -----
|
|
14698
14606
|
type RegexpHexadecimalEscape = [] | [("always" | "never")]; // ----- regexp/letter-case -----
|
|
14699
14607
|
type RegexpLetterCase = [] | [{
|
|
@@ -16131,6 +16039,13 @@ type SvelteIndent = [] | [{
|
|
|
16131
16039
|
type SvelteMaxAttributesPerLine = [] | [{
|
|
16132
16040
|
multiline?: number;
|
|
16133
16041
|
singleline?: number;
|
|
16042
|
+
}]; // ----- svelte/max-lines-per-block -----
|
|
16043
|
+
type SvelteMaxLinesPerBlock = [] | [{
|
|
16044
|
+
script?: number;
|
|
16045
|
+
template?: number;
|
|
16046
|
+
style?: number;
|
|
16047
|
+
skipBlankLines?: boolean;
|
|
16048
|
+
skipComments?: boolean;
|
|
16134
16049
|
}]; // ----- svelte/mustache-spacing -----
|
|
16135
16050
|
type SvelteMustacheSpacing = [] | [{
|
|
16136
16051
|
textExpressions?: ("never" | "always");
|
|
@@ -16314,6 +16229,9 @@ type TestRequireMockTypeParameters = [] | [{
|
|
|
16314
16229
|
}]; // ----- test/require-top-level-describe -----
|
|
16315
16230
|
type TestRequireTopLevelDescribe = [] | [{
|
|
16316
16231
|
maxNumberOfTopLevelDescribes?: number;
|
|
16232
|
+
}]; // ----- test/unbound-method -----
|
|
16233
|
+
type TestUnboundMethod = [] | [{
|
|
16234
|
+
ignoreStatic?: boolean;
|
|
16317
16235
|
}]; // ----- test/valid-expect -----
|
|
16318
16236
|
type TestValidExpect = [] | [{
|
|
16319
16237
|
alwaysAwait?: boolean;
|
|
@@ -17358,6 +17276,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
|
|
|
17358
17276
|
type UnicornExpiringTodoComments = [] | [{
|
|
17359
17277
|
terms?: string[];
|
|
17360
17278
|
ignore?: unknown[];
|
|
17279
|
+
ignoreDates?: boolean;
|
|
17361
17280
|
ignoreDatesOnPullRequests?: boolean;
|
|
17362
17281
|
allowWarningComments?: boolean;
|
|
17363
17282
|
date?: string;
|
|
@@ -17514,6 +17433,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
17514
17433
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
17515
17434
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
17516
17435
|
}
|
|
17436
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
17437
|
+
[k: string]: boolean | undefined;
|
|
17438
|
+
}
|
|
17517
17439
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
17518
17440
|
[k: string]: boolean | undefined;
|
|
17519
17441
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -19300,9 +19222,7 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
19300
19222
|
*/
|
|
19301
19223
|
strict?: boolean;
|
|
19302
19224
|
}
|
|
19303
|
-
interface OptionsReact extends OptionsOverrides {
|
|
19304
|
-
reactCompiler?: boolean;
|
|
19305
|
-
}
|
|
19225
|
+
interface OptionsReact extends OptionsOverrides {}
|
|
19306
19226
|
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
19307
19227
|
/**
|
|
19308
19228
|
* Enable gitignore support.
|
|
@@ -19462,7 +19382,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
19462
19382
|
*
|
|
19463
19383
|
* Requires installing:
|
|
19464
19384
|
* - `@eslint-react/eslint-plugin`
|
|
19465
|
-
* - `eslint-plugin-react-hooks`
|
|
19466
19385
|
* - `eslint-plugin-react-refresh`
|
|
19467
19386
|
*
|
|
19468
19387
|
* @default false
|
|
@@ -19561,8 +19480,9 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
19561
19480
|
declare const defaultPluginRenaming: {
|
|
19562
19481
|
'@eslint-react': string;
|
|
19563
19482
|
'@eslint-react/dom': string;
|
|
19564
|
-
'@eslint-react/hooks-extra': string;
|
|
19565
19483
|
'@eslint-react/naming-convention': string;
|
|
19484
|
+
'@eslint-react/rsc': string;
|
|
19485
|
+
'@eslint-react/web-api': string;
|
|
19566
19486
|
'@next/next': string;
|
|
19567
19487
|
'@stylistic': string;
|
|
19568
19488
|
'@typescript-eslint': string;
|