@eslint-react/shared 2.0.0-next.14 → 2.0.0-next.16
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.ts +9 -24
- package/dist/index.js +0 -13
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -749,7 +749,7 @@ declare const CustomComponentPropSchema: z.ZodMiniObject<{
|
|
|
749
749
|
* `"/"`
|
|
750
750
|
*/
|
|
751
751
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
752
|
-
}, {}>;
|
|
752
|
+
}, {}, {}>;
|
|
753
753
|
/**
|
|
754
754
|
* @description
|
|
755
755
|
* This will provide some key information to the rule before checking for user-defined components.
|
|
@@ -800,7 +800,7 @@ declare const CustomComponentSchema: z.ZodMiniObject<{
|
|
|
800
800
|
* `"/"`
|
|
801
801
|
*/
|
|
802
802
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
803
|
-
}, {}>>>;
|
|
803
|
+
}, {}, {}>>>;
|
|
804
804
|
/**
|
|
805
805
|
* The ESQuery selector to select the component precisely.
|
|
806
806
|
* @internal
|
|
@@ -808,7 +808,7 @@ declare const CustomComponentSchema: z.ZodMiniObject<{
|
|
|
808
808
|
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
809
809
|
*/
|
|
810
810
|
selector: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
811
|
-
}, {}>;
|
|
811
|
+
}, {}, {}>;
|
|
812
812
|
declare const CustomHooksSchema: z.ZodMiniObject<{
|
|
813
813
|
use: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
814
814
|
useActionState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -829,7 +829,7 @@ declare const CustomHooksSchema: z.ZodMiniObject<{
|
|
|
829
829
|
useState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
830
830
|
useSyncExternalStore: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
831
831
|
useTransition: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
832
|
-
}, {}>;
|
|
832
|
+
}, {}, {}>;
|
|
833
833
|
/**
|
|
834
834
|
* @internal
|
|
835
835
|
*/
|
|
@@ -841,19 +841,6 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
841
841
|
* @example `"@pika/react"`
|
|
842
842
|
*/
|
|
843
843
|
importSource: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
844
|
-
/**
|
|
845
|
-
* The identifier that's used for JSX Element creation.
|
|
846
|
-
* @default `"createElement"`
|
|
847
|
-
* @deprecated
|
|
848
|
-
*/
|
|
849
|
-
jsxPragma: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
850
|
-
/**
|
|
851
|
-
* The identifier that's used for JSX fragment elements.
|
|
852
|
-
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
853
|
-
* @default `"Fragment"`
|
|
854
|
-
* @deprecated
|
|
855
|
-
*/
|
|
856
|
-
jsxPragmaFrag: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
857
844
|
/**
|
|
858
845
|
* The name of the prop that is used for polymorphic components.
|
|
859
846
|
* @description This is used to determine the type of the component.
|
|
@@ -903,7 +890,7 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
903
890
|
useState: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
904
891
|
useSyncExternalStore: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
905
892
|
useTransition: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
906
|
-
}, {}>>;
|
|
893
|
+
}, {}, {}>>;
|
|
907
894
|
/**
|
|
908
895
|
* An array of user-defined components
|
|
909
896
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -953,7 +940,7 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
953
940
|
* `"/"`
|
|
954
941
|
*/
|
|
955
942
|
defaultValue: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
956
|
-
}, {}>>>;
|
|
943
|
+
}, {}, {}>>>;
|
|
957
944
|
/**
|
|
958
945
|
* The ESQuery selector to select the component precisely.
|
|
959
946
|
* @internal
|
|
@@ -961,14 +948,14 @@ declare const ESLintReactSettingsSchema: z.ZodMiniObject<{
|
|
|
961
948
|
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
962
949
|
*/
|
|
963
950
|
selector: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
964
|
-
}, {}>>>;
|
|
965
|
-
}, {}>;
|
|
951
|
+
}, {}, {}>>>;
|
|
952
|
+
}, {}, {}>;
|
|
966
953
|
/**
|
|
967
954
|
* @internal
|
|
968
955
|
*/
|
|
969
956
|
declare const ESLintSettingsSchema: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
970
957
|
"react-x": z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
971
|
-
}, {}>>;
|
|
958
|
+
}, {}, {}>>;
|
|
972
959
|
type CustomComponent = z.infer<typeof CustomComponentSchema>;
|
|
973
960
|
type CustomComponentProp = z.infer<typeof CustomComponentPropSchema>;
|
|
974
961
|
type CustomHooks = z.infer<typeof CustomHooksSchema>;
|
|
@@ -1072,8 +1059,6 @@ declare const normalizeSettings: ({ additionalComponents, additionalHooks, impor
|
|
|
1072
1059
|
readonly skipImportCheck: boolean;
|
|
1073
1060
|
readonly strict: boolean;
|
|
1074
1061
|
readonly version: string;
|
|
1075
|
-
readonly jsxPragma?: string | undefined;
|
|
1076
|
-
readonly jsxPragmaFrag?: string | undefined;
|
|
1077
1062
|
};
|
|
1078
1063
|
declare function getSettingsFromContext(context: RuleContext): ESLintReactSettingsNormalized;
|
|
1079
1064
|
/**
|
package/dist/index.js
CHANGED
|
@@ -112,19 +112,6 @@ var ESLintReactSettingsSchema = z.object({
|
|
|
112
112
|
* @example `"@pika/react"`
|
|
113
113
|
*/
|
|
114
114
|
importSource: z.optional(z.string()),
|
|
115
|
-
/**
|
|
116
|
-
* The identifier that's used for JSX Element creation.
|
|
117
|
-
* @default `"createElement"`
|
|
118
|
-
* @deprecated
|
|
119
|
-
*/
|
|
120
|
-
jsxPragma: z.optional(z.string()),
|
|
121
|
-
/**
|
|
122
|
-
* The identifier that's used for JSX fragment elements.
|
|
123
|
-
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
124
|
-
* @default `"Fragment"`
|
|
125
|
-
* @deprecated
|
|
126
|
-
*/
|
|
127
|
-
jsxPragmaFrag: z.optional(z.string()),
|
|
128
115
|
/**
|
|
129
116
|
* The name of the prop that is used for polymorphic components.
|
|
130
117
|
* @description This is used to determine the type of the component.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.16",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"./package.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@typescript-eslint/utils": "^8.
|
|
31
|
-
"@zod/mini": "^4.0.0-beta.
|
|
30
|
+
"@typescript-eslint/utils": "^8.32.0",
|
|
31
|
+
"@zod/mini": "^4.0.0-beta.20250505T195954",
|
|
32
32
|
"ts-pattern": "^5.7.0",
|
|
33
|
-
"@eslint-react/eff": "2.0.0-next.
|
|
34
|
-
"@eslint-react/kit": "2.0.0-next.
|
|
33
|
+
"@eslint-react/eff": "2.0.0-next.16",
|
|
34
|
+
"@eslint-react/kit": "2.0.0-next.16"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@tsconfig/node22": "^22.0.1",
|
|
38
38
|
"@types/picomatch": "^4.0.0",
|
|
39
39
|
"tsup": "^8.4.0",
|
|
40
|
-
"type-fest": "^4.
|
|
40
|
+
"type-fest": "^4.41.0",
|
|
41
41
|
"@local/configs": "0.0.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|