@oliver139/eslint-config 5.2.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/cli.mjs +9 -14
- package/dist/index.d.mts +528 -490
- package/dist/index.mjs +31 -126
- package/dist/{lib-D3Kr7UIJ.mjs → lib-zvCEClb6.mjs} +2875 -2324
- package/package.json +49 -53
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<[]>;
|
|
@@ -763,6 +763,11 @@ interface RuleOptions {
|
|
|
763
763
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
|
|
764
764
|
*/
|
|
765
765
|
'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
|
|
766
|
+
/**
|
|
767
|
+
* disallow `prerender` export outside of pages/ directory
|
|
768
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
|
|
769
|
+
*/
|
|
770
|
+
'astro/no-prerender-export-outside-pages'?: Linter.RuleEntry<[]>;
|
|
766
771
|
/**
|
|
767
772
|
* disallow use of `set:html` to prevent XSS attack
|
|
768
773
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
|
|
@@ -2117,6 +2122,11 @@ interface RuleOptions {
|
|
|
2117
2122
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
2118
2123
|
*/
|
|
2119
2124
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
2125
|
+
/**
|
|
2126
|
+
* Require or disallow metadata for fenced code blocks
|
|
2127
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
2128
|
+
*/
|
|
2129
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
2120
2130
|
/**
|
|
2121
2131
|
* Enforce heading levels increment by one
|
|
2122
2132
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -3495,6 +3505,11 @@ interface RuleOptions {
|
|
|
3495
3505
|
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
3496
3506
|
*/
|
|
3497
3507
|
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
3508
|
+
/**
|
|
3509
|
+
* Enforce sorted arrays.
|
|
3510
|
+
* @see https://perfectionist.dev/rules/sort-arrays
|
|
3511
|
+
*/
|
|
3512
|
+
'perfectionist/sort-arrays'?: Linter.RuleEntry<PerfectionistSortArrays>;
|
|
3498
3513
|
/**
|
|
3499
3514
|
* Enforce sorted classes.
|
|
3500
3515
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
@@ -3818,149 +3833,11 @@ interface RuleOptions {
|
|
|
3818
3833
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
3819
3834
|
*/
|
|
3820
3835
|
'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
3836
|
/**
|
|
3950
3837
|
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
3951
3838
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3952
3839
|
*/
|
|
3953
3840
|
'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
3841
|
/**
|
|
3965
3842
|
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
3966
3843
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
@@ -3971,14 +3848,9 @@ interface RuleOptions {
|
|
|
3971
3848
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
3972
3849
|
*/
|
|
3973
3850
|
'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
3851
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
3980
3852
|
/**
|
|
3981
|
-
*
|
|
3853
|
+
* Validates and transforms React Client/Server Function definitions.
|
|
3982
3854
|
* @see https://eslint-react.xyz/docs/rules/function-definition
|
|
3983
3855
|
*/
|
|
3984
3856
|
'react-rsc/function-definition'?: Linter.RuleEntry<[]>;
|
|
@@ -4002,6 +3874,26 @@ interface RuleOptions {
|
|
|
4002
3874
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
4003
3875
|
*/
|
|
4004
3876
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3877
|
+
/**
|
|
3878
|
+
* Disallows higher order functions that define components or hooks inside them.
|
|
3879
|
+
* @see https://eslint-react.xyz/docs/rules/component-hook-factories
|
|
3880
|
+
*/
|
|
3881
|
+
'react/component-hook-factories'?: Linter.RuleEntry<[]>;
|
|
3882
|
+
/**
|
|
3883
|
+
* Validates usage of Error Boundaries instead of try/catch for errors in child components.
|
|
3884
|
+
* @see https://eslint-react.xyz/docs/rules/error-boundaries
|
|
3885
|
+
*/
|
|
3886
|
+
'react/error-boundaries'?: Linter.RuleEntry<[]>;
|
|
3887
|
+
/**
|
|
3888
|
+
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
3889
|
+
* @see https://github.com/facebook/react/issues/14920
|
|
3890
|
+
*/
|
|
3891
|
+
'react/exhaustive-deps'?: Linter.RuleEntry<ReactExhaustiveDeps>;
|
|
3892
|
+
/**
|
|
3893
|
+
* Validates against mutating props, state, and other values that are immutable.
|
|
3894
|
+
* @see https://eslint-react.xyz/docs/rules/immutability
|
|
3895
|
+
*/
|
|
3896
|
+
'react/immutability'?: Linter.RuleEntry<[]>;
|
|
4005
3897
|
/**
|
|
4006
3898
|
* Prevents unintentional '$' sign before expression.
|
|
4007
3899
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
@@ -4013,25 +3905,10 @@ interface RuleOptions {
|
|
|
4013
3905
|
*/
|
|
4014
3906
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
4015
3907
|
/**
|
|
4016
|
-
* Prevents comment strings (
|
|
3908
|
+
* Prevents comment strings (ex: beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
4017
3909
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
4018
3910
|
*/
|
|
4019
3911
|
'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
3912
|
/**
|
|
4036
3913
|
* Enforces shorthand syntax for boolean props.
|
|
4037
3914
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
@@ -4042,16 +3919,6 @@ interface RuleOptions {
|
|
|
4042
3919
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
4043
3920
|
*/
|
|
4044
3921
|
'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
3922
|
/**
|
|
4056
3923
|
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
4057
3924
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
@@ -4127,11 +3994,6 @@ interface RuleOptions {
|
|
|
4127
3994
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
4128
3995
|
*/
|
|
4129
3996
|
'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
3997
|
/**
|
|
4136
3998
|
* Disallows direct mutation of 'this.state'.
|
|
4137
3999
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
@@ -4142,22 +4004,26 @@ interface RuleOptions {
|
|
|
4142
4004
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
4143
4005
|
*/
|
|
4144
4006
|
'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
4007
|
/**
|
|
4152
4008
|
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
4153
4009
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
4154
4010
|
*/
|
|
4155
4011
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
4012
|
+
/**
|
|
4013
|
+
* Prevents implicitly passing the 'children' prop to components.
|
|
4014
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-children
|
|
4015
|
+
*/
|
|
4016
|
+
'react/no-implicit-children'?: Linter.RuleEntry<[]>;
|
|
4156
4017
|
/**
|
|
4157
4018
|
* Prevents implicitly passing the 'key' prop to components.
|
|
4158
4019
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
4159
4020
|
*/
|
|
4160
4021
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
4022
|
+
/**
|
|
4023
|
+
* Prevents implicitly passing the 'ref' prop to components.
|
|
4024
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-ref
|
|
4025
|
+
*/
|
|
4026
|
+
'react/no-implicit-ref'?: Linter.RuleEntry<[]>;
|
|
4161
4027
|
/**
|
|
4162
4028
|
* Prevents problematic leaked values from being rendered.
|
|
4163
4029
|
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
@@ -4193,11 +4059,6 @@ interface RuleOptions {
|
|
|
4193
4059
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
4194
4060
|
*/
|
|
4195
4061
|
'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
4062
|
/**
|
|
4202
4063
|
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
4203
4064
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
@@ -4218,16 +4079,6 @@ interface RuleOptions {
|
|
|
4218
4079
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
4219
4080
|
*/
|
|
4220
4081
|
'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
4082
|
/**
|
|
4232
4083
|
* Disallows unnecessary usage of 'useCallback'.
|
|
4233
4084
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
@@ -4243,11 +4094,6 @@ interface RuleOptions {
|
|
|
4243
4094
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
4244
4095
|
*/
|
|
4245
4096
|
'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
4097
|
/**
|
|
4252
4098
|
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
4253
4099
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
@@ -4293,11 +4139,6 @@ interface RuleOptions {
|
|
|
4293
4139
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
4294
4140
|
*/
|
|
4295
4141
|
'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
4142
|
/**
|
|
4302
4143
|
* Disallows useless fragment elements.
|
|
4303
4144
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
@@ -4314,15 +4155,55 @@ interface RuleOptions {
|
|
|
4314
4155
|
*/
|
|
4315
4156
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
4316
4157
|
/**
|
|
4317
|
-
*
|
|
4318
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
4158
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
4159
|
+
* @see https://eslint-react.xyz/docs/rules/purity
|
|
4160
|
+
*/
|
|
4161
|
+
'react/purity'?: Linter.RuleEntry<[]>;
|
|
4162
|
+
/**
|
|
4163
|
+
* Validates correct usage of refs by checking that 'ref.current' is not read or written during render.
|
|
4164
|
+
* @see https://eslint-react.xyz/docs/rules/refs
|
|
4165
|
+
*/
|
|
4166
|
+
'react/refs'?: Linter.RuleEntry<[]>;
|
|
4167
|
+
/**
|
|
4168
|
+
* Enforces the Rules of Hooks.
|
|
4169
|
+
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
4170
|
+
*/
|
|
4171
|
+
'react/rules-of-hooks'?: Linter.RuleEntry<ReactRulesOfHooks>;
|
|
4172
|
+
/**
|
|
4173
|
+
* Validates against setting state synchronously in an effect, which can lead to re-renders that degrade performance.
|
|
4174
|
+
* @see https://eslint-react.xyz/docs/rules/set-state-in-effect
|
|
4319
4175
|
*/
|
|
4320
|
-
'react/
|
|
4176
|
+
'react/set-state-in-effect'?: Linter.RuleEntry<[]>;
|
|
4321
4177
|
/**
|
|
4322
|
-
*
|
|
4323
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
4178
|
+
* Validates against unconditionally setting state during render, which can trigger additional renders and potential infinite render loops.
|
|
4179
|
+
* @see https://eslint-react.xyz/docs/rules/set-state-in-render
|
|
4324
4180
|
*/
|
|
4325
|
-
'react/
|
|
4181
|
+
'react/set-state-in-render'?: Linter.RuleEntry<[]>;
|
|
4182
|
+
/**
|
|
4183
|
+
* Enforces the Rules of Props.
|
|
4184
|
+
* @see https://eslint-react.xyz/docs/rules/unstable-rules-of-props
|
|
4185
|
+
*/
|
|
4186
|
+
'react/unstable-rules-of-props'?: Linter.RuleEntry<[]>;
|
|
4187
|
+
/**
|
|
4188
|
+
* Enforces the Rules of State.
|
|
4189
|
+
* @see https://eslint-react.xyz/docs/rules/unstable-rules-of-state
|
|
4190
|
+
*/
|
|
4191
|
+
'react/unstable-rules-of-state'?: Linter.RuleEntry<[]>;
|
|
4192
|
+
/**
|
|
4193
|
+
* Validates against syntax that React Compiler does not support.
|
|
4194
|
+
* @see https://eslint-react.xyz/docs/rules/unsupported-syntax
|
|
4195
|
+
*/
|
|
4196
|
+
'react/unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
4197
|
+
/**
|
|
4198
|
+
* Validates that 'useMemo' is called with a callback that returns a value.
|
|
4199
|
+
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
4200
|
+
*/
|
|
4201
|
+
'react/use-memo'?: Linter.RuleEntry<[]>;
|
|
4202
|
+
/**
|
|
4203
|
+
* Enforces correct usage of 'useState', including destructuring, symmetric naming of the value and setter, and wrapping expensive initializers in a lazy initializer function.
|
|
4204
|
+
* @see https://eslint-react.xyz/docs/rules/use-state
|
|
4205
|
+
*/
|
|
4206
|
+
'react/use-state'?: Linter.RuleEntry<ReactUseState>;
|
|
4326
4207
|
/**
|
|
4327
4208
|
* disallow confusing quantifiers
|
|
4328
4209
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
@@ -5503,6 +5384,11 @@ interface RuleOptions {
|
|
|
5503
5384
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-attributes-per-line/
|
|
5504
5385
|
*/
|
|
5505
5386
|
'svelte/max-attributes-per-line'?: Linter.RuleEntry<SvelteMaxAttributesPerLine>;
|
|
5387
|
+
/**
|
|
5388
|
+
* enforce maximum number of lines in svelte component blocks
|
|
5389
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-lines-per-block/
|
|
5390
|
+
*/
|
|
5391
|
+
'svelte/max-lines-per-block'?: Linter.RuleEntry<SvelteMaxLinesPerBlock>;
|
|
5506
5392
|
/**
|
|
5507
5393
|
* enforce unified spacing in mustache
|
|
5508
5394
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/mustache-spacing/
|
|
@@ -5602,7 +5488,7 @@ interface RuleOptions {
|
|
|
5602
5488
|
*/
|
|
5603
5489
|
'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>;
|
|
5604
5490
|
/**
|
|
5605
|
-
* disallow
|
|
5491
|
+
* disallow internal navigation (links, `goto()`, `pushState()`, `replaceState()`) without a `resolve()`
|
|
5606
5492
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
|
|
5607
5493
|
*/
|
|
5608
5494
|
'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
|
|
@@ -6230,6 +6116,11 @@ interface RuleOptions {
|
|
|
6230
6116
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
6231
6117
|
*/
|
|
6232
6118
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
|
|
6119
|
+
/**
|
|
6120
|
+
* enforce unbound methods are called with their expected scope
|
|
6121
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
6122
|
+
*/
|
|
6123
|
+
'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
|
|
6233
6124
|
/**
|
|
6234
6125
|
* enforce valid describe callback
|
|
6235
6126
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -7060,730 +6951,750 @@ interface RuleOptions {
|
|
|
7060
6951
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7061
6952
|
/**
|
|
7062
6953
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
7063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
7064
6955
|
*/
|
|
7065
6956
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
7066
6957
|
/**
|
|
7067
6958
|
* Enforce a specific parameter name in catch clauses.
|
|
7068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
7069
6960
|
*/
|
|
7070
6961
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
7071
6962
|
/**
|
|
7072
6963
|
* Enforce consistent assertion style with `node:assert`.
|
|
7073
|
-
* @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-assert.md
|
|
7074
6965
|
*/
|
|
7075
6966
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
7076
6967
|
/**
|
|
7077
6968
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7078
|
-
* @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-date-clone.md
|
|
7079
6970
|
*/
|
|
7080
6971
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
7081
6972
|
/**
|
|
7082
6973
|
* Use destructured variables over properties.
|
|
7083
|
-
* @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-destructuring.md
|
|
7084
6975
|
*/
|
|
7085
6976
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
7086
6977
|
/**
|
|
7087
6978
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7088
|
-
* @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-empty-array-spread.md
|
|
7089
6980
|
*/
|
|
7090
6981
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
7091
6982
|
/**
|
|
7092
6983
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
7094
6985
|
*/
|
|
7095
6986
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
7096
6987
|
/**
|
|
7097
6988
|
* Move function definitions to the highest possible scope.
|
|
7098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
7099
6990
|
*/
|
|
7100
6991
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6992
|
+
/**
|
|
6993
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
6994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
6995
|
+
*/
|
|
6996
|
+
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
7101
6997
|
/**
|
|
7102
6998
|
* Enforce correct `Error` subclassing.
|
|
7103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
7104
7000
|
*/
|
|
7105
7001
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
7106
7002
|
/**
|
|
7107
7003
|
* Enforce no spaces between braces.
|
|
7108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
7109
7005
|
*/
|
|
7110
7006
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
7111
7007
|
/**
|
|
7112
7008
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
7114
7010
|
*/
|
|
7115
7011
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
7116
7012
|
/**
|
|
7117
7013
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
7119
7015
|
*/
|
|
7120
7016
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
7121
7017
|
/**
|
|
7122
7018
|
* Add expiration conditions to TODO comments.
|
|
7123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
7124
7020
|
*/
|
|
7125
7021
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
7126
7022
|
/**
|
|
7127
7023
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
7129
7025
|
*/
|
|
7130
7026
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
7131
7027
|
/**
|
|
7132
7028
|
* Enforce a case style for filenames.
|
|
7133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7029
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
7134
7030
|
*/
|
|
7135
7031
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
7136
7032
|
/**
|
|
7137
7033
|
* Enforce specific import styles per module.
|
|
7138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
7139
7035
|
*/
|
|
7140
7036
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
7141
7037
|
/**
|
|
7142
7038
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
7143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
7144
7040
|
*/
|
|
7145
7041
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
7146
7042
|
/**
|
|
7147
7043
|
* 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/
|
|
7044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
7149
7045
|
*/
|
|
7150
7046
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
7151
7047
|
/**
|
|
7152
7048
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7153
|
-
* @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-abusive-eslint-disable.md
|
|
7154
7050
|
*/
|
|
7155
7051
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
7156
7052
|
/**
|
|
7157
7053
|
* Disallow recursive access to `this` within getters and setters.
|
|
7158
|
-
* @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-accessor-recursion.md
|
|
7159
7055
|
*/
|
|
7160
7056
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
7161
7057
|
/**
|
|
7162
7058
|
* Disallow anonymous functions and classes as the default export.
|
|
7163
|
-
* @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-anonymous-default-export.md
|
|
7164
7060
|
*/
|
|
7165
7061
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
7166
7062
|
/**
|
|
7167
7063
|
* Prevent passing a function reference directly to iterator methods.
|
|
7168
|
-
* @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-callback-reference.md
|
|
7169
7065
|
*/
|
|
7170
7066
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
7171
7067
|
/**
|
|
7172
7068
|
* Prefer `for…of` over the `forEach` method.
|
|
7173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
7174
7070
|
*/
|
|
7175
7071
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
7176
7072
|
/**
|
|
7177
7073
|
* Disallow using the `this` argument in array methods.
|
|
7178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
7179
7075
|
*/
|
|
7180
7076
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
7181
7077
|
/**
|
|
7182
7078
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
7184
7080
|
* @deprecated
|
|
7185
7081
|
*/
|
|
7186
7082
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
7187
7083
|
/**
|
|
7188
7084
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7189
|
-
* @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-reduce.md
|
|
7190
7086
|
*/
|
|
7191
7087
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
7192
7088
|
/**
|
|
7193
7089
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
7194
|
-
* @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-array-reverse.md
|
|
7195
7091
|
*/
|
|
7196
7092
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
7197
7093
|
/**
|
|
7198
7094
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
7199
|
-
* @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-array-sort.md
|
|
7200
7096
|
*/
|
|
7201
7097
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
7202
7098
|
/**
|
|
7203
7099
|
* Disallow member access from await expression.
|
|
7204
|
-
* @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-await-expression-member.md
|
|
7205
7101
|
*/
|
|
7206
7102
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
7207
7103
|
/**
|
|
7208
7104
|
* Disallow using `await` in `Promise` method parameters.
|
|
7209
|
-
* @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-await-in-promise-methods.md
|
|
7210
7106
|
*/
|
|
7211
7107
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7212
7108
|
/**
|
|
7213
7109
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7214
|
-
* @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-console-spaces.md
|
|
7215
7111
|
*/
|
|
7216
7112
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
7217
7113
|
/**
|
|
7218
7114
|
* Do not use `document.cookie` directly.
|
|
7219
|
-
* @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-document-cookie.md
|
|
7220
7116
|
*/
|
|
7221
7117
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
7222
7118
|
/**
|
|
7223
7119
|
* Disallow empty files.
|
|
7224
|
-
* @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-empty-file.md
|
|
7225
7121
|
*/
|
|
7226
7122
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
7227
7123
|
/**
|
|
7228
7124
|
* 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/
|
|
7125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
7230
7126
|
*/
|
|
7231
7127
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7232
7128
|
/**
|
|
7233
7129
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
7234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
7235
7131
|
*/
|
|
7236
7132
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7237
7133
|
/**
|
|
7238
7134
|
* Disallow immediate mutation after variable assignment.
|
|
7239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
7240
7136
|
*/
|
|
7241
7137
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
7242
7138
|
/**
|
|
7243
7139
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7245
7141
|
* @deprecated
|
|
7246
7142
|
*/
|
|
7247
7143
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7248
7144
|
/**
|
|
7249
7145
|
* Disallow `instanceof` with built-in objects
|
|
7250
|
-
* @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-instanceof-builtins.md
|
|
7251
7147
|
*/
|
|
7252
7148
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7253
7149
|
/**
|
|
7254
7150
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7255
|
-
* @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-invalid-fetch-options.md
|
|
7256
7152
|
*/
|
|
7257
7153
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7258
7154
|
/**
|
|
7259
7155
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7261
7157
|
*/
|
|
7262
7158
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7263
7159
|
/**
|
|
7264
7160
|
* Disallow identifiers starting with `new` or `class`.
|
|
7265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
7266
7162
|
*/
|
|
7267
7163
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7268
7164
|
/**
|
|
7269
7165
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7271
7167
|
* @deprecated
|
|
7272
7168
|
*/
|
|
7273
7169
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7274
7170
|
/**
|
|
7275
7171
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7276
|
-
* @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-lonely-if.md
|
|
7277
7173
|
*/
|
|
7278
7174
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7279
7175
|
/**
|
|
7280
7176
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7281
|
-
* @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-magic-array-flat-depth.md
|
|
7282
7178
|
*/
|
|
7283
7179
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7284
7180
|
/**
|
|
7285
7181
|
* Disallow named usage of default import and export.
|
|
7286
|
-
* @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-named-default.md
|
|
7287
7183
|
*/
|
|
7288
7184
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7289
7185
|
/**
|
|
7290
7186
|
* Disallow negated conditions.
|
|
7291
|
-
* @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-negated-condition.md
|
|
7292
7188
|
*/
|
|
7293
7189
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7294
7190
|
/**
|
|
7295
7191
|
* Disallow negated expression in equality check.
|
|
7296
|
-
* @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-negation-in-equality-check.md
|
|
7297
7193
|
*/
|
|
7298
7194
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7299
7195
|
/**
|
|
7300
7196
|
* Disallow nested ternary expressions.
|
|
7301
|
-
* @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-nested-ternary.md
|
|
7302
7198
|
*/
|
|
7303
7199
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7304
7200
|
/**
|
|
7305
7201
|
* Disallow `new Array()`.
|
|
7306
|
-
* @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-new-array.md
|
|
7307
7203
|
*/
|
|
7308
7204
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7309
7205
|
/**
|
|
7310
7206
|
* 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/
|
|
7207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
7312
7208
|
*/
|
|
7313
7209
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7314
7210
|
/**
|
|
7315
7211
|
* Disallow the use of the `null` literal.
|
|
7316
|
-
* @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-null.md
|
|
7317
7213
|
*/
|
|
7318
7214
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7319
7215
|
/**
|
|
7320
7216
|
* Disallow the use of objects as default parameters.
|
|
7321
|
-
* @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-object-as-default-parameter.md
|
|
7322
7218
|
*/
|
|
7323
7219
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7324
7220
|
/**
|
|
7325
7221
|
* Disallow `process.exit()`.
|
|
7326
|
-
* @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-process-exit.md
|
|
7327
7223
|
*/
|
|
7328
7224
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7329
7225
|
/**
|
|
7330
7226
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7331
|
-
* @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-single-promise-in-promise-methods.md
|
|
7332
7228
|
*/
|
|
7333
7229
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7334
7230
|
/**
|
|
7335
7231
|
* Disallow classes that only have static members.
|
|
7336
|
-
* @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-static-only-class.md
|
|
7337
7233
|
*/
|
|
7338
7234
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7339
7235
|
/**
|
|
7340
7236
|
* Disallow `then` property.
|
|
7341
|
-
* @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-thenable.md
|
|
7342
7238
|
*/
|
|
7343
7239
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7344
7240
|
/**
|
|
7345
7241
|
* Disallow assigning `this` to a variable.
|
|
7346
|
-
* @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-this-assignment.md
|
|
7347
7243
|
*/
|
|
7348
7244
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7349
7245
|
/**
|
|
7350
7246
|
* Disallow comparing `undefined` using `typeof`.
|
|
7351
|
-
* @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-typeof-undefined.md
|
|
7352
7248
|
*/
|
|
7353
7249
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7354
7250
|
/**
|
|
7355
7251
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7356
|
-
* @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-array-flat-depth.md
|
|
7357
7253
|
*/
|
|
7358
7254
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7359
7255
|
/**
|
|
7360
7256
|
* 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/
|
|
7257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7362
7258
|
*/
|
|
7363
7259
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7364
7260
|
/**
|
|
7365
7261
|
* Disallow awaiting non-promise values.
|
|
7366
|
-
* @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-await.md
|
|
7367
7263
|
*/
|
|
7368
7264
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7369
7265
|
/**
|
|
7370
7266
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7371
|
-
* @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-unnecessary-polyfills.md
|
|
7372
7268
|
*/
|
|
7373
7269
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7374
7270
|
/**
|
|
7375
7271
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7376
|
-
* @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-unnecessary-slice-end.md
|
|
7377
7273
|
*/
|
|
7378
7274
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7379
7275
|
/**
|
|
7380
7276
|
* Disallow unreadable array destructuring.
|
|
7381
|
-
* @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-unreadable-array-destructuring.md
|
|
7382
7278
|
*/
|
|
7383
7279
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
7384
7280
|
/**
|
|
7385
7281
|
* Disallow unreadable IIFEs.
|
|
7386
|
-
* @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-unreadable-iife.md
|
|
7387
7283
|
*/
|
|
7388
7284
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
7389
7285
|
/**
|
|
7390
7286
|
* Disallow unused object properties.
|
|
7391
|
-
* @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-unused-properties.md
|
|
7392
7288
|
*/
|
|
7393
7289
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
7394
7290
|
/**
|
|
7395
7291
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
7396
|
-
* @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-collection-argument.md
|
|
7397
7293
|
*/
|
|
7398
7294
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
7399
7295
|
/**
|
|
7400
7296
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
7401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
7402
7298
|
*/
|
|
7403
7299
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
7404
7300
|
/**
|
|
7405
7301
|
* Disallow useless fallback when spreading in object literals.
|
|
7406
|
-
* @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-fallback-in-spread.md
|
|
7407
7303
|
*/
|
|
7408
7304
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
7305
|
+
/**
|
|
7306
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
7307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
7308
|
+
*/
|
|
7309
|
+
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
7409
7310
|
/**
|
|
7410
7311
|
* Disallow useless array length check.
|
|
7411
|
-
* @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-length-check.md
|
|
7412
7313
|
*/
|
|
7413
7314
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
7414
7315
|
/**
|
|
7415
7316
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7416
|
-
* @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-promise-resolve-reject.md
|
|
7417
7318
|
*/
|
|
7418
7319
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
7419
7320
|
/**
|
|
7420
7321
|
* Disallow unnecessary spread.
|
|
7421
|
-
* @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-spread.md
|
|
7422
7323
|
*/
|
|
7423
7324
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
7424
7325
|
/**
|
|
7425
7326
|
* Disallow useless case in switch statements.
|
|
7426
|
-
* @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-useless-switch-case.md
|
|
7427
7328
|
*/
|
|
7428
7329
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
7429
7330
|
/**
|
|
7430
7331
|
* Disallow useless `undefined`.
|
|
7431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
7432
7333
|
*/
|
|
7433
7334
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
7434
7335
|
/**
|
|
7435
7336
|
* Disallow number literals with zero fractions or dangling dots.
|
|
7436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
7437
7338
|
*/
|
|
7438
7339
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
7439
7340
|
/**
|
|
7440
7341
|
* Enforce proper case for numeric literals.
|
|
7441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
7442
7343
|
*/
|
|
7443
7344
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
7444
7345
|
/**
|
|
7445
7346
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
7447
7348
|
*/
|
|
7448
7349
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
7449
7350
|
/**
|
|
7450
7351
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7451
|
-
* @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-add-event-listener.md
|
|
7452
7353
|
*/
|
|
7453
7354
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
7454
7355
|
/**
|
|
7455
7356
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7456
|
-
* @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-find.md
|
|
7457
7358
|
*/
|
|
7458
7359
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
7459
7360
|
/**
|
|
7460
7361
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7461
|
-
* @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-flat.md
|
|
7462
7363
|
*/
|
|
7463
7364
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
7464
7365
|
/**
|
|
7465
7366
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
7466
|
-
* @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-flat-map.md
|
|
7467
7368
|
*/
|
|
7468
7369
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7469
7370
|
/**
|
|
7470
7371
|
* 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/
|
|
7372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
7472
7373
|
*/
|
|
7473
7374
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
7474
7375
|
/**
|
|
7475
7376
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7476
|
-
* @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-array-some.md
|
|
7477
7378
|
*/
|
|
7478
7379
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
7479
7380
|
/**
|
|
7480
7381
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7481
|
-
* @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-at.md
|
|
7482
7383
|
*/
|
|
7483
7384
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
7484
7385
|
/**
|
|
7485
7386
|
* Prefer `BigInt` literals over the constructor.
|
|
7486
|
-
* @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-bigint-literals.md
|
|
7487
7388
|
*/
|
|
7488
7389
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
7489
7390
|
/**
|
|
7490
7391
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7491
|
-
* @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-blob-reading-methods.md
|
|
7492
7393
|
*/
|
|
7493
7394
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
7494
7395
|
/**
|
|
7495
7396
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
7496
|
-
* @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-class-fields.md
|
|
7497
7398
|
*/
|
|
7498
7399
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
7499
7400
|
/**
|
|
7500
7401
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
7501
|
-
* @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-classlist-toggle.md
|
|
7502
7403
|
*/
|
|
7503
7404
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
7504
7405
|
/**
|
|
7505
7406
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7506
|
-
* @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-code-point.md
|
|
7507
7408
|
*/
|
|
7508
7409
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
7509
7410
|
/**
|
|
7510
7411
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7511
|
-
* @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-date-now.md
|
|
7512
7413
|
*/
|
|
7513
7414
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
7514
7415
|
/**
|
|
7515
7416
|
* Prefer default parameters over reassignment.
|
|
7516
|
-
* @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-default-parameters.md
|
|
7517
7418
|
*/
|
|
7518
7419
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
7519
7420
|
/**
|
|
7520
7421
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
7521
|
-
* @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-append.md
|
|
7522
7423
|
*/
|
|
7523
7424
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
7524
7425
|
/**
|
|
7525
7426
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
7526
|
-
* @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-dataset.md
|
|
7527
7428
|
*/
|
|
7528
7429
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
7529
7430
|
/**
|
|
7530
7431
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7531
|
-
* @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-dom-node-remove.md
|
|
7532
7433
|
*/
|
|
7533
7434
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
7534
7435
|
/**
|
|
7535
7436
|
* Prefer `.textContent` over `.innerText`.
|
|
7536
|
-
* @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-dom-node-text-content.md
|
|
7537
7438
|
*/
|
|
7538
7439
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
7539
7440
|
/**
|
|
7540
7441
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7541
|
-
* @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-event-target.md
|
|
7542
7443
|
*/
|
|
7543
7444
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
7544
7445
|
/**
|
|
7545
7446
|
* Prefer `export…from` when re-exporting.
|
|
7546
|
-
* @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-export-from.md
|
|
7547
7448
|
*/
|
|
7548
7449
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
7549
7450
|
/**
|
|
7550
7451
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7551
|
-
* @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-global-this.md
|
|
7552
7453
|
*/
|
|
7553
7454
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
7554
7455
|
/**
|
|
7555
7456
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
7556
|
-
* @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-import-meta-properties.md
|
|
7557
7458
|
*/
|
|
7558
7459
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
7559
7460
|
/**
|
|
7560
7461
|
* 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/
|
|
7462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
7562
7463
|
*/
|
|
7563
7464
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
7564
7465
|
/**
|
|
7565
7466
|
* Prefer reading a JSON file as a buffer.
|
|
7566
|
-
* @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-json-parse-buffer.md
|
|
7567
7468
|
*/
|
|
7568
7469
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
7569
7470
|
/**
|
|
7570
7471
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
7571
|
-
* @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-keyboard-event-key.md
|
|
7572
7473
|
*/
|
|
7573
7474
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
7574
7475
|
/**
|
|
7575
7476
|
* Prefer using a logical operator over a ternary.
|
|
7576
|
-
* @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-logical-operator-over-ternary.md
|
|
7577
7478
|
*/
|
|
7578
7479
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
7579
7480
|
/**
|
|
7580
7481
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
7581
|
-
* @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-math-min-max.md
|
|
7582
7483
|
*/
|
|
7583
7484
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
7584
7485
|
/**
|
|
7585
7486
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
7586
|
-
* @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-math-trunc.md
|
|
7587
7488
|
*/
|
|
7588
7489
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
7589
7490
|
/**
|
|
7590
7491
|
* 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/
|
|
7492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
7592
7493
|
*/
|
|
7593
7494
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
7594
7495
|
/**
|
|
7595
7496
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
7596
|
-
* @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-modern-math-apis.md
|
|
7597
7498
|
*/
|
|
7598
7499
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
7599
7500
|
/**
|
|
7600
7501
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
7601
|
-
* @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-module.md
|
|
7602
7503
|
*/
|
|
7603
7504
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
7604
7505
|
/**
|
|
7605
7506
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
7606
|
-
* @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-native-coercion-functions.md
|
|
7607
7508
|
*/
|
|
7608
7509
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
7609
7510
|
/**
|
|
7610
7511
|
* Prefer negative index over `.length - index` when possible.
|
|
7611
|
-
* @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-negative-index.md
|
|
7612
7513
|
*/
|
|
7613
7514
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
7614
7515
|
/**
|
|
7615
7516
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
7616
|
-
* @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-node-protocol.md
|
|
7617
7518
|
*/
|
|
7618
7519
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
7619
7520
|
/**
|
|
7620
7521
|
* Prefer `Number` static properties over global ones.
|
|
7621
|
-
* @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-number-properties.md
|
|
7622
7523
|
*/
|
|
7623
7524
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
7624
7525
|
/**
|
|
7625
7526
|
* 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/
|
|
7527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
7627
7528
|
*/
|
|
7628
7529
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
7629
7530
|
/**
|
|
7630
7531
|
* Prefer omitting the `catch` binding parameter.
|
|
7631
|
-
* @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-optional-catch-binding.md
|
|
7632
7533
|
*/
|
|
7633
7534
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
7634
7535
|
/**
|
|
7635
7536
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
7636
|
-
* @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-prototype-methods.md
|
|
7637
7538
|
*/
|
|
7638
7539
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
7639
7540
|
/**
|
|
7640
7541
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
7641
|
-
* @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-query-selector.md
|
|
7642
7543
|
*/
|
|
7643
7544
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
7644
7545
|
/**
|
|
7645
7546
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
7646
|
-
* @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-reflect-apply.md
|
|
7647
7548
|
*/
|
|
7648
7549
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
7649
7550
|
/**
|
|
7650
7551
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
7651
|
-
* @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-regexp-test.md
|
|
7652
7553
|
*/
|
|
7653
7554
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
7654
7555
|
/**
|
|
7655
7556
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
7656
|
-
* @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-response-static-json.md
|
|
7657
7558
|
*/
|
|
7658
7559
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
7659
7560
|
/**
|
|
7660
7561
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
7661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
7662
7563
|
*/
|
|
7663
7564
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
7664
7565
|
/**
|
|
7665
7566
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
7666
|
-
* @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-set-size.md
|
|
7667
7568
|
*/
|
|
7668
7569
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
7570
|
+
/**
|
|
7571
|
+
* Prefer simple conditions first in logical expressions.
|
|
7572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
7573
|
+
*/
|
|
7574
|
+
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
7669
7575
|
/**
|
|
7670
7576
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
7671
|
-
* @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-single-call.md
|
|
7672
7578
|
*/
|
|
7673
7579
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
7674
7580
|
/**
|
|
7675
7581
|
* 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/
|
|
7582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
7677
7583
|
*/
|
|
7678
7584
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
7679
7585
|
/**
|
|
7680
7586
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
7681
|
-
* @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-raw.md
|
|
7682
7588
|
*/
|
|
7683
7589
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
7684
7590
|
/**
|
|
7685
7591
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
7686
|
-
* @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-replace-all.md
|
|
7687
7593
|
*/
|
|
7688
7594
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
7689
7595
|
/**
|
|
7690
7596
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
7691
|
-
* @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-slice.md
|
|
7692
7598
|
*/
|
|
7693
7599
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
7694
7600
|
/**
|
|
7695
7601
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
7696
|
-
* @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-string-starts-ends-with.md
|
|
7697
7603
|
*/
|
|
7698
7604
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
7699
7605
|
/**
|
|
7700
7606
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
7701
|
-
* @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-string-trim-start-end.md
|
|
7702
7608
|
*/
|
|
7703
7609
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
7704
7610
|
/**
|
|
7705
7611
|
* Prefer using `structuredClone` to create a deep clone.
|
|
7706
|
-
* @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-structured-clone.md
|
|
7707
7613
|
*/
|
|
7708
7614
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
7709
7615
|
/**
|
|
7710
7616
|
* Prefer `switch` over multiple `else-if`.
|
|
7711
|
-
* @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-switch.md
|
|
7712
7618
|
*/
|
|
7713
7619
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
7714
7620
|
/**
|
|
7715
7621
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
7716
|
-
* @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-ternary.md
|
|
7717
7623
|
*/
|
|
7718
7624
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
7719
7625
|
/**
|
|
7720
7626
|
* Prefer top-level await over top-level promises and async function calls.
|
|
7721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7627
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
7722
7628
|
*/
|
|
7723
7629
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
7724
7630
|
/**
|
|
7725
7631
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
7726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7632
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
7727
7633
|
*/
|
|
7728
7634
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
7729
7635
|
/**
|
|
7730
7636
|
* Prevent abbreviations.
|
|
7731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
7732
7638
|
*/
|
|
7733
7639
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
7734
7640
|
/**
|
|
7735
7641
|
* Enforce consistent relative URL style.
|
|
7736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7642
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
7737
7643
|
*/
|
|
7738
7644
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
7739
7645
|
/**
|
|
7740
7646
|
* Enforce using the separator argument with `Array#join()`.
|
|
7741
|
-
* @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-array-join-separator.md
|
|
7742
7648
|
*/
|
|
7743
7649
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
7744
7650
|
/**
|
|
7745
7651
|
* Require non-empty module attributes for imports and exports
|
|
7746
|
-
* @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-module-attributes.md
|
|
7747
7653
|
*/
|
|
7748
7654
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
7749
7655
|
/**
|
|
7750
7656
|
* Require non-empty specifier list in import and export statements.
|
|
7751
|
-
* @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-module-specifiers.md
|
|
7752
7658
|
*/
|
|
7753
7659
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
7754
7660
|
/**
|
|
7755
7661
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7757
7663
|
*/
|
|
7758
7664
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
7759
7665
|
/**
|
|
7760
7666
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
7762
7668
|
*/
|
|
7763
7669
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
7764
7670
|
/**
|
|
7765
7671
|
* Enforce better string content.
|
|
7766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
7767
7673
|
*/
|
|
7768
7674
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
7769
7675
|
/**
|
|
7770
7676
|
* Enforce consistent brace style for `case` clauses.
|
|
7771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
7772
7678
|
*/
|
|
7773
7679
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
7680
|
+
/**
|
|
7681
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
7682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
7683
|
+
*/
|
|
7684
|
+
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
7774
7685
|
/**
|
|
7775
7686
|
* Fix whitespace-insensitive template indentation.
|
|
7776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
7777
7688
|
*/
|
|
7778
7689
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
7779
7690
|
/**
|
|
7780
7691
|
* Enforce consistent case for text encoding identifiers.
|
|
7781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
7782
7693
|
*/
|
|
7783
7694
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
7784
7695
|
/**
|
|
7785
7696
|
* Require `new` when creating an error.
|
|
7786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
7787
7698
|
*/
|
|
7788
7699
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
7789
7700
|
/**
|
|
@@ -11267,13 +11178,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
11267
11178
|
}] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
|
|
11268
11179
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
11269
11180
|
required?: string[];
|
|
11270
|
-
}]; // ----- markdown/
|
|
11181
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
11182
|
+
type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
|
|
11271
11183
|
type MarkdownHeadingIncrement = [] | [{
|
|
11272
11184
|
frontmatterTitle?: string;
|
|
11273
11185
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
11274
11186
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
11275
11187
|
allowDefinitions?: string[];
|
|
11276
11188
|
allowFootnoteDefinitions?: string[];
|
|
11189
|
+
checkFootnoteDefinitions?: boolean;
|
|
11277
11190
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
11278
11191
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
11279
11192
|
checkSiblingsOnly?: boolean;
|
|
@@ -11306,6 +11219,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
11306
11219
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
11307
11220
|
allowDefinitions?: string[];
|
|
11308
11221
|
allowFootnoteDefinitions?: string[];
|
|
11222
|
+
checkFootnoteDefinitions?: boolean;
|
|
11309
11223
|
}]; // ----- markdown/table-column-count -----
|
|
11310
11224
|
type MarkdownTableColumnCount = [] | [{
|
|
11311
11225
|
checkMissingCells?: boolean;
|
|
@@ -12159,6 +12073,113 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12159
12073
|
pattern: string;
|
|
12160
12074
|
flags?: string;
|
|
12161
12075
|
} | string));
|
|
12076
|
+
matchesAstSelector?: string;
|
|
12077
|
+
};
|
|
12078
|
+
partitionByComment?: (boolean | (({
|
|
12079
|
+
pattern: string;
|
|
12080
|
+
flags?: string;
|
|
12081
|
+
} | string)[] | ({
|
|
12082
|
+
pattern: string;
|
|
12083
|
+
flags?: string;
|
|
12084
|
+
} | string)) | {
|
|
12085
|
+
block?: (boolean | (({
|
|
12086
|
+
pattern: string;
|
|
12087
|
+
flags?: string;
|
|
12088
|
+
} | string)[] | ({
|
|
12089
|
+
pattern: string;
|
|
12090
|
+
flags?: string;
|
|
12091
|
+
} | string)));
|
|
12092
|
+
line?: (boolean | (({
|
|
12093
|
+
pattern: string;
|
|
12094
|
+
flags?: string;
|
|
12095
|
+
} | string)[] | ({
|
|
12096
|
+
pattern: string;
|
|
12097
|
+
flags?: string;
|
|
12098
|
+
} | string)));
|
|
12099
|
+
});
|
|
12100
|
+
partitionByNewLine?: boolean;
|
|
12101
|
+
}[]; // ----- perfectionist/sort-arrays -----
|
|
12102
|
+
type PerfectionistSortArrays = {
|
|
12103
|
+
fallbackSort?: {
|
|
12104
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12105
|
+
order?: ("asc" | "desc");
|
|
12106
|
+
};
|
|
12107
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12108
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12109
|
+
ignoreCase?: boolean;
|
|
12110
|
+
alphabet?: string;
|
|
12111
|
+
locales?: (string | string[]);
|
|
12112
|
+
order?: ("asc" | "desc");
|
|
12113
|
+
customGroups?: ({
|
|
12114
|
+
fallbackSort?: {
|
|
12115
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12116
|
+
order?: ("asc" | "desc");
|
|
12117
|
+
};
|
|
12118
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12119
|
+
groupName: string;
|
|
12120
|
+
newlinesInside?: ("ignore" | number);
|
|
12121
|
+
order?: ("asc" | "desc");
|
|
12122
|
+
anyOf: [{
|
|
12123
|
+
elementNamePattern?: (({
|
|
12124
|
+
pattern: string;
|
|
12125
|
+
flags?: string;
|
|
12126
|
+
} | string)[] | ({
|
|
12127
|
+
pattern: string;
|
|
12128
|
+
flags?: string;
|
|
12129
|
+
} | string));
|
|
12130
|
+
selector?: "literal";
|
|
12131
|
+
}, ...({
|
|
12132
|
+
elementNamePattern?: (({
|
|
12133
|
+
pattern: string;
|
|
12134
|
+
flags?: string;
|
|
12135
|
+
} | string)[] | ({
|
|
12136
|
+
pattern: string;
|
|
12137
|
+
flags?: string;
|
|
12138
|
+
} | string));
|
|
12139
|
+
selector?: "literal";
|
|
12140
|
+
})[]];
|
|
12141
|
+
} | {
|
|
12142
|
+
fallbackSort?: {
|
|
12143
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12144
|
+
order?: ("asc" | "desc");
|
|
12145
|
+
};
|
|
12146
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12147
|
+
groupName: string;
|
|
12148
|
+
newlinesInside?: ("ignore" | number);
|
|
12149
|
+
order?: ("asc" | "desc");
|
|
12150
|
+
elementNamePattern?: (({
|
|
12151
|
+
pattern: string;
|
|
12152
|
+
flags?: string;
|
|
12153
|
+
} | string)[] | ({
|
|
12154
|
+
pattern: string;
|
|
12155
|
+
flags?: string;
|
|
12156
|
+
} | string));
|
|
12157
|
+
selector?: "literal";
|
|
12158
|
+
})[];
|
|
12159
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12160
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12161
|
+
newlinesBetween: ("ignore" | number);
|
|
12162
|
+
} | {
|
|
12163
|
+
group: (string | [string, ...(string)[]]);
|
|
12164
|
+
fallbackSort?: {
|
|
12165
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12166
|
+
order?: ("asc" | "desc");
|
|
12167
|
+
};
|
|
12168
|
+
commentAbove?: string;
|
|
12169
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12170
|
+
newlinesInside?: ("ignore" | number);
|
|
12171
|
+
order?: ("asc" | "desc");
|
|
12172
|
+
})[];
|
|
12173
|
+
newlinesBetween?: ("ignore" | number);
|
|
12174
|
+
useConfigurationIf: {
|
|
12175
|
+
allNamesMatchPattern?: (({
|
|
12176
|
+
pattern: string;
|
|
12177
|
+
flags?: string;
|
|
12178
|
+
} | string)[] | ({
|
|
12179
|
+
pattern: string;
|
|
12180
|
+
flags?: string;
|
|
12181
|
+
} | string));
|
|
12182
|
+
matchesAstSelector?: string;
|
|
12162
12183
|
};
|
|
12163
12184
|
partitionByComment?: (boolean | (({
|
|
12164
12185
|
pattern: string;
|
|
@@ -12184,7 +12205,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12184
12205
|
});
|
|
12185
12206
|
partitionByNewLine?: boolean;
|
|
12186
12207
|
}[]; // ----- perfectionist/sort-classes -----
|
|
12187
|
-
type PerfectionistSortClasses =
|
|
12208
|
+
type PerfectionistSortClasses = {
|
|
12188
12209
|
fallbackSort?: {
|
|
12189
12210
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12190
12211
|
order?: ("asc" | "desc");
|
|
@@ -12301,7 +12322,18 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12301
12322
|
order?: ("asc" | "desc");
|
|
12302
12323
|
})[];
|
|
12303
12324
|
newlinesBetween?: ("ignore" | number);
|
|
12325
|
+
useConfigurationIf?: {
|
|
12326
|
+
allNamesMatchPattern?: (({
|
|
12327
|
+
pattern: string;
|
|
12328
|
+
flags?: string;
|
|
12329
|
+
} | string)[] | ({
|
|
12330
|
+
pattern: string;
|
|
12331
|
+
flags?: string;
|
|
12332
|
+
} | string));
|
|
12333
|
+
matchesAstSelector?: string;
|
|
12334
|
+
};
|
|
12304
12335
|
useExperimentalDependencyDetection?: boolean;
|
|
12336
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
12305
12337
|
ignoreCallbackDependenciesPatterns?: (({
|
|
12306
12338
|
pattern: string;
|
|
12307
12339
|
flags?: string;
|
|
@@ -12332,7 +12364,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12332
12364
|
} | string)));
|
|
12333
12365
|
});
|
|
12334
12366
|
partitionByNewLine?: boolean;
|
|
12335
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
12367
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
12336
12368
|
type PerfectionistSortDecorators = {
|
|
12337
12369
|
fallbackSort?: {
|
|
12338
12370
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12431,7 +12463,7 @@ type PerfectionistSortDecorators = {
|
|
|
12431
12463
|
});
|
|
12432
12464
|
partitionByNewLine?: boolean;
|
|
12433
12465
|
}[]; // ----- perfectionist/sort-enums -----
|
|
12434
|
-
type PerfectionistSortEnums =
|
|
12466
|
+
type PerfectionistSortEnums = {
|
|
12435
12467
|
fallbackSort?: {
|
|
12436
12468
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12437
12469
|
order?: ("asc" | "desc");
|
|
@@ -12521,6 +12553,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12521
12553
|
order?: ("asc" | "desc");
|
|
12522
12554
|
})[];
|
|
12523
12555
|
newlinesBetween?: ("ignore" | number);
|
|
12556
|
+
useConfigurationIf?: {
|
|
12557
|
+
allNamesMatchPattern?: (({
|
|
12558
|
+
pattern: string;
|
|
12559
|
+
flags?: string;
|
|
12560
|
+
} | string)[] | ({
|
|
12561
|
+
pattern: string;
|
|
12562
|
+
flags?: string;
|
|
12563
|
+
} | string));
|
|
12564
|
+
matchesAstSelector?: string;
|
|
12565
|
+
};
|
|
12524
12566
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
12525
12567
|
useExperimentalDependencyDetection?: boolean;
|
|
12526
12568
|
partitionByComment?: (boolean | (({
|
|
@@ -12546,7 +12588,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12546
12588
|
} | string)));
|
|
12547
12589
|
});
|
|
12548
12590
|
partitionByNewLine?: boolean;
|
|
12549
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
12591
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
12550
12592
|
type PerfectionistSortExportAttributes = {
|
|
12551
12593
|
fallbackSort?: {
|
|
12552
12594
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12616,6 +12658,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
12616
12658
|
order?: ("asc" | "desc");
|
|
12617
12659
|
})[];
|
|
12618
12660
|
newlinesBetween?: ("ignore" | number);
|
|
12661
|
+
useConfigurationIf?: {
|
|
12662
|
+
allNamesMatchPattern?: (({
|
|
12663
|
+
pattern: string;
|
|
12664
|
+
flags?: string;
|
|
12665
|
+
} | string)[] | ({
|
|
12666
|
+
pattern: string;
|
|
12667
|
+
flags?: string;
|
|
12668
|
+
} | string));
|
|
12669
|
+
matchesAstSelector?: string;
|
|
12670
|
+
};
|
|
12619
12671
|
partitionByComment?: (boolean | (({
|
|
12620
12672
|
pattern: string;
|
|
12621
12673
|
flags?: string;
|
|
@@ -12808,6 +12860,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12808
12860
|
order?: ("asc" | "desc");
|
|
12809
12861
|
})[];
|
|
12810
12862
|
newlinesBetween?: ("ignore" | number);
|
|
12863
|
+
useConfigurationIf?: {
|
|
12864
|
+
allNamesMatchPattern?: (({
|
|
12865
|
+
pattern: string;
|
|
12866
|
+
flags?: string;
|
|
12867
|
+
} | string)[] | ({
|
|
12868
|
+
pattern: string;
|
|
12869
|
+
flags?: string;
|
|
12870
|
+
} | string));
|
|
12871
|
+
matchesAstSelector?: string;
|
|
12872
|
+
};
|
|
12811
12873
|
partitionByNewLine?: boolean;
|
|
12812
12874
|
partitionByComment?: (boolean | (({
|
|
12813
12875
|
pattern: string;
|
|
@@ -12901,6 +12963,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
12901
12963
|
order?: ("asc" | "desc");
|
|
12902
12964
|
})[];
|
|
12903
12965
|
newlinesBetween?: ("ignore" | number);
|
|
12966
|
+
useConfigurationIf?: {
|
|
12967
|
+
allNamesMatchPattern?: (({
|
|
12968
|
+
pattern: string;
|
|
12969
|
+
flags?: string;
|
|
12970
|
+
} | string)[] | ({
|
|
12971
|
+
pattern: string;
|
|
12972
|
+
flags?: string;
|
|
12973
|
+
} | string));
|
|
12974
|
+
matchesAstSelector?: string;
|
|
12975
|
+
};
|
|
12904
12976
|
partitionByComment?: (boolean | (({
|
|
12905
12977
|
pattern: string;
|
|
12906
12978
|
flags?: string;
|
|
@@ -13169,6 +13241,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13169
13241
|
pattern: string;
|
|
13170
13242
|
flags?: string;
|
|
13171
13243
|
} | string));
|
|
13244
|
+
matchesAstSelector?: string;
|
|
13172
13245
|
declarationMatchesPattern?: (({
|
|
13173
13246
|
scope?: ("shallow" | "deep");
|
|
13174
13247
|
pattern: string;
|
|
@@ -13275,6 +13348,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13275
13348
|
order?: ("asc" | "desc");
|
|
13276
13349
|
})[];
|
|
13277
13350
|
newlinesBetween?: ("ignore" | number);
|
|
13351
|
+
useConfigurationIf?: {
|
|
13352
|
+
allNamesMatchPattern?: (({
|
|
13353
|
+
pattern: string;
|
|
13354
|
+
flags?: string;
|
|
13355
|
+
} | string)[] | ({
|
|
13356
|
+
pattern: string;
|
|
13357
|
+
flags?: string;
|
|
13358
|
+
} | string));
|
|
13359
|
+
matchesAstSelector?: string;
|
|
13360
|
+
};
|
|
13278
13361
|
partitionByComment?: (boolean | (({
|
|
13279
13362
|
pattern: string;
|
|
13280
13363
|
flags?: string;
|
|
@@ -13403,6 +13486,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13403
13486
|
pattern: string;
|
|
13404
13487
|
flags?: string;
|
|
13405
13488
|
} | string));
|
|
13489
|
+
matchesAstSelector?: string;
|
|
13406
13490
|
tagMatchesPattern?: (({
|
|
13407
13491
|
pattern: string;
|
|
13408
13492
|
flags?: string;
|
|
@@ -13490,6 +13574,7 @@ type PerfectionistSortMaps = {
|
|
|
13490
13574
|
pattern: string;
|
|
13491
13575
|
flags?: string;
|
|
13492
13576
|
} | string));
|
|
13577
|
+
matchesAstSelector?: string;
|
|
13493
13578
|
};
|
|
13494
13579
|
partitionByComment?: (boolean | (({
|
|
13495
13580
|
pattern: string;
|
|
@@ -13612,6 +13697,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13612
13697
|
})[];
|
|
13613
13698
|
newlinesBetween?: ("ignore" | number);
|
|
13614
13699
|
useExperimentalDependencyDetection?: boolean;
|
|
13700
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
13615
13701
|
partitionByComment?: (boolean | (({
|
|
13616
13702
|
pattern: string;
|
|
13617
13703
|
flags?: string;
|
|
@@ -13711,6 +13797,16 @@ type PerfectionistSortNamedExports = {
|
|
|
13711
13797
|
order?: ("asc" | "desc");
|
|
13712
13798
|
})[];
|
|
13713
13799
|
newlinesBetween?: ("ignore" | number);
|
|
13800
|
+
useConfigurationIf?: {
|
|
13801
|
+
allNamesMatchPattern?: (({
|
|
13802
|
+
pattern: string;
|
|
13803
|
+
flags?: string;
|
|
13804
|
+
} | string)[] | ({
|
|
13805
|
+
pattern: string;
|
|
13806
|
+
flags?: string;
|
|
13807
|
+
} | string));
|
|
13808
|
+
matchesAstSelector?: string;
|
|
13809
|
+
};
|
|
13714
13810
|
ignoreAlias?: boolean;
|
|
13715
13811
|
partitionByComment?: (boolean | (({
|
|
13716
13812
|
pattern: string;
|
|
@@ -13811,6 +13907,16 @@ type PerfectionistSortNamedImports = {
|
|
|
13811
13907
|
order?: ("asc" | "desc");
|
|
13812
13908
|
})[];
|
|
13813
13909
|
newlinesBetween?: ("ignore" | number);
|
|
13910
|
+
useConfigurationIf?: {
|
|
13911
|
+
allNamesMatchPattern?: (({
|
|
13912
|
+
pattern: string;
|
|
13913
|
+
flags?: string;
|
|
13914
|
+
} | string)[] | ({
|
|
13915
|
+
pattern: string;
|
|
13916
|
+
flags?: string;
|
|
13917
|
+
} | string));
|
|
13918
|
+
matchesAstSelector?: string;
|
|
13919
|
+
};
|
|
13814
13920
|
ignoreAlias?: boolean;
|
|
13815
13921
|
partitionByComment?: (boolean | (({
|
|
13816
13922
|
pattern: string;
|
|
@@ -13958,6 +14064,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13958
14064
|
pattern: string;
|
|
13959
14065
|
flags?: string;
|
|
13960
14066
|
} | string));
|
|
14067
|
+
matchesAstSelector?: string;
|
|
13961
14068
|
declarationMatchesPattern?: (({
|
|
13962
14069
|
scope?: ("shallow" | "deep");
|
|
13963
14070
|
pattern: string;
|
|
@@ -14124,6 +14231,7 @@ type PerfectionistSortObjects = {
|
|
|
14124
14231
|
pattern: string;
|
|
14125
14232
|
flags?: string;
|
|
14126
14233
|
} | string));
|
|
14234
|
+
matchesAstSelector?: string;
|
|
14127
14235
|
declarationMatchesPattern?: (({
|
|
14128
14236
|
scope?: ("shallow" | "deep");
|
|
14129
14237
|
pattern: string;
|
|
@@ -14134,6 +14242,7 @@ type PerfectionistSortObjects = {
|
|
|
14134
14242
|
flags?: string;
|
|
14135
14243
|
} | string));
|
|
14136
14244
|
};
|
|
14245
|
+
partitionByComputedKey?: boolean;
|
|
14137
14246
|
styledComponents?: boolean;
|
|
14138
14247
|
useExperimentalDependencyDetection?: boolean;
|
|
14139
14248
|
partitionByComment?: (boolean | (({
|
|
@@ -14240,6 +14349,7 @@ type PerfectionistSortSets = {
|
|
|
14240
14349
|
pattern: string;
|
|
14241
14350
|
flags?: string;
|
|
14242
14351
|
} | string));
|
|
14352
|
+
matchesAstSelector?: string;
|
|
14243
14353
|
};
|
|
14244
14354
|
partitionByComment?: (boolean | (({
|
|
14245
14355
|
pattern: string;
|
|
@@ -14349,6 +14459,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
14349
14459
|
order?: ("asc" | "desc");
|
|
14350
14460
|
})[];
|
|
14351
14461
|
newlinesBetween?: ("ignore" | number);
|
|
14462
|
+
useConfigurationIf?: {
|
|
14463
|
+
allNamesMatchPattern?: (({
|
|
14464
|
+
pattern: string;
|
|
14465
|
+
flags?: string;
|
|
14466
|
+
} | string)[] | ({
|
|
14467
|
+
pattern: string;
|
|
14468
|
+
flags?: string;
|
|
14469
|
+
} | string));
|
|
14470
|
+
matchesAstSelector?: string;
|
|
14471
|
+
};
|
|
14352
14472
|
partitionByComment?: (boolean | (({
|
|
14353
14473
|
pattern: string;
|
|
14354
14474
|
flags?: string;
|
|
@@ -14373,7 +14493,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
14373
14493
|
});
|
|
14374
14494
|
partitionByNewLine?: boolean;
|
|
14375
14495
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
14376
|
-
type PerfectionistSortVariableDeclarations =
|
|
14496
|
+
type PerfectionistSortVariableDeclarations = {
|
|
14377
14497
|
fallbackSort?: {
|
|
14378
14498
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14379
14499
|
order?: ("asc" | "desc");
|
|
@@ -14445,6 +14565,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14445
14565
|
order?: ("asc" | "desc");
|
|
14446
14566
|
})[];
|
|
14447
14567
|
newlinesBetween?: ("ignore" | number);
|
|
14568
|
+
useConfigurationIf?: {
|
|
14569
|
+
allNamesMatchPattern?: (({
|
|
14570
|
+
pattern: string;
|
|
14571
|
+
flags?: string;
|
|
14572
|
+
} | string)[] | ({
|
|
14573
|
+
pattern: string;
|
|
14574
|
+
flags?: string;
|
|
14575
|
+
} | string));
|
|
14576
|
+
matchesAstSelector?: string;
|
|
14577
|
+
};
|
|
14448
14578
|
useExperimentalDependencyDetection?: boolean;
|
|
14449
14579
|
partitionByComment?: (boolean | (({
|
|
14450
14580
|
pattern: string;
|
|
@@ -14469,7 +14599,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14469
14599
|
} | string)));
|
|
14470
14600
|
});
|
|
14471
14601
|
partitionByNewLine?: boolean;
|
|
14472
|
-
}]; // ----- pnpm/json-enforce-catalog -----
|
|
14602
|
+
}[]; // ----- pnpm/json-enforce-catalog -----
|
|
14473
14603
|
type PnpmJsonEnforceCatalog = [] | [{
|
|
14474
14604
|
allowedProtocols?: string[];
|
|
14475
14605
|
autofix?: boolean;
|
|
@@ -14561,139 +14691,35 @@ type Radix = [] | [("always" | "as-needed")]; // ----- react-dom/no-unknown-prop
|
|
|
14561
14691
|
type ReactDomNoUnknownProperty = [] | [{
|
|
14562
14692
|
ignore?: string[];
|
|
14563
14693
|
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
14694
|
}]; // ----- react-refresh/only-export-components -----
|
|
14674
14695
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
14675
14696
|
extraHOCs?: string[];
|
|
14676
14697
|
allowExportNames?: string[];
|
|
14677
14698
|
allowConstantExport?: boolean;
|
|
14678
14699
|
checkJS?: boolean;
|
|
14700
|
+
}]; // ----- react/exhaustive-deps -----
|
|
14701
|
+
type ReactExhaustiveDeps = [] | [{
|
|
14702
|
+
additionalHooks?: string;
|
|
14703
|
+
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
14704
|
+
experimental_autoDependenciesHooks?: string[];
|
|
14705
|
+
requireExplicitEffectDeps?: boolean;
|
|
14679
14706
|
}]; // ----- react/jsx-shorthand-boolean -----
|
|
14680
14707
|
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 -----
|
|
14708
|
+
type ReactJsxShorthandFragment = [] | [(-1 | 1)]; // ----- react/no-unstable-default-props -----
|
|
14691
14709
|
type ReactNoUnstableDefaultProps = [] | [{
|
|
14692
14710
|
safeDefaultProps?: string[];
|
|
14693
14711
|
}]; // ----- react/no-useless-fragment -----
|
|
14694
14712
|
type ReactNoUselessFragment = [] | [{
|
|
14695
14713
|
allowEmptyFragment?: boolean;
|
|
14696
14714
|
allowExpressions?: boolean;
|
|
14715
|
+
}]; // ----- react/rules-of-hooks -----
|
|
14716
|
+
type ReactRulesOfHooks = [] | [{
|
|
14717
|
+
additionalHooks?: string;
|
|
14718
|
+
}]; // ----- react/use-state -----
|
|
14719
|
+
type ReactUseState = [] | [{
|
|
14720
|
+
enforceAssignment?: boolean;
|
|
14721
|
+
enforceLazyInitialization?: boolean;
|
|
14722
|
+
enforceSetterName?: boolean;
|
|
14697
14723
|
}]; // ----- regexp/hexadecimal-escape -----
|
|
14698
14724
|
type RegexpHexadecimalEscape = [] | [("always" | "never")]; // ----- regexp/letter-case -----
|
|
14699
14725
|
type RegexpLetterCase = [] | [{
|
|
@@ -16131,6 +16157,13 @@ type SvelteIndent = [] | [{
|
|
|
16131
16157
|
type SvelteMaxAttributesPerLine = [] | [{
|
|
16132
16158
|
multiline?: number;
|
|
16133
16159
|
singleline?: number;
|
|
16160
|
+
}]; // ----- svelte/max-lines-per-block -----
|
|
16161
|
+
type SvelteMaxLinesPerBlock = [] | [{
|
|
16162
|
+
script?: number;
|
|
16163
|
+
template?: number;
|
|
16164
|
+
style?: number;
|
|
16165
|
+
skipBlankLines?: boolean;
|
|
16166
|
+
skipComments?: boolean;
|
|
16134
16167
|
}]; // ----- svelte/mustache-spacing -----
|
|
16135
16168
|
type SvelteMustacheSpacing = [] | [{
|
|
16136
16169
|
textExpressions?: ("never" | "always");
|
|
@@ -16314,6 +16347,9 @@ type TestRequireMockTypeParameters = [] | [{
|
|
|
16314
16347
|
}]; // ----- test/require-top-level-describe -----
|
|
16315
16348
|
type TestRequireTopLevelDescribe = [] | [{
|
|
16316
16349
|
maxNumberOfTopLevelDescribes?: number;
|
|
16350
|
+
}]; // ----- test/unbound-method -----
|
|
16351
|
+
type TestUnboundMethod = [] | [{
|
|
16352
|
+
ignoreStatic?: boolean;
|
|
16317
16353
|
}]; // ----- test/valid-expect -----
|
|
16318
16354
|
type TestValidExpect = [] | [{
|
|
16319
16355
|
alwaysAwait?: boolean;
|
|
@@ -17358,6 +17394,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
|
|
|
17358
17394
|
type UnicornExpiringTodoComments = [] | [{
|
|
17359
17395
|
terms?: string[];
|
|
17360
17396
|
ignore?: unknown[];
|
|
17397
|
+
ignoreDates?: boolean;
|
|
17361
17398
|
ignoreDatesOnPullRequests?: boolean;
|
|
17362
17399
|
allowWarningComments?: boolean;
|
|
17363
17400
|
date?: string;
|
|
@@ -17514,6 +17551,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
17514
17551
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
17515
17552
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
17516
17553
|
}
|
|
17554
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
17555
|
+
[k: string]: boolean | undefined;
|
|
17556
|
+
}
|
|
17517
17557
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
17518
17558
|
[k: string]: boolean | undefined;
|
|
17519
17559
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -19300,9 +19340,7 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
19300
19340
|
*/
|
|
19301
19341
|
strict?: boolean;
|
|
19302
19342
|
}
|
|
19303
|
-
interface OptionsReact extends OptionsOverrides {
|
|
19304
|
-
reactCompiler?: boolean;
|
|
19305
|
-
}
|
|
19343
|
+
interface OptionsReact extends OptionsOverrides {}
|
|
19306
19344
|
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
19307
19345
|
/**
|
|
19308
19346
|
* Enable gitignore support.
|
|
@@ -19462,7 +19500,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
19462
19500
|
*
|
|
19463
19501
|
* Requires installing:
|
|
19464
19502
|
* - `@eslint-react/eslint-plugin`
|
|
19465
|
-
* - `eslint-plugin-react-hooks`
|
|
19466
19503
|
* - `eslint-plugin-react-refresh`
|
|
19467
19504
|
*
|
|
19468
19505
|
* @default false
|
|
@@ -19561,8 +19598,9 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
19561
19598
|
declare const defaultPluginRenaming: {
|
|
19562
19599
|
'@eslint-react': string;
|
|
19563
19600
|
'@eslint-react/dom': string;
|
|
19564
|
-
'@eslint-react/hooks-extra': string;
|
|
19565
19601
|
'@eslint-react/naming-convention': string;
|
|
19602
|
+
'@eslint-react/rsc': string;
|
|
19603
|
+
'@eslint-react/web-api': string;
|
|
19566
19604
|
'@next/next': string;
|
|
19567
19605
|
'@stylistic': string;
|
|
19568
19606
|
'@typescript-eslint': string;
|