@eslint-react/eslint-plugin 1.12.5-next.6 → 1.13.0-beta.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 +26 -23
- package/dist/index.d.ts +26 -23
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -126,7 +126,7 @@ declare const _default: {
|
|
|
126
126
|
readonly rules: {
|
|
127
127
|
readonly "@eslint-react/debug/class-component": "warn";
|
|
128
128
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
129
|
-
readonly "@eslint-react/debug/
|
|
129
|
+
readonly "@eslint-react/debug/hook": "warn";
|
|
130
130
|
};
|
|
131
131
|
readonly settings: {
|
|
132
132
|
readonly "react-x": {
|
|
@@ -144,7 +144,7 @@ declare const _default: {
|
|
|
144
144
|
readonly rules: {
|
|
145
145
|
readonly "@eslint-react/debug/class-component": "warn";
|
|
146
146
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
147
|
-
readonly "@eslint-react/debug/
|
|
147
|
+
readonly "@eslint-react/debug/hook": "warn";
|
|
148
148
|
};
|
|
149
149
|
readonly settings: {
|
|
150
150
|
readonly "react-x": {
|
|
@@ -226,8 +226,8 @@ declare const _default: {
|
|
|
226
226
|
readonly "@eslint-react/web-api": typeof reactWebApi;
|
|
227
227
|
};
|
|
228
228
|
readonly rules: {
|
|
229
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
230
229
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
230
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
231
231
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
232
232
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
233
233
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -291,8 +291,8 @@ declare const _default: {
|
|
|
291
291
|
readonly "recommended-legacy": {
|
|
292
292
|
readonly plugins: readonly ["@eslint-react"];
|
|
293
293
|
readonly rules: {
|
|
294
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
295
294
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
295
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
296
296
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
297
297
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
298
298
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -364,8 +364,8 @@ declare const _default: {
|
|
|
364
364
|
};
|
|
365
365
|
readonly rules: {
|
|
366
366
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
367
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
368
367
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
368
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
369
369
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
370
370
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
371
371
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -430,8 +430,8 @@ declare const _default: {
|
|
|
430
430
|
readonly plugins: readonly ["@eslint-react"];
|
|
431
431
|
readonly rules: {
|
|
432
432
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
433
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
434
433
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
434
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
435
435
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
436
436
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
437
437
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -703,10 +703,10 @@ declare const _default: {
|
|
|
703
703
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
704
704
|
readonly "@eslint-react/web-api/no-leaked-resize-observer": "warn";
|
|
705
705
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
706
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
707
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
708
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
709
706
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
707
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
708
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn";
|
|
709
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn";
|
|
710
710
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
711
711
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
712
712
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -785,10 +785,10 @@ declare const _default: {
|
|
|
785
785
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
786
786
|
readonly "@eslint-react/web-api/no-leaked-resize-observer": "warn";
|
|
787
787
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
788
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
789
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
790
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
791
788
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
789
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
790
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn";
|
|
791
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn";
|
|
792
792
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
793
793
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
794
794
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -874,10 +874,10 @@ declare const _default: {
|
|
|
874
874
|
readonly "@eslint-react/web-api/no-leaked-interval"?: "off";
|
|
875
875
|
readonly "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
|
|
876
876
|
readonly "@eslint-react/web-api/no-leaked-timeout"?: "off";
|
|
877
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks"?: "off";
|
|
878
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
879
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
880
877
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
878
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook"?: "off";
|
|
879
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback"?: "off";
|
|
880
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo"?: "off";
|
|
881
881
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
882
882
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
883
883
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -956,10 +956,10 @@ declare const _default: {
|
|
|
956
956
|
readonly "@eslint-react/web-api/no-leaked-interval"?: "off";
|
|
957
957
|
readonly "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
|
|
958
958
|
readonly "@eslint-react/web-api/no-leaked-timeout"?: "off";
|
|
959
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks"?: "off";
|
|
960
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
961
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
962
959
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
960
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook"?: "off";
|
|
961
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback"?: "off";
|
|
962
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo"?: "off";
|
|
963
963
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
964
964
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
965
965
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -1042,8 +1042,9 @@ declare const _default: {
|
|
|
1042
1042
|
readonly rules: {
|
|
1043
1043
|
readonly "debug/class-component": _typescript_eslint_utils_ts_eslint.RuleModule<"classComponent", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1044
1044
|
readonly "debug/function-component": _typescript_eslint_utils_ts_eslint.RuleModule<"functionComponent", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1045
|
+
readonly "debug/hook": _typescript_eslint_utils_ts_eslint.RuleModule<"hook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1045
1046
|
readonly "debug/is-from-react": _typescript_eslint_utils_ts_eslint.RuleModule<"isFromReact", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1046
|
-
readonly "debug/react-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1047
|
+
readonly "debug/react-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"hook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1047
1048
|
readonly "naming-convention/component-name": _typescript_eslint_utils_ts_eslint.RuleModule<"componentName", readonly [{
|
|
1048
1049
|
allowAllCaps?: boolean;
|
|
1049
1050
|
allowLeadingUnderscore?: boolean;
|
|
@@ -1061,12 +1062,14 @@ declare const _default: {
|
|
|
1061
1062
|
extensions?: readonly string[];
|
|
1062
1063
|
} | "always" | "as-needed" | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1063
1064
|
readonly "naming-convention/use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"useState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1064
|
-
readonly "hooks-extra/ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureCustomHooksUsingOtherHooks", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1065
|
-
readonly "hooks-extra/ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseCallbackHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1066
|
-
readonly "hooks-extra/ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseMemoHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1067
1065
|
readonly "hooks-extra/no-direct-set-state-in-use-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1068
|
-
readonly "hooks-extra/no-
|
|
1066
|
+
readonly "hooks-extra/no-redundant-custom-hook": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantCustomHook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1067
|
+
readonly "hooks-extra/no-unnecessary-use-callback": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseCallback", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1068
|
+
readonly "hooks-extra/no-unnecessary-use-memo": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseMemo", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1069
1069
|
readonly "hooks-extra/prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"preferUseStateLazyInitialization", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1070
|
+
readonly "hooks-extra/ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantCustomHook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1071
|
+
readonly "hooks-extra/ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseMemo", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1072
|
+
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1070
1073
|
readonly "web-api/no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedEventListenerInEffect" | "noLeakedEventListenerInLifecycle" | "noLeakedEventListenerOfInlineFunction", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1071
1074
|
readonly "web-api/no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedIntervalInEffect" | "noLeakedIntervalInLifecycle" | "noLeakedIntervalNoIntervalId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1072
1075
|
readonly "web-api/no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserverInEffect" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ declare const _default: {
|
|
|
126
126
|
readonly rules: {
|
|
127
127
|
readonly "@eslint-react/debug/class-component": "warn";
|
|
128
128
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
129
|
-
readonly "@eslint-react/debug/
|
|
129
|
+
readonly "@eslint-react/debug/hook": "warn";
|
|
130
130
|
};
|
|
131
131
|
readonly settings: {
|
|
132
132
|
readonly "react-x": {
|
|
@@ -144,7 +144,7 @@ declare const _default: {
|
|
|
144
144
|
readonly rules: {
|
|
145
145
|
readonly "@eslint-react/debug/class-component": "warn";
|
|
146
146
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
147
|
-
readonly "@eslint-react/debug/
|
|
147
|
+
readonly "@eslint-react/debug/hook": "warn";
|
|
148
148
|
};
|
|
149
149
|
readonly settings: {
|
|
150
150
|
readonly "react-x": {
|
|
@@ -226,8 +226,8 @@ declare const _default: {
|
|
|
226
226
|
readonly "@eslint-react/web-api": typeof reactWebApi;
|
|
227
227
|
};
|
|
228
228
|
readonly rules: {
|
|
229
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
230
229
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
230
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
231
231
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
232
232
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
233
233
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -291,8 +291,8 @@ declare const _default: {
|
|
|
291
291
|
readonly "recommended-legacy": {
|
|
292
292
|
readonly plugins: readonly ["@eslint-react"];
|
|
293
293
|
readonly rules: {
|
|
294
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
295
294
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
295
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
296
296
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
297
297
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
298
298
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -364,8 +364,8 @@ declare const _default: {
|
|
|
364
364
|
};
|
|
365
365
|
readonly rules: {
|
|
366
366
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
367
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
368
367
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
368
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
369
369
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
370
370
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
371
371
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -430,8 +430,8 @@ declare const _default: {
|
|
|
430
430
|
readonly plugins: readonly ["@eslint-react"];
|
|
431
431
|
readonly rules: {
|
|
432
432
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
433
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
434
433
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
434
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
435
435
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
436
436
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
437
437
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -703,10 +703,10 @@ declare const _default: {
|
|
|
703
703
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
704
704
|
readonly "@eslint-react/web-api/no-leaked-resize-observer": "warn";
|
|
705
705
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
706
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
707
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
708
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
709
706
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
707
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
708
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn";
|
|
709
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn";
|
|
710
710
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
711
711
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
712
712
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -785,10 +785,10 @@ declare const _default: {
|
|
|
785
785
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
786
786
|
readonly "@eslint-react/web-api/no-leaked-resize-observer": "warn";
|
|
787
787
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
788
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
789
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
790
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
791
788
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
789
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook": "warn";
|
|
790
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn";
|
|
791
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn";
|
|
792
792
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
793
793
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
794
794
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -874,10 +874,10 @@ declare const _default: {
|
|
|
874
874
|
readonly "@eslint-react/web-api/no-leaked-interval"?: "off";
|
|
875
875
|
readonly "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
|
|
876
876
|
readonly "@eslint-react/web-api/no-leaked-timeout"?: "off";
|
|
877
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks"?: "off";
|
|
878
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
879
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
880
877
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
878
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook"?: "off";
|
|
879
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback"?: "off";
|
|
880
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo"?: "off";
|
|
881
881
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
882
882
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
883
883
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -956,10 +956,10 @@ declare const _default: {
|
|
|
956
956
|
readonly "@eslint-react/web-api/no-leaked-interval"?: "off";
|
|
957
957
|
readonly "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
|
|
958
958
|
readonly "@eslint-react/web-api/no-leaked-timeout"?: "off";
|
|
959
|
-
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks"?: "off";
|
|
960
|
-
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
961
|
-
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
962
959
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
960
|
+
readonly "@eslint-react/hooks-extra/no-redundant-custom-hook"?: "off";
|
|
961
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-callback"?: "off";
|
|
962
|
+
readonly "@eslint-react/hooks-extra/no-unnecessary-use-memo"?: "off";
|
|
963
963
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
964
964
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
965
965
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -1042,8 +1042,9 @@ declare const _default: {
|
|
|
1042
1042
|
readonly rules: {
|
|
1043
1043
|
readonly "debug/class-component": _typescript_eslint_utils_ts_eslint.RuleModule<"classComponent", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1044
1044
|
readonly "debug/function-component": _typescript_eslint_utils_ts_eslint.RuleModule<"functionComponent", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1045
|
+
readonly "debug/hook": _typescript_eslint_utils_ts_eslint.RuleModule<"hook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1045
1046
|
readonly "debug/is-from-react": _typescript_eslint_utils_ts_eslint.RuleModule<"isFromReact", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1046
|
-
readonly "debug/react-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1047
|
+
readonly "debug/react-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"hook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1047
1048
|
readonly "naming-convention/component-name": _typescript_eslint_utils_ts_eslint.RuleModule<"componentName", readonly [{
|
|
1048
1049
|
allowAllCaps?: boolean;
|
|
1049
1050
|
allowLeadingUnderscore?: boolean;
|
|
@@ -1061,12 +1062,14 @@ declare const _default: {
|
|
|
1061
1062
|
extensions?: readonly string[];
|
|
1062
1063
|
} | "always" | "as-needed" | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1063
1064
|
readonly "naming-convention/use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"useState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1064
|
-
readonly "hooks-extra/ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureCustomHooksUsingOtherHooks", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1065
|
-
readonly "hooks-extra/ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseCallbackHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1066
|
-
readonly "hooks-extra/ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseMemoHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1067
1065
|
readonly "hooks-extra/no-direct-set-state-in-use-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1068
|
-
readonly "hooks-extra/no-
|
|
1066
|
+
readonly "hooks-extra/no-redundant-custom-hook": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantCustomHook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1067
|
+
readonly "hooks-extra/no-unnecessary-use-callback": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseCallback", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1068
|
+
readonly "hooks-extra/no-unnecessary-use-memo": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseMemo", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1069
1069
|
readonly "hooks-extra/prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"preferUseStateLazyInitialization", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1070
|
+
readonly "hooks-extra/ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantCustomHook", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1071
|
+
readonly "hooks-extra/ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseMemo", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1072
|
+
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1070
1073
|
readonly "web-api/no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedEventListenerInEffect" | "noLeakedEventListenerInLifecycle" | "noLeakedEventListenerOfInlineFunction", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1071
1074
|
readonly "web-api/no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedIntervalInEffect" | "noLeakedIntervalInLifecycle" | "noLeakedIntervalNoIntervalId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1072
1075
|
readonly "web-api/no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserverInEffect" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var react__namespace = /*#__PURE__*/_interopNamespace(react);
|
|
|
37
37
|
|
|
38
38
|
// package.json
|
|
39
39
|
var name = "@eslint-react/eslint-plugin";
|
|
40
|
-
var version = "1.
|
|
40
|
+
var version = "1.13.0-beta.0";
|
|
41
41
|
function transformKeys(obj, transform) {
|
|
42
42
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
43
43
|
const res = {};
|
|
@@ -119,10 +119,10 @@ var allPreset = {
|
|
|
119
119
|
"web-api/no-leaked-resize-observer": "warn",
|
|
120
120
|
"web-api/no-leaked-timeout": "warn",
|
|
121
121
|
// Part: Hooks Extra
|
|
122
|
-
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
123
|
-
"hooks-extra/ensure-use-callback-has-non-empty-deps": "warn",
|
|
124
|
-
"hooks-extra/ensure-use-memo-has-non-empty-deps": "warn",
|
|
125
122
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
123
|
+
"hooks-extra/no-redundant-custom-hook": "warn",
|
|
124
|
+
"hooks-extra/no-unnecessary-use-callback": "warn",
|
|
125
|
+
"hooks-extra/no-unnecessary-use-memo": "warn",
|
|
126
126
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
127
127
|
"naming-convention/component-name": "warn",
|
|
128
128
|
"naming-convention/filename": "warn",
|
|
@@ -196,8 +196,8 @@ var webApiPreset = {
|
|
|
196
196
|
"web-api/no-leaked-timeout": "warn"
|
|
197
197
|
};
|
|
198
198
|
var hooksExtraPreset = {
|
|
199
|
-
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
200
199
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
200
|
+
"hooks-extra/no-redundant-custom-hook": "warn",
|
|
201
201
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn"
|
|
202
202
|
};
|
|
203
203
|
var recommendedPreset = {
|
|
@@ -217,7 +217,7 @@ var disableTypeCheckedPreset = {
|
|
|
217
217
|
var debugPreset = {
|
|
218
218
|
"debug/class-component": "warn",
|
|
219
219
|
"debug/function-component": "warn",
|
|
220
|
-
"debug/
|
|
220
|
+
"debug/hook": "warn"
|
|
221
221
|
};
|
|
222
222
|
var disableDomPreset = tools.fromEntries(tools.entries(domPreset).map(([key]) => [key, "off"]));
|
|
223
223
|
var disableWebApiPreset = tools.fromEntries(tools.entries(webApiPreset).map(([key]) => [key, "off"]));
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import * as react from 'eslint-plugin-react-x';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@eslint-react/eslint-plugin";
|
|
13
|
-
var version = "1.
|
|
13
|
+
var version = "1.13.0-beta.0";
|
|
14
14
|
function transformKeys(obj, transform) {
|
|
15
15
|
if (typeOf(obj) !== "object") return obj;
|
|
16
16
|
const res = {};
|
|
@@ -92,10 +92,10 @@ var allPreset = {
|
|
|
92
92
|
"web-api/no-leaked-resize-observer": "warn",
|
|
93
93
|
"web-api/no-leaked-timeout": "warn",
|
|
94
94
|
// Part: Hooks Extra
|
|
95
|
-
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
96
|
-
"hooks-extra/ensure-use-callback-has-non-empty-deps": "warn",
|
|
97
|
-
"hooks-extra/ensure-use-memo-has-non-empty-deps": "warn",
|
|
98
95
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
96
|
+
"hooks-extra/no-redundant-custom-hook": "warn",
|
|
97
|
+
"hooks-extra/no-unnecessary-use-callback": "warn",
|
|
98
|
+
"hooks-extra/no-unnecessary-use-memo": "warn",
|
|
99
99
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
100
100
|
"naming-convention/component-name": "warn",
|
|
101
101
|
"naming-convention/filename": "warn",
|
|
@@ -169,8 +169,8 @@ var webApiPreset = {
|
|
|
169
169
|
"web-api/no-leaked-timeout": "warn"
|
|
170
170
|
};
|
|
171
171
|
var hooksExtraPreset = {
|
|
172
|
-
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
173
172
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
173
|
+
"hooks-extra/no-redundant-custom-hook": "warn",
|
|
174
174
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn"
|
|
175
175
|
};
|
|
176
176
|
var recommendedPreset = {
|
|
@@ -190,7 +190,7 @@ var disableTypeCheckedPreset = {
|
|
|
190
190
|
var debugPreset = {
|
|
191
191
|
"debug/class-component": "warn",
|
|
192
192
|
"debug/function-component": "warn",
|
|
193
|
-
"debug/
|
|
193
|
+
"debug/hook": "warn"
|
|
194
194
|
};
|
|
195
195
|
var disableDomPreset = fromEntries(entries(domPreset).map(([key]) => [key, "off"]));
|
|
196
196
|
var disableWebApiPreset = fromEntries(entries(webApiPreset).map(([key]) => [key, "off"]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-beta.0",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"@typescript-eslint/type-utils": "^8.4.0",
|
|
48
48
|
"@typescript-eslint/types": "^8.4.0",
|
|
49
49
|
"@typescript-eslint/utils": "^8.4.0",
|
|
50
|
-
"@eslint-react/shared": "1.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"eslint-plugin-react-debug": "1.
|
|
54
|
-
"eslint-plugin-react-hooks-extra": "1.
|
|
55
|
-
"eslint-plugin-react-dom": "1.
|
|
56
|
-
"eslint-plugin-react-naming-convention": "1.
|
|
57
|
-
"eslint-plugin-react-web-api": "1.
|
|
58
|
-
"eslint-plugin-react-x": "1.
|
|
50
|
+
"@eslint-react/shared": "1.13.0-beta.0",
|
|
51
|
+
"@eslint-react/types": "1.13.0-beta.0",
|
|
52
|
+
"@eslint-react/tools": "1.13.0-beta.0",
|
|
53
|
+
"eslint-plugin-react-debug": "1.13.0-beta.0",
|
|
54
|
+
"eslint-plugin-react-hooks-extra": "1.13.0-beta.0",
|
|
55
|
+
"eslint-plugin-react-dom": "1.13.0-beta.0",
|
|
56
|
+
"eslint-plugin-react-naming-convention": "1.13.0-beta.0",
|
|
57
|
+
"eslint-plugin-react-web-api": "1.13.0-beta.0",
|
|
58
|
+
"eslint-plugin-react-x": "1.13.0-beta.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "^8.2.4"
|