@eslint-react/shared 1.49.0 → 1.50.0-next.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 +9 -9
- package/dist/index.d.ts +9 -9
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -741,7 +741,7 @@ declare const CustomComponentPropSchema: z.ZodMiniObject<{
|
|
|
741
741
|
* `"/"`
|
|
742
742
|
*/
|
|
743
743
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
744
|
-
}, {}>;
|
|
744
|
+
}, {}, {}>;
|
|
745
745
|
/**
|
|
746
746
|
* @description
|
|
747
747
|
* This will provide some key information to the rule before checking for user-defined components.
|
|
@@ -792,7 +792,7 @@ declare const CustomComponentSchema: z.ZodMiniObject<{
|
|
|
792
792
|
* `"/"`
|
|
793
793
|
*/
|
|
794
794
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
795
|
-
}, {}>>>;
|
|
795
|
+
}, {}, {}>>>;
|
|
796
796
|
/**
|
|
797
797
|
* The ESQuery selector to select the component precisely.
|
|
798
798
|
* @internal
|
|
@@ -800,7 +800,7 @@ declare const CustomComponentSchema: z.ZodMiniObject<{
|
|
|
800
800
|
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
801
801
|
*/
|
|
802
802
|
selector: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
803
|
-
}, {}>;
|
|
803
|
+
}, {}, {}>;
|
|
804
804
|
declare const CustomHooksSchema: z.ZodMiniObject<{
|
|
805
805
|
use: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
806
806
|
useActionState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -821,7 +821,7 @@ declare const CustomHooksSchema: z.ZodMiniObject<{
|
|
|
821
821
|
useState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
822
822
|
useSyncExternalStore: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
823
823
|
useTransition: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
824
|
-
}, {}>;
|
|
824
|
+
}, {}, {}>;
|
|
825
825
|
/**
|
|
826
826
|
* @internal
|
|
827
827
|
*/
|
|
@@ -895,7 +895,7 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
895
895
|
useState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
896
896
|
useSyncExternalStore: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
897
897
|
useTransition: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
898
|
-
}, {}>>;
|
|
898
|
+
}, {}, {}>>;
|
|
899
899
|
/**
|
|
900
900
|
* An array of user-defined components
|
|
901
901
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -945,7 +945,7 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
945
945
|
* `"/"`
|
|
946
946
|
*/
|
|
947
947
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
948
|
-
}, {}>>>;
|
|
948
|
+
}, {}, {}>>>;
|
|
949
949
|
/**
|
|
950
950
|
* The ESQuery selector to select the component precisely.
|
|
951
951
|
* @internal
|
|
@@ -953,14 +953,14 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
953
953
|
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
954
954
|
*/
|
|
955
955
|
selector: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
956
|
-
}, {}>>>;
|
|
957
|
-
}, {}>;
|
|
956
|
+
}, {}, {}>>>;
|
|
957
|
+
}, {}, {}>;
|
|
958
958
|
/**
|
|
959
959
|
* @internal
|
|
960
960
|
*/
|
|
961
961
|
declare const ESLintSettingsSchema: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
962
962
|
"react-x": z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
963
|
-
}, {}>>;
|
|
963
|
+
}, {}, {}>>;
|
|
964
964
|
type CustomComponent = z.infer<typeof CustomComponentSchema>;
|
|
965
965
|
type CustomComponentProp = z.infer<typeof CustomComponentPropSchema>;
|
|
966
966
|
type CustomHooks = z.infer<typeof CustomHooksSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -741,7 +741,7 @@ declare const CustomComponentPropSchema: z.ZodMiniObject<{
|
|
|
741
741
|
* `"/"`
|
|
742
742
|
*/
|
|
743
743
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
744
|
-
}, {}>;
|
|
744
|
+
}, {}, {}>;
|
|
745
745
|
/**
|
|
746
746
|
* @description
|
|
747
747
|
* This will provide some key information to the rule before checking for user-defined components.
|
|
@@ -792,7 +792,7 @@ declare const CustomComponentSchema: z.ZodMiniObject<{
|
|
|
792
792
|
* `"/"`
|
|
793
793
|
*/
|
|
794
794
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
795
|
-
}, {}>>>;
|
|
795
|
+
}, {}, {}>>>;
|
|
796
796
|
/**
|
|
797
797
|
* The ESQuery selector to select the component precisely.
|
|
798
798
|
* @internal
|
|
@@ -800,7 +800,7 @@ declare const CustomComponentSchema: z.ZodMiniObject<{
|
|
|
800
800
|
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
801
801
|
*/
|
|
802
802
|
selector: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
803
|
-
}, {}>;
|
|
803
|
+
}, {}, {}>;
|
|
804
804
|
declare const CustomHooksSchema: z.ZodMiniObject<{
|
|
805
805
|
use: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
806
806
|
useActionState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -821,7 +821,7 @@ declare const CustomHooksSchema: z.ZodMiniObject<{
|
|
|
821
821
|
useState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
822
822
|
useSyncExternalStore: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
823
823
|
useTransition: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
824
|
-
}, {}>;
|
|
824
|
+
}, {}, {}>;
|
|
825
825
|
/**
|
|
826
826
|
* @internal
|
|
827
827
|
*/
|
|
@@ -895,7 +895,7 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
895
895
|
useState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
896
896
|
useSyncExternalStore: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
897
897
|
useTransition: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
898
|
-
}, {}>>;
|
|
898
|
+
}, {}, {}>>;
|
|
899
899
|
/**
|
|
900
900
|
* An array of user-defined components
|
|
901
901
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -945,7 +945,7 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
945
945
|
* `"/"`
|
|
946
946
|
*/
|
|
947
947
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
948
|
-
}, {}>>>;
|
|
948
|
+
}, {}, {}>>>;
|
|
949
949
|
/**
|
|
950
950
|
* The ESQuery selector to select the component precisely.
|
|
951
951
|
* @internal
|
|
@@ -953,14 +953,14 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
953
953
|
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
954
954
|
*/
|
|
955
955
|
selector: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
956
|
-
}, {}>>>;
|
|
957
|
-
}, {}>;
|
|
956
|
+
}, {}, {}>>>;
|
|
957
|
+
}, {}, {}>;
|
|
958
958
|
/**
|
|
959
959
|
* @internal
|
|
960
960
|
*/
|
|
961
961
|
declare const ESLintSettingsSchema: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
962
962
|
"react-x": z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
963
|
-
}, {}>>;
|
|
963
|
+
}, {}, {}>>;
|
|
964
964
|
type CustomComponent = z.infer<typeof CustomComponentSchema>;
|
|
965
965
|
type CustomComponentProp = z.infer<typeof CustomComponentPropSchema>;
|
|
966
966
|
type CustomHooks = z.infer<typeof CustomHooksSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.50.0-next.0",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/utils": "^8.
|
|
39
|
-
"@zod/mini": "^4.0.0-beta.
|
|
38
|
+
"@typescript-eslint/utils": "^8.32.0",
|
|
39
|
+
"@zod/mini": "^4.0.0-beta.20250505T195954",
|
|
40
40
|
"ts-pattern": "^5.7.0",
|
|
41
|
-
"@eslint-react/eff": "1.
|
|
42
|
-
"@eslint-react/kit": "1.
|
|
41
|
+
"@eslint-react/eff": "1.50.0-next.0",
|
|
42
|
+
"@eslint-react/kit": "1.50.0-next.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tsconfig/node22": "^22.0.1",
|
|
46
46
|
"@types/picomatch": "^4.0.0",
|
|
47
47
|
"tsup": "^8.4.0",
|
|
48
|
-
"type-fest": "^4.
|
|
48
|
+
"type-fest": "^4.41.0",
|
|
49
49
|
"@local/configs": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|