@vinicunca/eslint-config 4.0.8 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +118 -89
- package/dist/index.mjs +4 -4
- package/dist/{lib-pv9DSAcX.mjs → lib-DEAC6Tpv.mjs} +7 -7
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -665,6 +665,11 @@ interface RuleOptions {
|
|
|
665
665
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
666
666
|
*/
|
|
667
667
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
668
|
+
/**
|
|
669
|
+
* Ensure all exports appear after other statements.
|
|
670
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
671
|
+
*/
|
|
672
|
+
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
668
673
|
/**
|
|
669
674
|
* Ensure all imports appear before other statements.
|
|
670
675
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -2818,97 +2823,97 @@ interface RuleOptions {
|
|
|
2818
2823
|
*/
|
|
2819
2824
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
2820
2825
|
/**
|
|
2821
|
-
*
|
|
2826
|
+
* Disallows 'dangerouslySetInnerHTML'.
|
|
2822
2827
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2823
2828
|
*/
|
|
2824
2829
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
|
|
2825
2830
|
/**
|
|
2826
|
-
*
|
|
2831
|
+
* Disallows 'dangerouslySetInnerHTML' and 'children' at the same time.
|
|
2827
2832
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2828
2833
|
*/
|
|
2829
2834
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
|
|
2830
2835
|
/**
|
|
2831
|
-
*
|
|
2836
|
+
* Disallows 'findDOMNode'.
|
|
2832
2837
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2833
2838
|
*/
|
|
2834
2839
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
|
|
2835
2840
|
/**
|
|
2836
|
-
*
|
|
2841
|
+
* Disallows 'flushSync'.
|
|
2837
2842
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2838
2843
|
*/
|
|
2839
2844
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>;
|
|
2840
2845
|
/**
|
|
2841
|
-
* Replaces
|
|
2846
|
+
* Replaces usage of 'ReactDom.hydrate()' with 'hydrateRoot()'.
|
|
2842
2847
|
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2843
2848
|
*/
|
|
2844
2849
|
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>;
|
|
2845
2850
|
/**
|
|
2846
|
-
* Enforces explicit
|
|
2851
|
+
* Enforces explicit 'type' attribute for 'button' elements.
|
|
2847
2852
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2848
2853
|
*/
|
|
2849
2854
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
|
|
2850
2855
|
/**
|
|
2851
|
-
* Enforces explicit
|
|
2856
|
+
* Enforces explicit 'sandbox' attribute for 'iframe' elements.
|
|
2852
2857
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2853
2858
|
*/
|
|
2854
2859
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
2855
2860
|
/**
|
|
2856
|
-
* Enforces the absence of a
|
|
2861
|
+
* Enforces the absence of a 'namespace' in React elements.
|
|
2857
2862
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2858
2863
|
*/
|
|
2859
2864
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>;
|
|
2860
2865
|
/**
|
|
2861
|
-
* Replaces
|
|
2866
|
+
* Replaces usage of 'ReactDom.render()' with 'createRoot(node).render()'.
|
|
2862
2867
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2863
2868
|
*/
|
|
2864
2869
|
'react-dom/no-render'?: Linter.RuleEntry<[]>;
|
|
2865
2870
|
/**
|
|
2866
|
-
*
|
|
2871
|
+
* Disallows the return value of 'ReactDOM.render'.
|
|
2867
2872
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2868
2873
|
*/
|
|
2869
2874
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>;
|
|
2870
2875
|
/**
|
|
2871
|
-
*
|
|
2876
|
+
* Disallows 'javascript:' URLs as attribute values.
|
|
2872
2877
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2873
2878
|
*/
|
|
2874
2879
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>;
|
|
2875
2880
|
/**
|
|
2876
|
-
* Disallows the use of string style prop.
|
|
2881
|
+
* Disallows the use of string style prop in JSX. Use an object instead.
|
|
2877
2882
|
* @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
|
|
2878
2883
|
*/
|
|
2879
2884
|
'react-dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
|
|
2880
2885
|
/**
|
|
2881
|
-
*
|
|
2886
|
+
* Disallows unknown 'DOM' property.
|
|
2882
2887
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
2883
2888
|
*/
|
|
2884
2889
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
|
|
2885
2890
|
/**
|
|
2886
|
-
* Enforces
|
|
2891
|
+
* Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
2887
2892
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2888
2893
|
*/
|
|
2889
2894
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
2890
2895
|
/**
|
|
2891
|
-
*
|
|
2896
|
+
* Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
|
|
2892
2897
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2893
2898
|
*/
|
|
2894
2899
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
|
|
2895
2900
|
/**
|
|
2896
|
-
* Replaces
|
|
2901
|
+
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
2897
2902
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2898
2903
|
*/
|
|
2899
2904
|
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>;
|
|
2900
2905
|
/**
|
|
2901
|
-
*
|
|
2906
|
+
* Disallows 'children' in void DOM elements.
|
|
2902
2907
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
2903
2908
|
*/
|
|
2904
2909
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
|
|
2905
2910
|
/**
|
|
2906
|
-
* Enforces React
|
|
2911
|
+
* Enforces React DOM is imported via a namespace import.
|
|
2907
2912
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
2908
2913
|
*/
|
|
2909
2914
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
2910
2915
|
/**
|
|
2911
|
-
*
|
|
2916
|
+
* Disallows **direct** calls to the 'set' function of 'useState' in 'useEffect'.
|
|
2912
2917
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2913
2918
|
*/
|
|
2914
2919
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
@@ -3036,7 +3041,7 @@ interface RuleOptions {
|
|
|
3036
3041
|
*/
|
|
3037
3042
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
3038
3043
|
/**
|
|
3039
|
-
* Enforces context name to be a valid component name with the suffix
|
|
3044
|
+
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
3040
3045
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3041
3046
|
*/
|
|
3042
3047
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
@@ -3046,38 +3051,43 @@ interface RuleOptions {
|
|
|
3046
3051
|
*/
|
|
3047
3052
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
3048
3053
|
/**
|
|
3049
|
-
* Enforces consistent file
|
|
3054
|
+
* Enforces consistent use of the JSX file extension.
|
|
3050
3055
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
3051
3056
|
*/
|
|
3052
3057
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
3053
3058
|
/**
|
|
3054
|
-
* Enforces
|
|
3059
|
+
* Enforces that variables assigned from useRef calls have names ending with 'Ref'.
|
|
3060
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
3061
|
+
*/
|
|
3062
|
+
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
3063
|
+
/**
|
|
3064
|
+
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
3055
3065
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
3056
3066
|
*/
|
|
3057
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<
|
|
3067
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
3058
3068
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
3059
3069
|
/**
|
|
3060
|
-
*
|
|
3070
|
+
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
3061
3071
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
3062
3072
|
*/
|
|
3063
3073
|
'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
|
|
3064
3074
|
/**
|
|
3065
|
-
*
|
|
3075
|
+
* Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
|
|
3066
3076
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
|
|
3067
3077
|
*/
|
|
3068
3078
|
'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
|
|
3069
3079
|
/**
|
|
3070
|
-
*
|
|
3080
|
+
* Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
|
|
3071
3081
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
|
|
3072
3082
|
*/
|
|
3073
3083
|
'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
|
|
3074
3084
|
/**
|
|
3075
|
-
*
|
|
3085
|
+
* Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
|
|
3076
3086
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
3077
3087
|
*/
|
|
3078
3088
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3079
3089
|
/**
|
|
3080
|
-
* Prevents dollar signs from being inserted
|
|
3090
|
+
* Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
|
|
3081
3091
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
3082
3092
|
*/
|
|
3083
3093
|
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
@@ -3087,37 +3097,37 @@ interface RuleOptions {
|
|
|
3087
3097
|
*/
|
|
3088
3098
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
3089
3099
|
/**
|
|
3090
|
-
* Prevents
|
|
3100
|
+
* Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
3091
3101
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
3092
3102
|
*/
|
|
3093
3103
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
3094
3104
|
/**
|
|
3095
|
-
*
|
|
3105
|
+
* Disallows duplicate props in JSX elements.
|
|
3096
3106
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
3097
3107
|
*/
|
|
3098
3108
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
3099
3109
|
/**
|
|
3100
|
-
* Disallows 'IIFE' in JSX
|
|
3110
|
+
* Disallows 'IIFE' in JSX.
|
|
3101
3111
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
3102
3112
|
*/
|
|
3103
3113
|
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
3104
3114
|
/**
|
|
3105
|
-
*
|
|
3115
|
+
* Prevents using variables in JSX that are not defined in the scope.
|
|
3106
3116
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
3107
3117
|
*/
|
|
3108
3118
|
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
3109
3119
|
/**
|
|
3110
|
-
* Enforces shorthand syntax for boolean attributes.
|
|
3120
|
+
* Enforces the use of shorthand syntax for boolean attributes.
|
|
3111
3121
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
3112
3122
|
*/
|
|
3113
3123
|
'react/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactJsxShorthandBoolean>;
|
|
3114
3124
|
/**
|
|
3115
|
-
* Enforces shorthand syntax for fragments.
|
|
3125
|
+
* Enforces the use of shorthand syntax for fragments.
|
|
3116
3126
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
3117
3127
|
*/
|
|
3118
3128
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
3119
3129
|
/**
|
|
3120
|
-
* Marks React variables as used when JSX is
|
|
3130
|
+
* Marks React variables as used when JSX is present.
|
|
3121
3131
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
3122
3132
|
*/
|
|
3123
3133
|
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
@@ -3127,108 +3137,108 @@ interface RuleOptions {
|
|
|
3127
3137
|
*/
|
|
3128
3138
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
3129
3139
|
/**
|
|
3130
|
-
*
|
|
3140
|
+
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
3131
3141
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
3132
3142
|
*/
|
|
3133
3143
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
|
|
3134
3144
|
/**
|
|
3135
|
-
*
|
|
3145
|
+
* Disallows using an item's index in the array as its key.
|
|
3136
3146
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
3137
3147
|
*/
|
|
3138
3148
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>;
|
|
3139
3149
|
/**
|
|
3140
|
-
*
|
|
3150
|
+
* Disallows the use of 'Children.count' from the 'react' package.
|
|
3141
3151
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
3142
3152
|
*/
|
|
3143
3153
|
'react/no-children-count'?: Linter.RuleEntry<[]>;
|
|
3144
3154
|
/**
|
|
3145
|
-
*
|
|
3155
|
+
* Disallows the use of 'Children.forEach' from the 'react' package.
|
|
3146
3156
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
3147
3157
|
*/
|
|
3148
3158
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>;
|
|
3149
3159
|
/**
|
|
3150
|
-
*
|
|
3160
|
+
* Disallows the use of 'Children.map' from the 'react' package.
|
|
3151
3161
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
3152
3162
|
*/
|
|
3153
3163
|
'react/no-children-map'?: Linter.RuleEntry<[]>;
|
|
3154
3164
|
/**
|
|
3155
|
-
*
|
|
3165
|
+
* Disallows the use of 'Children.only' from the 'react' package.
|
|
3156
3166
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
3157
3167
|
*/
|
|
3158
3168
|
'react/no-children-only'?: Linter.RuleEntry<[]>;
|
|
3159
3169
|
/**
|
|
3160
|
-
*
|
|
3170
|
+
* Disallows passing 'children' as a prop.
|
|
3161
3171
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
3162
3172
|
*/
|
|
3163
3173
|
'react/no-children-prop'?: Linter.RuleEntry<[]>;
|
|
3164
3174
|
/**
|
|
3165
|
-
*
|
|
3175
|
+
* Disallows the use of 'Children.toArray' from the 'react' package.
|
|
3166
3176
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
3167
3177
|
*/
|
|
3168
3178
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>;
|
|
3169
3179
|
/**
|
|
3170
|
-
*
|
|
3180
|
+
* Disallows class components except for error boundaries.
|
|
3171
3181
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
3172
3182
|
*/
|
|
3173
3183
|
'react/no-class-component'?: Linter.RuleEntry<[]>;
|
|
3174
3184
|
/**
|
|
3175
|
-
*
|
|
3185
|
+
* Disallows 'cloneElement'.
|
|
3176
3186
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
3177
3187
|
*/
|
|
3178
3188
|
'react/no-clone-element'?: Linter.RuleEntry<[]>;
|
|
3179
3189
|
/**
|
|
3180
|
-
*
|
|
3190
|
+
* Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
|
|
3181
3191
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
3182
3192
|
*/
|
|
3183
3193
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
3184
3194
|
/**
|
|
3185
|
-
*
|
|
3195
|
+
* Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
|
|
3186
3196
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
3187
3197
|
*/
|
|
3188
3198
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
3189
3199
|
/**
|
|
3190
|
-
*
|
|
3200
|
+
* Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
|
|
3191
3201
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
3192
3202
|
*/
|
|
3193
3203
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>;
|
|
3194
3204
|
/**
|
|
3195
|
-
*
|
|
3205
|
+
* Replaces usage of '<Context.Provider>' with '<Context>'.
|
|
3196
3206
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
3197
3207
|
*/
|
|
3198
3208
|
'react/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
3199
3209
|
/**
|
|
3200
|
-
*
|
|
3210
|
+
* Disallows 'createRef' in function components.
|
|
3201
3211
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
3202
3212
|
*/
|
|
3203
3213
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
3204
3214
|
/**
|
|
3205
|
-
*
|
|
3215
|
+
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
3206
3216
|
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
3207
3217
|
*/
|
|
3208
3218
|
'react/no-default-props'?: Linter.RuleEntry<[]>;
|
|
3209
3219
|
/**
|
|
3210
|
-
*
|
|
3220
|
+
* Disallows direct mutation of 'this.state'.
|
|
3211
3221
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
3212
3222
|
*/
|
|
3213
3223
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
3214
3224
|
/**
|
|
3215
|
-
*
|
|
3225
|
+
* Disallows duplicate 'key' on elements in the same array or a list of 'children'.
|
|
3216
3226
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
3217
3227
|
*/
|
|
3218
3228
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
3219
3229
|
/**
|
|
3220
|
-
*
|
|
3230
|
+
* Disallows certain props on components.
|
|
3221
3231
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
3222
3232
|
* @deprecated
|
|
3223
3233
|
*/
|
|
3224
3234
|
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
3225
3235
|
/**
|
|
3226
|
-
* Replaces
|
|
3236
|
+
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
3227
3237
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
3228
3238
|
*/
|
|
3229
3239
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3230
3240
|
/**
|
|
3231
|
-
* Prevents
|
|
3241
|
+
* Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
|
|
3232
3242
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
3233
3243
|
*/
|
|
3234
3244
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
@@ -3238,57 +3248,57 @@ interface RuleOptions {
|
|
|
3238
3248
|
*/
|
|
3239
3249
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
3240
3250
|
/**
|
|
3241
|
-
* Enforces that all components have a
|
|
3251
|
+
* Enforces that all components have a 'displayName' that can be used in devtools.
|
|
3242
3252
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
3243
3253
|
*/
|
|
3244
3254
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
3245
3255
|
/**
|
|
3246
|
-
* Enforces that all contexts have a
|
|
3256
|
+
* Enforces that all contexts have a 'displayName' that can be used in devtools.
|
|
3247
3257
|
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
3248
3258
|
*/
|
|
3249
3259
|
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
|
|
3250
3260
|
/**
|
|
3251
|
-
*
|
|
3261
|
+
* Disallows missing 'key' on items in list rendering.
|
|
3252
3262
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
3253
3263
|
*/
|
|
3254
3264
|
'react/no-missing-key'?: Linter.RuleEntry<[]>;
|
|
3255
3265
|
/**
|
|
3256
|
-
* Prevents incorrect usage of
|
|
3266
|
+
* Prevents incorrect usage of 'captureOwnerStack'.
|
|
3257
3267
|
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
3258
3268
|
*/
|
|
3259
3269
|
'react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
|
|
3260
3270
|
/**
|
|
3261
|
-
*
|
|
3271
|
+
* Disallows nesting component definitions inside other components.
|
|
3262
3272
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
3263
3273
|
*/
|
|
3264
3274
|
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
3265
3275
|
/**
|
|
3266
|
-
*
|
|
3276
|
+
* Disallows nesting lazy component declarations inside other components.
|
|
3267
3277
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
3268
3278
|
*/
|
|
3269
3279
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
3270
3280
|
/**
|
|
3271
|
-
*
|
|
3281
|
+
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
3272
3282
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
3273
3283
|
*/
|
|
3274
3284
|
'react/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
3275
3285
|
/**
|
|
3276
|
-
*
|
|
3286
|
+
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
3277
3287
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
3278
3288
|
*/
|
|
3279
3289
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
|
|
3280
3290
|
/**
|
|
3281
|
-
*
|
|
3291
|
+
* Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
|
|
3282
3292
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
3283
3293
|
*/
|
|
3284
3294
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
|
|
3285
3295
|
/**
|
|
3286
|
-
*
|
|
3296
|
+
* Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
|
|
3287
3297
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
3288
3298
|
*/
|
|
3289
3299
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
|
|
3290
3300
|
/**
|
|
3291
|
-
*
|
|
3301
|
+
* Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
|
|
3292
3302
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
3293
3303
|
*/
|
|
3294
3304
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
@@ -3298,42 +3308,42 @@ interface RuleOptions {
|
|
|
3298
3308
|
*/
|
|
3299
3309
|
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
3300
3310
|
/**
|
|
3301
|
-
* Prevents
|
|
3311
|
+
* Prevents 'key' from being placed on non-top-level elements in list rendering.
|
|
3302
3312
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
3303
3313
|
*/
|
|
3304
3314
|
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
3305
3315
|
/**
|
|
3306
|
-
*
|
|
3316
|
+
* Disallows unnecessary usage of 'useCallback'.
|
|
3307
3317
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
3308
3318
|
*/
|
|
3309
3319
|
'react/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
3310
3320
|
/**
|
|
3311
|
-
*
|
|
3321
|
+
* Disallows unnecessary usage of 'useMemo'.
|
|
3312
3322
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
|
|
3313
3323
|
*/
|
|
3314
3324
|
'react/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
3315
3325
|
/**
|
|
3316
|
-
* Enforces that a function with the
|
|
3326
|
+
* Enforces that a function with the 'use' prefix uses at least one Hook inside it.
|
|
3317
3327
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
3318
3328
|
*/
|
|
3319
3329
|
'react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
3320
3330
|
/**
|
|
3321
|
-
* Warns the
|
|
3331
|
+
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
3322
3332
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
3323
3333
|
*/
|
|
3324
3334
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
3325
3335
|
/**
|
|
3326
|
-
* Warns the
|
|
3336
|
+
* Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
|
|
3327
3337
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
3328
3338
|
*/
|
|
3329
3339
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
3330
3340
|
/**
|
|
3331
|
-
* Warns the
|
|
3341
|
+
* Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
|
|
3332
3342
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
3333
3343
|
*/
|
|
3334
3344
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
3335
3345
|
/**
|
|
3336
|
-
* Prevents non-stable values (i.e
|
|
3346
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
3337
3347
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
3338
3348
|
*/
|
|
3339
3349
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -3343,32 +3353,32 @@ interface RuleOptions {
|
|
|
3343
3353
|
*/
|
|
3344
3354
|
'react/no-unstable-default-props'?: Linter.RuleEntry<ReactNoUnstableDefaultProps>;
|
|
3345
3355
|
/**
|
|
3346
|
-
* Warns unused class component methods and properties.
|
|
3356
|
+
* Warns about unused class component methods and properties.
|
|
3347
3357
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
3348
3358
|
*/
|
|
3349
3359
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
|
|
3350
3360
|
/**
|
|
3351
|
-
* Warns component props that are defined but never used.
|
|
3361
|
+
* Warns about component props that are defined but never used.
|
|
3352
3362
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
3353
3363
|
*/
|
|
3354
3364
|
'react/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
3355
3365
|
/**
|
|
3356
|
-
* Warns unused class component state.
|
|
3366
|
+
* Warns about unused class component state.
|
|
3357
3367
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
3358
3368
|
*/
|
|
3359
3369
|
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
3360
3370
|
/**
|
|
3361
|
-
* Replaces
|
|
3371
|
+
* Replaces usage of 'useContext' with 'use'.
|
|
3362
3372
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
3363
3373
|
*/
|
|
3364
3374
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
3365
3375
|
/**
|
|
3366
|
-
*
|
|
3376
|
+
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
3367
3377
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
3368
3378
|
*/
|
|
3369
3379
|
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3370
3380
|
/**
|
|
3371
|
-
*
|
|
3381
|
+
* Disallows useless fragment elements.
|
|
3372
3382
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3373
3383
|
*/
|
|
3374
3384
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>;
|
|
@@ -3378,7 +3388,7 @@ interface RuleOptions {
|
|
|
3378
3388
|
*/
|
|
3379
3389
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
3380
3390
|
/**
|
|
3381
|
-
* Enforces React
|
|
3391
|
+
* Enforces importing React via a namespace import.
|
|
3382
3392
|
* @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
|
|
3383
3393
|
*/
|
|
3384
3394
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
@@ -3388,7 +3398,7 @@ interface RuleOptions {
|
|
|
3388
3398
|
*/
|
|
3389
3399
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
3390
3400
|
/**
|
|
3391
|
-
* Enforces function calls made inside
|
|
3401
|
+
* Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
|
|
3392
3402
|
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
3393
3403
|
*/
|
|
3394
3404
|
'react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
|
|
@@ -6405,6 +6415,11 @@ interface RuleOptions {
|
|
|
6405
6415
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
6406
6416
|
*/
|
|
6407
6417
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
6418
|
+
/**
|
|
6419
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
6420
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
6421
|
+
*/
|
|
6422
|
+
'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
6408
6423
|
/**
|
|
6409
6424
|
* Enforce padding around `afterAll` blocks
|
|
6410
6425
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -6514,7 +6529,7 @@ interface RuleOptions {
|
|
|
6514
6529
|
* prefer dynamic import in mock
|
|
6515
6530
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
6516
6531
|
*/
|
|
6517
|
-
'test/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
6532
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
|
|
6518
6533
|
/**
|
|
6519
6534
|
* enforce importing Vitest globals
|
|
6520
6535
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -6530,6 +6545,11 @@ interface RuleOptions {
|
|
|
6530
6545
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
6531
6546
|
*/
|
|
6532
6547
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
6548
|
+
/**
|
|
6549
|
+
* Prefer mock return shorthands
|
|
6550
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
6551
|
+
*/
|
|
6552
|
+
'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
6533
6553
|
/**
|
|
6534
6554
|
* enforce including a hint with external snapshots
|
|
6535
6555
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -6575,6 +6595,11 @@ interface RuleOptions {
|
|
|
6575
6595
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
6576
6596
|
*/
|
|
6577
6597
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
6598
|
+
/**
|
|
6599
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
6600
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
6601
|
+
*/
|
|
6602
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
6578
6603
|
/**
|
|
6579
6604
|
* enforce using toHaveLength()
|
|
6580
6605
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -6600,11 +6625,6 @@ interface RuleOptions {
|
|
|
6600
6625
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
6601
6626
|
*/
|
|
6602
6627
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
|
|
6603
|
-
/**
|
|
6604
|
-
* require usage of import in vi.mock()
|
|
6605
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
6606
|
-
*/
|
|
6607
|
-
'test/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
6608
6628
|
/**
|
|
6609
6629
|
* require local Test Context for concurrent snapshot tests
|
|
6610
6630
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -14245,6 +14265,11 @@ type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") |
|
|
|
14245
14265
|
extensions?: string[];
|
|
14246
14266
|
ignoreFilesWithoutCode?: boolean;
|
|
14247
14267
|
})];
|
|
14268
|
+
// ----- react-naming-convention/use-state -----
|
|
14269
|
+
type ReactNamingConventionUseState = [] | [{
|
|
14270
|
+
enforceAssignment?: boolean;
|
|
14271
|
+
enforceSetterName?: boolean;
|
|
14272
|
+
}];
|
|
14248
14273
|
// ----- react-refresh/only-export-components -----
|
|
14249
14274
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
14250
14275
|
allowExportNames?: string[];
|
|
@@ -16157,6 +16182,10 @@ type TestPreferExpectAssertions = [] | [{
|
|
|
16157
16182
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
16158
16183
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
16159
16184
|
}];
|
|
16185
|
+
// ----- test/prefer-import-in-mock -----
|
|
16186
|
+
type TestPreferImportInMock = [] | [{
|
|
16187
|
+
fixable?: boolean;
|
|
16188
|
+
}];
|
|
16160
16189
|
// ----- test/prefer-lowercase-title -----
|
|
16161
16190
|
type TestPreferLowercaseTitle = [] | [{
|
|
16162
16191
|
ignore?: ("describe" | "test" | "it")[];
|
package/dist/index.mjs
CHANGED
|
@@ -15,19 +15,19 @@ import globals from "globals";
|
|
|
15
15
|
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
16
16
|
import { configs } from "eslint-plugin-regexp";
|
|
17
17
|
|
|
18
|
-
//#region node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
18
|
+
//#region node_modules/.pnpm/@vinicunca+perkakas@1.12.0/node_modules/@vinicunca/perkakas/dist/is-boolean.js
|
|
19
19
|
function e$2(e$3) {
|
|
20
20
|
return typeof e$3 == `boolean`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
24
|
+
//#region node_modules/.pnpm/@vinicunca+perkakas@1.12.0/node_modules/@vinicunca/perkakas/dist/is-function.js
|
|
25
25
|
function e$1(e$3) {
|
|
26
26
|
return typeof e$3 == `function`;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
30
|
+
//#region node_modules/.pnpm/@vinicunca+perkakas@1.12.0/node_modules/@vinicunca/perkakas/dist/is-number.js
|
|
31
31
|
function e(e$3) {
|
|
32
32
|
return typeof e$3 == `number` && !Number.isNaN(e$3);
|
|
33
33
|
}
|
|
@@ -2033,7 +2033,7 @@ async function typescript(options = {}) {
|
|
|
2033
2033
|
}] : [],
|
|
2034
2034
|
...erasableOnly ? [{
|
|
2035
2035
|
name: "antfu/typescript/erasable-syntax-only",
|
|
2036
|
-
plugins: { "erasable-syntax-only": await interopDefault(import("./lib-
|
|
2036
|
+
plugins: { "erasable-syntax-only": await interopDefault(import("./lib-DEAC6Tpv.mjs")) },
|
|
2037
2037
|
rules: {
|
|
2038
2038
|
"erasable-syntax-only/enums": "error",
|
|
2039
2039
|
"erasable-syntax-only/import-aliases": "error",
|
|
@@ -10932,12 +10932,12 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10932
10932
|
}));
|
|
10933
10933
|
|
|
10934
10934
|
//#endregion
|
|
10935
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
10935
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/utils.js
|
|
10936
10936
|
var import_dist = require_dist();
|
|
10937
10937
|
const createRule = import_dist.ESLintUtils.RuleCreator((name$1) => `https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/${name$1}.md`);
|
|
10938
10938
|
|
|
10939
10939
|
//#endregion
|
|
10940
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
10940
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/rules/enums.js
|
|
10941
10941
|
const rule$3 = createRule({
|
|
10942
10942
|
create(context) {
|
|
10943
10943
|
return { TSEnumDeclaration(node) {
|
|
@@ -10998,7 +10998,7 @@ ${isExported ? "export " : ""}type ${name$1} = typeof ${name$1}[keyof typeof ${n
|
|
|
10998
10998
|
});
|
|
10999
10999
|
|
|
11000
11000
|
//#endregion
|
|
11001
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
11001
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/rules/import-aliases.js
|
|
11002
11002
|
const rule$2 = createRule({
|
|
11003
11003
|
create(context) {
|
|
11004
11004
|
return { TSImportEqualsDeclaration(node) {
|
|
@@ -11062,7 +11062,7 @@ var CachedFactory = class {
|
|
|
11062
11062
|
};
|
|
11063
11063
|
|
|
11064
11064
|
//#endregion
|
|
11065
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
11065
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/rules/namespaces.js
|
|
11066
11066
|
function skipExportParent(node) {
|
|
11067
11067
|
return node.parent.type == import_dist.AST_NODE_TYPES.ExportNamedDeclaration ? node.parent : node;
|
|
11068
11068
|
}
|
|
@@ -11099,7 +11099,7 @@ const rule$1 = createRule({
|
|
|
11099
11099
|
});
|
|
11100
11100
|
|
|
11101
11101
|
//#endregion
|
|
11102
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
11102
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/rules/parameter-properties.js
|
|
11103
11103
|
const rule = createRule({
|
|
11104
11104
|
create(context) {
|
|
11105
11105
|
return { TSParameterProperty(node) {
|
|
@@ -11120,7 +11120,7 @@ const rule = createRule({
|
|
|
11120
11120
|
});
|
|
11121
11121
|
|
|
11122
11122
|
//#endregion
|
|
11123
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
11123
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/rules/index.js
|
|
11124
11124
|
const rules = {
|
|
11125
11125
|
enums: rule$3,
|
|
11126
11126
|
"import-aliases": rule$2,
|
|
@@ -11129,7 +11129,7 @@ const rules = {
|
|
|
11129
11129
|
};
|
|
11130
11130
|
|
|
11131
11131
|
//#endregion
|
|
11132
|
-
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.
|
|
11132
|
+
//#region node_modules/.pnpm/eslint-plugin-erasable-syntax-only@0.4.0_@typescript-eslint+parser@8.51.0_eslint@9.39.2_cf29194064209686a107fd196092e0a1/node_modules/eslint-plugin-erasable-syntax-only/lib/index.js
|
|
11133
11133
|
const { name, version } = Module.createRequire(import.meta.url)("../package.json");
|
|
11134
11134
|
const plugin = {
|
|
11135
11135
|
configs: { get recommended() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -125,30 +125,30 @@
|
|
|
125
125
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
126
126
|
"@eslint/markdown": "^7.5.1",
|
|
127
127
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
128
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
129
|
-
"@typescript-eslint/parser": "^8.
|
|
130
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
131
|
-
"@vitest/eslint-plugin": "^1.
|
|
128
|
+
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
129
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
130
|
+
"@unocss/eslint-plugin": "^66.5.12",
|
|
131
|
+
"@vitest/eslint-plugin": "^1.6.4",
|
|
132
132
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
133
133
|
"eslint-flat-config-utils": "^2.1.4",
|
|
134
134
|
"eslint-merge-processors": "^2.0.0",
|
|
135
135
|
"eslint-plugin-antfu": "^3.1.1",
|
|
136
|
-
"eslint-plugin-command": "^3.
|
|
136
|
+
"eslint-plugin-command": "^3.4.0",
|
|
137
137
|
"eslint-plugin-format": "^1.1.0",
|
|
138
|
-
"eslint-plugin-import-lite": "^0.
|
|
138
|
+
"eslint-plugin-import-lite": "^0.4.0",
|
|
139
139
|
"eslint-plugin-jsdoc": "^61.5.0",
|
|
140
140
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
141
141
|
"eslint-plugin-n": "^17.23.1",
|
|
142
142
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
143
143
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
144
|
-
"eslint-plugin-pnpm": "^1.4.
|
|
144
|
+
"eslint-plugin-pnpm": "^1.4.3",
|
|
145
145
|
"eslint-plugin-regexp": "^2.10.0",
|
|
146
146
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
147
147
|
"eslint-plugin-toml": "^0.12.0",
|
|
148
148
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
149
149
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
150
150
|
"eslint-plugin-vue": "^10.6.2",
|
|
151
|
-
"eslint-plugin-yml": "^1.19.
|
|
151
|
+
"eslint-plugin-yml": "^1.19.1",
|
|
152
152
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
153
153
|
"globals": "^16.5.0",
|
|
154
154
|
"jsonc-eslint-parser": "^2.4.2",
|
|
@@ -159,14 +159,14 @@
|
|
|
159
159
|
},
|
|
160
160
|
"devDependencies": {
|
|
161
161
|
"@antfu/ni": "^28.0.0",
|
|
162
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
162
|
+
"@eslint-react/eslint-plugin": "^2.5.0",
|
|
163
163
|
"@eslint/config-inspector": "^1.4.2",
|
|
164
164
|
"@next/eslint-plugin-next": "^16.1.1",
|
|
165
165
|
"@prettier/plugin-xml": "^3.4.2",
|
|
166
166
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
167
|
-
"@types/node": "^
|
|
167
|
+
"@types/node": "^25.0.3",
|
|
168
168
|
"@types/yargs": "^17.0.35",
|
|
169
|
-
"@vinicunca/perkakas": "^1.
|
|
169
|
+
"@vinicunca/perkakas": "^1.12.0",
|
|
170
170
|
"astro-eslint-parser": "^1.2.2",
|
|
171
171
|
"bumpp": "^10.3.2",
|
|
172
172
|
"bundle-require": "^5.1.0",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
176
176
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
177
177
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
178
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
178
|
+
"eslint-plugin-react-refresh": "^0.4.26",
|
|
179
179
|
"eslint-plugin-solid": "^0.14.5",
|
|
180
180
|
"eslint-plugin-svelte": "^3.13.1",
|
|
181
181
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
@@ -186,13 +186,13 @@
|
|
|
186
186
|
"lint-staged": "^16.2.7",
|
|
187
187
|
"prettier-plugin-astro": "^0.14.1",
|
|
188
188
|
"prettier-plugin-slidev": "^1.0.5",
|
|
189
|
-
"react": "^19.2.
|
|
189
|
+
"react": "^19.2.3",
|
|
190
190
|
"simple-git-hooks": "^2.13.1",
|
|
191
|
-
"svelte": "^5.46.
|
|
191
|
+
"svelte": "^5.46.1",
|
|
192
192
|
"svelte-eslint-parser": "^1.4.1",
|
|
193
193
|
"taze": "^19.9.2",
|
|
194
194
|
"tinyglobby": "^0.2.15",
|
|
195
|
-
"tsdown": "^0.18.
|
|
195
|
+
"tsdown": "^0.18.4",
|
|
196
196
|
"tsx": "^4.21.0",
|
|
197
197
|
"typescript": "^5.9.3",
|
|
198
198
|
"vitest": "^4.0.16",
|