@eslint-react/shared 1.16.1-next.0 → 1.16.1-next.3
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 +125 -127
- package/dist/index.d.ts +125 -127
- package/dist/index.js +5 -8
- package/dist/index.mjs +5 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ var getDocsUrl = (pluginName) => (ruleName) => {
|
|
|
214
214
|
};
|
|
215
215
|
var createRuleForPlugin = (pluginName) => utils.ESLintUtils.RuleCreator(getDocsUrl(pluginName));
|
|
216
216
|
|
|
217
|
-
// ../../node_modules/.pnpm/valibot@1.0.0-beta.
|
|
217
|
+
// ../../node_modules/.pnpm/valibot@1.0.0-beta.3_typescript@5.6.3/node_modules/valibot/dist/index.js
|
|
218
218
|
var store;
|
|
219
219
|
function getGlobalConfig(config2) {
|
|
220
220
|
return {
|
|
@@ -465,19 +465,20 @@ function object(entries, message) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
function optional(wrapped,
|
|
469
|
-
|
|
468
|
+
function optional(wrapped, default_) {
|
|
469
|
+
return {
|
|
470
470
|
kind: "schema",
|
|
471
471
|
type: "optional",
|
|
472
472
|
reference: optional,
|
|
473
473
|
expects: `(${wrapped.expects} | undefined)`,
|
|
474
474
|
async: false,
|
|
475
475
|
wrapped,
|
|
476
|
+
default: default_,
|
|
476
477
|
"~standard": 1,
|
|
477
478
|
"~vendor": "valibot",
|
|
478
479
|
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
479
480
|
if (dataset.value === void 0) {
|
|
480
|
-
if (
|
|
481
|
+
if (this.default !== void 0) {
|
|
481
482
|
dataset.value = getDefault(this, dataset, config2);
|
|
482
483
|
}
|
|
483
484
|
if (dataset.value === void 0) {
|
|
@@ -488,10 +489,6 @@ function optional(wrapped, ...args2) {
|
|
|
488
489
|
return this.wrapped["~validate"](dataset, config2);
|
|
489
490
|
}
|
|
490
491
|
};
|
|
491
|
-
if (0 in args2) {
|
|
492
|
-
schema.default = args2[0];
|
|
493
|
-
}
|
|
494
|
-
return schema;
|
|
495
492
|
}
|
|
496
493
|
function string(message) {
|
|
497
494
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -208,7 +208,7 @@ var getDocsUrl = (pluginName) => (ruleName) => {
|
|
|
208
208
|
};
|
|
209
209
|
var createRuleForPlugin = (pluginName) => ESLintUtils.RuleCreator(getDocsUrl(pluginName));
|
|
210
210
|
|
|
211
|
-
// ../../node_modules/.pnpm/valibot@1.0.0-beta.
|
|
211
|
+
// ../../node_modules/.pnpm/valibot@1.0.0-beta.3_typescript@5.6.3/node_modules/valibot/dist/index.js
|
|
212
212
|
var store;
|
|
213
213
|
function getGlobalConfig(config2) {
|
|
214
214
|
return {
|
|
@@ -459,19 +459,20 @@ function object(entries, message) {
|
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
|
-
function optional(wrapped,
|
|
463
|
-
|
|
462
|
+
function optional(wrapped, default_) {
|
|
463
|
+
return {
|
|
464
464
|
kind: "schema",
|
|
465
465
|
type: "optional",
|
|
466
466
|
reference: optional,
|
|
467
467
|
expects: `(${wrapped.expects} | undefined)`,
|
|
468
468
|
async: false,
|
|
469
469
|
wrapped,
|
|
470
|
+
default: default_,
|
|
470
471
|
"~standard": 1,
|
|
471
472
|
"~vendor": "valibot",
|
|
472
473
|
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
473
474
|
if (dataset.value === void 0) {
|
|
474
|
-
if (
|
|
475
|
+
if (this.default !== void 0) {
|
|
475
476
|
dataset.value = getDefault(this, dataset, config2);
|
|
476
477
|
}
|
|
477
478
|
if (dataset.value === void 0) {
|
|
@@ -482,10 +483,6 @@ function optional(wrapped, ...args2) {
|
|
|
482
483
|
return this.wrapped["~validate"](dataset, config2);
|
|
483
484
|
}
|
|
484
485
|
};
|
|
485
|
-
if (0 in args2) {
|
|
486
|
-
schema.default = args2[0];
|
|
487
|
-
}
|
|
488
|
-
return schema;
|
|
489
486
|
}
|
|
490
487
|
function string(message) {
|
|
491
488
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.16.1-next.
|
|
3
|
+
"version": "1.16.1-next.3",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@typescript-eslint/utils": "^8.13.0",
|
|
39
39
|
"picomatch": "^4.0.2",
|
|
40
|
-
"@eslint-react/tools": "1.16.1-next.
|
|
40
|
+
"@eslint-react/tools": "1.16.1-next.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/picomatch": "^3.0.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"micro-memoize": "^4.1.2",
|
|
46
46
|
"tsup": "^8.3.5",
|
|
47
47
|
"type-fest": "^4.26.1",
|
|
48
|
-
"valibot": "^1.0.0-beta.
|
|
48
|
+
"valibot": "^1.0.0-beta.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup --dts-resolve",
|