@eslint-react/core 1.29.1-beta.0 → 1.29.1-beta.2
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 +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ function isReactHookName(name) {
|
|
|
51
51
|
return name === "use" || RE_HOOK_NAME.test(name);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// ../../node_modules/.pnpm/valibot@1.0.0-rc.
|
|
54
|
+
// ../../node_modules/.pnpm/valibot@1.0.0-rc.3_typescript@5.8.2/node_modules/valibot/dist/index.js
|
|
55
55
|
var store;
|
|
56
56
|
// @__NO_SIDE_EFFECTS__
|
|
57
57
|
function getGlobalConfig(config2) {
|
|
@@ -111,7 +111,7 @@ function _addIssue(context, label, dataset, config2, other) {
|
|
|
111
111
|
};
|
|
112
112
|
const isSchema = context.kind === "schema";
|
|
113
113
|
const message = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config2.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
|
|
114
|
-
if (message) {
|
|
114
|
+
if (message !== void 0) {
|
|
115
115
|
issue.message = typeof message === "function" ? (
|
|
116
116
|
// @ts-expect-error
|
|
117
117
|
message(issue)
|
|
@@ -473,13 +473,13 @@ var ESLintReactSettingsSchema = object({
|
|
|
473
473
|
*/
|
|
474
474
|
importSource: optional(string()),
|
|
475
475
|
/**
|
|
476
|
-
* The identifier that
|
|
476
|
+
* The identifier that's used for JSX Element creation.
|
|
477
477
|
* @default `"createElement"`
|
|
478
478
|
* @deprecated
|
|
479
479
|
*/
|
|
480
480
|
jsxPragma: optional(string()),
|
|
481
481
|
/**
|
|
482
|
-
* The identifier that
|
|
482
|
+
* The identifier that's used for JSX fragment elements.
|
|
483
483
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
484
484
|
* @default `"Fragment"`
|
|
485
485
|
* @deprecated
|
|
@@ -502,7 +502,7 @@ var ESLintReactSettingsSchema = object({
|
|
|
502
502
|
*/
|
|
503
503
|
skipImportCheck: optional(boolean(), true),
|
|
504
504
|
/**
|
|
505
|
-
* React version to use, "detect" means auto detect React version from the project
|
|
505
|
+
* React version to use, "detect" means auto detect React version from the project's dependencies.
|
|
506
506
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
507
507
|
* @example `"18.3.1"`
|
|
508
508
|
* @default `"detect"`
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ function isReactHookName(name) {
|
|
|
24
24
|
return name === "use" || RE_HOOK_NAME.test(name);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/.pnpm/valibot@1.0.0-rc.
|
|
27
|
+
// ../../node_modules/.pnpm/valibot@1.0.0-rc.3_typescript@5.8.2/node_modules/valibot/dist/index.js
|
|
28
28
|
var store;
|
|
29
29
|
// @__NO_SIDE_EFFECTS__
|
|
30
30
|
function getGlobalConfig(config2) {
|
|
@@ -84,7 +84,7 @@ function _addIssue(context, label, dataset, config2, other) {
|
|
|
84
84
|
};
|
|
85
85
|
const isSchema = context.kind === "schema";
|
|
86
86
|
const message = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config2.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
|
|
87
|
-
if (message) {
|
|
87
|
+
if (message !== void 0) {
|
|
88
88
|
issue.message = typeof message === "function" ? (
|
|
89
89
|
// @ts-expect-error
|
|
90
90
|
message(issue)
|
|
@@ -446,13 +446,13 @@ var ESLintReactSettingsSchema = object({
|
|
|
446
446
|
*/
|
|
447
447
|
importSource: optional(string()),
|
|
448
448
|
/**
|
|
449
|
-
* The identifier that
|
|
449
|
+
* The identifier that's used for JSX Element creation.
|
|
450
450
|
* @default `"createElement"`
|
|
451
451
|
* @deprecated
|
|
452
452
|
*/
|
|
453
453
|
jsxPragma: optional(string()),
|
|
454
454
|
/**
|
|
455
|
-
* The identifier that
|
|
455
|
+
* The identifier that's used for JSX fragment elements.
|
|
456
456
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
457
457
|
* @default `"Fragment"`
|
|
458
458
|
* @deprecated
|
|
@@ -475,7 +475,7 @@ var ESLintReactSettingsSchema = object({
|
|
|
475
475
|
*/
|
|
476
476
|
skipImportCheck: optional(boolean(), true),
|
|
477
477
|
/**
|
|
478
|
-
* React version to use, "detect" means auto detect React version from the project
|
|
478
|
+
* React version to use, "detect" means auto detect React version from the project's dependencies.
|
|
479
479
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
480
480
|
* @example `"18.3.1"`
|
|
481
481
|
* @default `"detect"`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.29.1-beta.
|
|
3
|
+
"version": "1.29.1-beta.2",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.25.0",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.6.2",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/jsx": "1.29.1-beta.
|
|
47
|
-
"@eslint-react/shared": "1.29.1-beta.
|
|
48
|
-
"@eslint-react/var": "1.29.1-beta.
|
|
44
|
+
"@eslint-react/eff": "1.29.1-beta.2",
|
|
45
|
+
"@eslint-react/ast": "1.29.1-beta.2",
|
|
46
|
+
"@eslint-react/jsx": "1.29.1-beta.2",
|
|
47
|
+
"@eslint-react/shared": "1.29.1-beta.2",
|
|
48
|
+
"@eslint-react/var": "1.29.1-beta.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.4.0",
|