@eslint-react/shared 1.24.0-next.5 → 1.24.0-next.8
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 -22
- package/dist/index.d.ts +9 -22
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1489,33 +1489,19 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1489
1489
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1490
1490
|
}, undefined>, undefined>, undefined>;
|
|
1491
1491
|
}, undefined>;
|
|
1492
|
+
declare const CustomAttributeNormalizedSchema: ObjectSchema<{
|
|
1493
|
+
readonly name: StringSchema<undefined>;
|
|
1494
|
+
readonly as: StringSchema<undefined>;
|
|
1495
|
+
readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
1496
|
+
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1497
|
+
}, undefined>;
|
|
1492
1498
|
declare const CustomComponentNormalizedSchema: ObjectSchema<{
|
|
1493
1499
|
readonly name: StringSchema<undefined>;
|
|
1494
1500
|
readonly as: StringSchema<undefined>;
|
|
1495
1501
|
readonly attributes: OptionalSchema<ArraySchema<ObjectSchema<{
|
|
1496
|
-
/**
|
|
1497
|
-
* The name of the attribute in the user-defined component.
|
|
1498
|
-
* @example
|
|
1499
|
-
* "to"
|
|
1500
|
-
*/
|
|
1501
1502
|
readonly name: StringSchema<undefined>;
|
|
1502
|
-
|
|
1503
|
-
* The name of the attribute in the built-in component.
|
|
1504
|
-
* @example
|
|
1505
|
-
* "href"
|
|
1506
|
-
*/
|
|
1507
|
-
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1508
|
-
/**
|
|
1509
|
-
* Whether the attribute is controlled or not in the user-defined component.
|
|
1510
|
-
* @example
|
|
1511
|
-
* `true`
|
|
1512
|
-
*/
|
|
1503
|
+
readonly as: StringSchema<undefined>;
|
|
1513
1504
|
readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
1514
|
-
/**
|
|
1515
|
-
* The default value of the attribute in the user-defined component.
|
|
1516
|
-
* @example
|
|
1517
|
-
* `"/"`
|
|
1518
|
-
*/
|
|
1519
1505
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1520
1506
|
}, undefined>, undefined>, readonly []>;
|
|
1521
1507
|
readonly re: InstanceSchema<RegExpConstructor, undefined>;
|
|
@@ -1908,6 +1894,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1908
1894
|
type CustomHook = InferOutput<typeof CustomHookSchema>;
|
|
1909
1895
|
type CustomAttribute = InferOutput<typeof CustomAttributeSchema>;
|
|
1910
1896
|
type CustomComponent = InferOutput<typeof CustomComponentSchema>;
|
|
1897
|
+
type CustomAttributeNormalized = InferOutput<typeof CustomAttributeNormalizedSchema>;
|
|
1911
1898
|
type CustomComponentNormalized = InferOutput<typeof CustomComponentNormalizedSchema>;
|
|
1912
1899
|
type ESLintReactSettings = InferOutput<typeof ESLintReactSettingsSchema>;
|
|
1913
1900
|
type ESLintSettings = InferOutput<typeof ESLintSettingsSchema>;
|
|
@@ -2276,4 +2263,4 @@ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-conventio
|
|
|
2276
2263
|
*/
|
|
2277
2264
|
type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
|
|
2278
2265
|
|
|
2279
|
-
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
|
|
2266
|
+
export { type CustomAttribute, type CustomAttributeNormalized, CustomAttributeNormalizedSchema, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
|
package/dist/index.d.ts
CHANGED
|
@@ -1489,33 +1489,19 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1489
1489
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1490
1490
|
}, undefined>, undefined>, undefined>;
|
|
1491
1491
|
}, undefined>;
|
|
1492
|
+
declare const CustomAttributeNormalizedSchema: ObjectSchema<{
|
|
1493
|
+
readonly name: StringSchema<undefined>;
|
|
1494
|
+
readonly as: StringSchema<undefined>;
|
|
1495
|
+
readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
1496
|
+
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1497
|
+
}, undefined>;
|
|
1492
1498
|
declare const CustomComponentNormalizedSchema: ObjectSchema<{
|
|
1493
1499
|
readonly name: StringSchema<undefined>;
|
|
1494
1500
|
readonly as: StringSchema<undefined>;
|
|
1495
1501
|
readonly attributes: OptionalSchema<ArraySchema<ObjectSchema<{
|
|
1496
|
-
/**
|
|
1497
|
-
* The name of the attribute in the user-defined component.
|
|
1498
|
-
* @example
|
|
1499
|
-
* "to"
|
|
1500
|
-
*/
|
|
1501
1502
|
readonly name: StringSchema<undefined>;
|
|
1502
|
-
|
|
1503
|
-
* The name of the attribute in the built-in component.
|
|
1504
|
-
* @example
|
|
1505
|
-
* "href"
|
|
1506
|
-
*/
|
|
1507
|
-
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1508
|
-
/**
|
|
1509
|
-
* Whether the attribute is controlled or not in the user-defined component.
|
|
1510
|
-
* @example
|
|
1511
|
-
* `true`
|
|
1512
|
-
*/
|
|
1503
|
+
readonly as: StringSchema<undefined>;
|
|
1513
1504
|
readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
1514
|
-
/**
|
|
1515
|
-
* The default value of the attribute in the user-defined component.
|
|
1516
|
-
* @example
|
|
1517
|
-
* `"/"`
|
|
1518
|
-
*/
|
|
1519
1505
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1520
1506
|
}, undefined>, undefined>, readonly []>;
|
|
1521
1507
|
readonly re: InstanceSchema<RegExpConstructor, undefined>;
|
|
@@ -1908,6 +1894,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1908
1894
|
type CustomHook = InferOutput<typeof CustomHookSchema>;
|
|
1909
1895
|
type CustomAttribute = InferOutput<typeof CustomAttributeSchema>;
|
|
1910
1896
|
type CustomComponent = InferOutput<typeof CustomComponentSchema>;
|
|
1897
|
+
type CustomAttributeNormalized = InferOutput<typeof CustomAttributeNormalizedSchema>;
|
|
1911
1898
|
type CustomComponentNormalized = InferOutput<typeof CustomComponentNormalizedSchema>;
|
|
1912
1899
|
type ESLintReactSettings = InferOutput<typeof ESLintReactSettingsSchema>;
|
|
1913
1900
|
type ESLintSettings = InferOutput<typeof ESLintSettingsSchema>;
|
|
@@ -2276,4 +2263,4 @@ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-conventio
|
|
|
2276
2263
|
*/
|
|
2277
2264
|
type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
|
|
2278
2265
|
|
|
2279
|
-
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
|
|
2266
|
+
export { type CustomAttribute, type CustomAttributeNormalized, CustomAttributeNormalizedSchema, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
|
package/dist/index.js
CHANGED
|
@@ -612,10 +612,16 @@ var CustomComponentSchema = object({
|
|
|
612
612
|
*/
|
|
613
613
|
attributes: optional(array(CustomAttributeSchema))
|
|
614
614
|
});
|
|
615
|
+
var CustomAttributeNormalizedSchema = object({
|
|
616
|
+
name: string(),
|
|
617
|
+
as: string(),
|
|
618
|
+
controlled: optional(boolean()),
|
|
619
|
+
defaultValue: optional(string())
|
|
620
|
+
});
|
|
615
621
|
var CustomComponentNormalizedSchema = object({
|
|
616
622
|
name: string(),
|
|
617
623
|
as: string(),
|
|
618
|
-
attributes: optional(array(
|
|
624
|
+
attributes: optional(array(CustomAttributeNormalizedSchema), []),
|
|
619
625
|
re: instance(RegExp),
|
|
620
626
|
selector: optional(string())
|
|
621
627
|
});
|
|
@@ -1434,6 +1440,7 @@ function getSettingsFromContext(context) {
|
|
|
1434
1440
|
}
|
|
1435
1441
|
var defineSettings = eff.identity;
|
|
1436
1442
|
|
|
1443
|
+
exports.CustomAttributeNormalizedSchema = CustomAttributeNormalizedSchema;
|
|
1437
1444
|
exports.CustomAttributeSchema = CustomAttributeSchema;
|
|
1438
1445
|
exports.CustomComponentNormalizedSchema = CustomComponentNormalizedSchema;
|
|
1439
1446
|
exports.CustomComponentSchema = CustomComponentSchema;
|
package/dist/index.mjs
CHANGED
|
@@ -604,10 +604,16 @@ var CustomComponentSchema = object({
|
|
|
604
604
|
*/
|
|
605
605
|
attributes: optional(array(CustomAttributeSchema))
|
|
606
606
|
});
|
|
607
|
+
var CustomAttributeNormalizedSchema = object({
|
|
608
|
+
name: string(),
|
|
609
|
+
as: string(),
|
|
610
|
+
controlled: optional(boolean()),
|
|
611
|
+
defaultValue: optional(string())
|
|
612
|
+
});
|
|
607
613
|
var CustomComponentNormalizedSchema = object({
|
|
608
614
|
name: string(),
|
|
609
615
|
as: string(),
|
|
610
|
-
attributes: optional(array(
|
|
616
|
+
attributes: optional(array(CustomAttributeNormalizedSchema), []),
|
|
611
617
|
re: instance(RegExp),
|
|
612
618
|
selector: optional(string())
|
|
613
619
|
});
|
|
@@ -1426,4 +1432,4 @@ function getSettingsFromContext(context) {
|
|
|
1426
1432
|
}
|
|
1427
1433
|
var defineSettings = identity;
|
|
1428
1434
|
|
|
1429
|
-
export { CustomAttributeSchema, CustomComponentNormalizedSchema, CustomComponentSchema, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
|
|
1435
|
+
export { CustomAttributeNormalizedSchema, CustomAttributeSchema, CustomComponentNormalizedSchema, CustomComponentSchema, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.8",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"./package.json"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@typescript-eslint/utils": "^8.
|
|
36
|
+
"@typescript-eslint/utils": "^8.20.0",
|
|
37
37
|
"picomatch": "^4.0.2",
|
|
38
38
|
"ts-pattern": "^5.6.0",
|
|
39
|
-
"@eslint-react/eff": "1.24.0-next.
|
|
39
|
+
"@eslint-react/eff": "1.24.0-next.8"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/picomatch": "^3.0.1",
|