@eslint-react/shared 1.24.0-next.13 → 1.24.0-next.15

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 CHANGED
@@ -2145,8 +2145,8 @@ interface CustomComponentPropNormalized {
2145
2145
  interface ESLintReactSettingsNormalized {
2146
2146
  additionalComponents: CustomComponentNormalized[];
2147
2147
  additionalHooks: CustomHooks;
2148
- importSource?: string;
2149
- polymorphicPropName?: string | _;
2148
+ importSource: string;
2149
+ polymorphicPropName: string | _;
2150
2150
  strictImportCheck: boolean;
2151
2151
  version: string;
2152
2152
  }
@@ -2170,7 +2170,7 @@ declare const decodeSettings: Memoized<(data: unknown) => ESLintReactSettings>;
2170
2170
  * @returns The normalized settings.
2171
2171
  * @internal
2172
2172
  */
2173
- declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2173
+ declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, importSource, polymorphicPropName, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2174
2174
  declare function getSettingsFromContext(context: {
2175
2175
  settings: unknown;
2176
2176
  }): ESLintReactSettingsNormalized;
package/dist/index.d.ts CHANGED
@@ -2145,8 +2145,8 @@ interface CustomComponentPropNormalized {
2145
2145
  interface ESLintReactSettingsNormalized {
2146
2146
  additionalComponents: CustomComponentNormalized[];
2147
2147
  additionalHooks: CustomHooks;
2148
- importSource?: string;
2149
- polymorphicPropName?: string | _;
2148
+ importSource: string;
2149
+ polymorphicPropName: string | _;
2150
2150
  strictImportCheck: boolean;
2151
2151
  version: string;
2152
2152
  }
@@ -2170,7 +2170,7 @@ declare const decodeSettings: Memoized<(data: unknown) => ESLintReactSettings>;
2170
2170
  * @returns The normalized settings.
2171
2171
  * @internal
2172
2172
  */
2173
- declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2173
+ declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, importSource, polymorphicPropName, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2174
2174
  declare function getSettingsFromContext(context: {
2175
2175
  settings: unknown;
2176
2176
  }): ESLintReactSettingsNormalized;
package/dist/index.js CHANGED
@@ -1394,6 +1394,8 @@ var toNormalizedSettings = createMemoizedFunction(
1394
1394
  ({
1395
1395
  additionalComponents = [],
1396
1396
  additionalHooks = {},
1397
+ importSource = "react",
1398
+ polymorphicPropName = "as",
1397
1399
  version,
1398
1400
  ...rest
1399
1401
  }) => {
@@ -1416,6 +1418,8 @@ var toNormalizedSettings = createMemoizedFunction(
1416
1418
  re: pm__default.default.makeRe(name, { fastpaths: true })
1417
1419
  })),
1418
1420
  additionalHooks,
1421
+ importSource,
1422
+ polymorphicPropName,
1419
1423
  version: tsPattern.match(version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => getReactVersion("19.0.0")).otherwise(eff.identity)
1420
1424
  };
1421
1425
  },
package/dist/index.mjs CHANGED
@@ -1386,6 +1386,8 @@ var toNormalizedSettings = createMemoizedFunction(
1386
1386
  ({
1387
1387
  additionalComponents = [],
1388
1388
  additionalHooks = {},
1389
+ importSource = "react",
1390
+ polymorphicPropName = "as",
1389
1391
  version,
1390
1392
  ...rest
1391
1393
  }) => {
@@ -1408,6 +1410,8 @@ var toNormalizedSettings = createMemoizedFunction(
1408
1410
  re: pm.makeRe(name, { fastpaths: true })
1409
1411
  })),
1410
1412
  additionalHooks,
1413
+ importSource,
1414
+ polymorphicPropName,
1411
1415
  version: match(version).with(P.union(P.nullish, "", "detect"), () => getReactVersion("19.0.0")).otherwise(identity)
1412
1416
  };
1413
1417
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.24.0-next.13",
3
+ "version": "1.24.0-next.15",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -36,7 +36,7 @@
36
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.13"
39
+ "@eslint-react/eff": "1.24.0-next.15"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/picomatch": "^3.0.1",