@eslint-react/shared 5.3.4-beta.0 → 5.3.4-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +30 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -243,16 +243,46 @@ function isRegExp(string) {
|
|
|
243
243
|
* @internal
|
|
244
244
|
*/
|
|
245
245
|
const ESLintReactSettingsSchema = z.object({
|
|
246
|
+
/**
|
|
247
|
+
* The source where React is imported from
|
|
248
|
+
* Allows specifying a custom import location for React
|
|
249
|
+
* @default "react"
|
|
250
|
+
* @example "@pika/react"
|
|
251
|
+
*/
|
|
246
252
|
importSource: z.optional(z.string()),
|
|
253
|
+
/**
|
|
254
|
+
* The React Compiler compilationMode that the project is using
|
|
255
|
+
* Used to inform the rule about how components and hooks will be picked up by the compiler
|
|
256
|
+
* @example "infer"
|
|
257
|
+
*/
|
|
247
258
|
compilationMode: z.optional(z.enum([
|
|
248
259
|
"infer",
|
|
249
260
|
"annotation",
|
|
250
261
|
"syntax",
|
|
251
262
|
"all"
|
|
252
263
|
])),
|
|
264
|
+
/**
|
|
265
|
+
* The prop name used for polymorphic components
|
|
266
|
+
* Used to determine the component's type
|
|
267
|
+
* @example "as"
|
|
268
|
+
*/
|
|
253
269
|
polymorphicPropName: z.optional(z.string()),
|
|
270
|
+
/**
|
|
271
|
+
* React version to use
|
|
272
|
+
* "detect" means auto-detect React version from project dependencies
|
|
273
|
+
* @example "18.3.1"
|
|
274
|
+
* @default "detect"
|
|
275
|
+
*/
|
|
254
276
|
version: z.optional(z.string()),
|
|
277
|
+
/**
|
|
278
|
+
* Regex pattern matching custom hooks that should be treated as state hooks
|
|
279
|
+
* @example "useMyState|useCustomState"
|
|
280
|
+
*/
|
|
255
281
|
additionalStateHooks: z.optional(z.string()),
|
|
282
|
+
/**
|
|
283
|
+
* Regex pattern matching custom hooks that should be treated as effect hooks
|
|
284
|
+
* @example "useMyEffect|useCustomEffect"
|
|
285
|
+
*/
|
|
256
286
|
additionalEffectHooks: z.optional(z.string())
|
|
257
287
|
});
|
|
258
288
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "5.3.4-
|
|
3
|
+
"version": "5.3.4-next.1",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@typescript-eslint/utils": "^8.59.0",
|
|
34
34
|
"ts-pattern": "^5.9.0",
|
|
35
35
|
"zod": "^4.3.6",
|
|
36
|
-
"@eslint-react/eslint": "5.3.4-
|
|
36
|
+
"@eslint-react/eslint": "5.3.4-next.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@tsconfig/node24": "^24.0.4",
|
|
40
40
|
"@types/node": "^25.6.0",
|
|
41
41
|
"@types/picomatch": "^4.0.3",
|
|
42
|
-
"tsdown": "^0.21.
|
|
42
|
+
"tsdown": "^0.21.10",
|
|
43
43
|
"@local/eff": "3.0.0-beta.72",
|
|
44
44
|
"@local/configs": "0.0.0"
|
|
45
45
|
},
|