@eslint-react/shared 1.28.1-beta.3 → 1.28.1-beta.4
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 +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1472,6 +1472,7 @@ declare const CustomComponentPropSchema: ObjectSchema<{
|
|
|
1472
1472
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1475
|
+
* @internal
|
|
1475
1476
|
* @example
|
|
1476
1477
|
* `true`
|
|
1477
1478
|
*/
|
|
@@ -1522,6 +1523,7 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1522
1523
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1523
1524
|
/**
|
|
1524
1525
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1526
|
+
* @internal
|
|
1525
1527
|
* @example
|
|
1526
1528
|
* `true`
|
|
1527
1529
|
*/
|
|
@@ -1673,6 +1675,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1673
1675
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1674
1676
|
/**
|
|
1675
1677
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1678
|
+
* @internal
|
|
1676
1679
|
* @example
|
|
1677
1680
|
* `true`
|
|
1678
1681
|
*/
|
|
@@ -1805,6 +1808,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1805
1808
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1806
1809
|
/**
|
|
1807
1810
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1811
|
+
* @internal
|
|
1808
1812
|
* @example
|
|
1809
1813
|
* `true`
|
|
1810
1814
|
*/
|
|
@@ -1934,6 +1938,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1934
1938
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1935
1939
|
/**
|
|
1936
1940
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1941
|
+
* @internal
|
|
1937
1942
|
* @example
|
|
1938
1943
|
* `true`
|
|
1939
1944
|
*/
|
|
@@ -1965,16 +1970,16 @@ type ESLintSettings = InferOutput<typeof ESLintSettingsSchema>;
|
|
|
1965
1970
|
*/
|
|
1966
1971
|
declare const DEFAULT_ESLINT_REACT_SETTINGS: {
|
|
1967
1972
|
readonly importSource: "react";
|
|
1968
|
-
readonly jsxPragma: "createElement";
|
|
1969
|
-
readonly jsxPragmaFrag: "Fragment";
|
|
1970
1973
|
readonly polymorphicPropName: "as";
|
|
1971
1974
|
readonly skipImportCheck: true;
|
|
1972
|
-
readonly strict: false;
|
|
1973
1975
|
readonly version: "detect";
|
|
1974
1976
|
readonly additionalHooks: {
|
|
1975
1977
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
1976
1978
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
1977
1979
|
};
|
|
1980
|
+
readonly jsxPragma?: string | undefined;
|
|
1981
|
+
readonly jsxPragmaFrag?: string | undefined;
|
|
1982
|
+
readonly strict: boolean;
|
|
1978
1983
|
readonly additionalComponents?: {
|
|
1979
1984
|
name: string;
|
|
1980
1985
|
as?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1472,6 +1472,7 @@ declare const CustomComponentPropSchema: ObjectSchema<{
|
|
|
1472
1472
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1475
|
+
* @internal
|
|
1475
1476
|
* @example
|
|
1476
1477
|
* `true`
|
|
1477
1478
|
*/
|
|
@@ -1522,6 +1523,7 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1522
1523
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1523
1524
|
/**
|
|
1524
1525
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1526
|
+
* @internal
|
|
1525
1527
|
* @example
|
|
1526
1528
|
* `true`
|
|
1527
1529
|
*/
|
|
@@ -1673,6 +1675,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1673
1675
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1674
1676
|
/**
|
|
1675
1677
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1678
|
+
* @internal
|
|
1676
1679
|
* @example
|
|
1677
1680
|
* `true`
|
|
1678
1681
|
*/
|
|
@@ -1805,6 +1808,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1805
1808
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1806
1809
|
/**
|
|
1807
1810
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1811
|
+
* @internal
|
|
1808
1812
|
* @example
|
|
1809
1813
|
* `true`
|
|
1810
1814
|
*/
|
|
@@ -1934,6 +1938,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1934
1938
|
readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1935
1939
|
/**
|
|
1936
1940
|
* Whether the prop is controlled or not in the user-defined component.
|
|
1941
|
+
* @internal
|
|
1937
1942
|
* @example
|
|
1938
1943
|
* `true`
|
|
1939
1944
|
*/
|
|
@@ -1965,16 +1970,16 @@ type ESLintSettings = InferOutput<typeof ESLintSettingsSchema>;
|
|
|
1965
1970
|
*/
|
|
1966
1971
|
declare const DEFAULT_ESLINT_REACT_SETTINGS: {
|
|
1967
1972
|
readonly importSource: "react";
|
|
1968
|
-
readonly jsxPragma: "createElement";
|
|
1969
|
-
readonly jsxPragmaFrag: "Fragment";
|
|
1970
1973
|
readonly polymorphicPropName: "as";
|
|
1971
1974
|
readonly skipImportCheck: true;
|
|
1972
|
-
readonly strict: false;
|
|
1973
1975
|
readonly version: "detect";
|
|
1974
1976
|
readonly additionalHooks: {
|
|
1975
1977
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
1976
1978
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
1977
1979
|
};
|
|
1980
|
+
readonly jsxPragma?: string | undefined;
|
|
1981
|
+
readonly jsxPragmaFrag?: string | undefined;
|
|
1982
|
+
readonly strict: boolean;
|
|
1978
1983
|
readonly additionalComponents?: {
|
|
1979
1984
|
name: string;
|
|
1980
1985
|
as?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -430,6 +430,7 @@ var CustomComponentPropSchema = object({
|
|
|
430
430
|
as: optional(string()),
|
|
431
431
|
/**
|
|
432
432
|
* Whether the prop is controlled or not in the user-defined component.
|
|
433
|
+
* @internal
|
|
433
434
|
* @example
|
|
434
435
|
* `true`
|
|
435
436
|
*/
|
|
@@ -557,11 +558,8 @@ var ESLintSettingsSchema = optional(
|
|
|
557
558
|
var DEFAULT_ESLINT_REACT_SETTINGS = {
|
|
558
559
|
...parse(ESLintReactSettingsSchema, {}),
|
|
559
560
|
importSource: "react",
|
|
560
|
-
jsxPragma: "createElement",
|
|
561
|
-
jsxPragmaFrag: "Fragment",
|
|
562
561
|
polymorphicPropName: "as",
|
|
563
562
|
skipImportCheck: true,
|
|
564
|
-
strict: false,
|
|
565
563
|
version: "detect",
|
|
566
564
|
additionalHooks: {
|
|
567
565
|
useEffect: ["useIsomorphicLayoutEffect"],
|
package/dist/index.mjs
CHANGED
|
@@ -422,6 +422,7 @@ var CustomComponentPropSchema = object({
|
|
|
422
422
|
as: optional(string()),
|
|
423
423
|
/**
|
|
424
424
|
* Whether the prop is controlled or not in the user-defined component.
|
|
425
|
+
* @internal
|
|
425
426
|
* @example
|
|
426
427
|
* `true`
|
|
427
428
|
*/
|
|
@@ -549,11 +550,8 @@ var ESLintSettingsSchema = optional(
|
|
|
549
550
|
var DEFAULT_ESLINT_REACT_SETTINGS = {
|
|
550
551
|
...parse(ESLintReactSettingsSchema, {}),
|
|
551
552
|
importSource: "react",
|
|
552
|
-
jsxPragma: "createElement",
|
|
553
|
-
jsxPragmaFrag: "Fragment",
|
|
554
553
|
polymorphicPropName: "as",
|
|
555
554
|
skipImportCheck: true,
|
|
556
|
-
strict: false,
|
|
557
555
|
version: "detect",
|
|
558
556
|
additionalHooks: {
|
|
559
557
|
useEffect: ["useIsomorphicLayoutEffect"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.28.1-beta.
|
|
3
|
+
"version": "1.28.1-beta.4",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.25.0",
|
|
39
39
|
"picomatch": "^4.0.2",
|
|
40
40
|
"ts-pattern": "^5.6.2",
|
|
41
|
-
"@eslint-react/eff": "1.28.1-beta.
|
|
41
|
+
"@eslint-react/eff": "1.28.1-beta.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/picomatch": "^3.0.2",
|