@eslint-react/shared 1.28.0-next.5 → 1.28.0

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
@@ -1599,9 +1599,9 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1599
1599
  /**
1600
1600
  * Check both the shape and the import to determine if an API is from React.
1601
1601
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
1602
- * @default `false`
1602
+ * @default `true`
1603
1603
  */
1604
- readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, false>;
1604
+ readonly skipImportCheck: OptionalSchema<BooleanSchema<undefined>, true>;
1605
1605
  /**
1606
1606
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
1607
1607
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -1731,9 +1731,9 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1731
1731
  /**
1732
1732
  * Check both the shape and the import to determine if an API is from React.
1733
1733
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
1734
- * @default `false`
1734
+ * @default `true`
1735
1735
  */
1736
- readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, false>;
1736
+ readonly skipImportCheck: OptionalSchema<BooleanSchema<undefined>, true>;
1737
1737
  /**
1738
1738
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
1739
1739
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -1860,9 +1860,9 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1860
1860
  /**
1861
1861
  * Check both the shape and the import to determine if an API is from React.
1862
1862
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
1863
- * @default `false`
1863
+ * @default `true`
1864
1864
  */
1865
- readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, false>;
1865
+ readonly skipImportCheck: OptionalSchema<BooleanSchema<undefined>, true>;
1866
1866
  /**
1867
1867
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
1868
1868
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -1968,8 +1968,8 @@ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1968
1968
  readonly jsxPragma: "createElement";
1969
1969
  readonly jsxPragmaFrag: "Fragment";
1970
1970
  readonly polymorphicPropName: "as";
1971
+ readonly skipImportCheck: true;
1971
1972
  readonly strict: false;
1972
- readonly strictImportCheck: false;
1973
1973
  readonly version: "detect";
1974
1974
  readonly additionalHooks: {
1975
1975
  readonly useEffect: ["useIsomorphicLayoutEffect"];
@@ -2274,7 +2274,7 @@ interface ESLintReactSettingsNormalized {
2274
2274
  additionalHooks: CustomHooks;
2275
2275
  importSource: string;
2276
2276
  polymorphicPropName: string | _;
2277
- strictImportCheck: boolean;
2277
+ skipImportCheck: boolean;
2278
2278
  version: string;
2279
2279
  }
2280
2280
  /**
@@ -2297,7 +2297,7 @@ declare const decodeSettings: Memoized<(data: unknown) => ESLintReactSettings>;
2297
2297
  * @returns The normalized settings.
2298
2298
  * @internal
2299
2299
  */
2300
- declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, importSource, polymorphicPropName, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2300
+ declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, importSource, polymorphicPropName, skipImportCheck, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2301
2301
  declare function getSettingsFromContext(context: {
2302
2302
  settings: unknown;
2303
2303
  }): ESLintReactSettingsNormalized;
package/dist/index.d.ts CHANGED
@@ -1599,9 +1599,9 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1599
1599
  /**
1600
1600
  * Check both the shape and the import to determine if an API is from React.
1601
1601
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
1602
- * @default `false`
1602
+ * @default `true`
1603
1603
  */
1604
- readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, false>;
1604
+ readonly skipImportCheck: OptionalSchema<BooleanSchema<undefined>, true>;
1605
1605
  /**
1606
1606
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
1607
1607
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -1731,9 +1731,9 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1731
1731
  /**
1732
1732
  * Check both the shape and the import to determine if an API is from React.
1733
1733
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
1734
- * @default `false`
1734
+ * @default `true`
1735
1735
  */
1736
- readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, false>;
1736
+ readonly skipImportCheck: OptionalSchema<BooleanSchema<undefined>, true>;
1737
1737
  /**
1738
1738
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
1739
1739
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -1860,9 +1860,9 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1860
1860
  /**
1861
1861
  * Check both the shape and the import to determine if an API is from React.
1862
1862
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
1863
- * @default `false`
1863
+ * @default `true`
1864
1864
  */
1865
- readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, false>;
1865
+ readonly skipImportCheck: OptionalSchema<BooleanSchema<undefined>, true>;
1866
1866
  /**
1867
1867
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
1868
1868
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -1968,8 +1968,8 @@ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1968
1968
  readonly jsxPragma: "createElement";
1969
1969
  readonly jsxPragmaFrag: "Fragment";
1970
1970
  readonly polymorphicPropName: "as";
1971
+ readonly skipImportCheck: true;
1971
1972
  readonly strict: false;
1972
- readonly strictImportCheck: false;
1973
1973
  readonly version: "detect";
1974
1974
  readonly additionalHooks: {
1975
1975
  readonly useEffect: ["useIsomorphicLayoutEffect"];
@@ -2274,7 +2274,7 @@ interface ESLintReactSettingsNormalized {
2274
2274
  additionalHooks: CustomHooks;
2275
2275
  importSource: string;
2276
2276
  polymorphicPropName: string | _;
2277
- strictImportCheck: boolean;
2277
+ skipImportCheck: boolean;
2278
2278
  version: string;
2279
2279
  }
2280
2280
  /**
@@ -2297,7 +2297,7 @@ declare const decodeSettings: Memoized<(data: unknown) => ESLintReactSettings>;
2297
2297
  * @returns The normalized settings.
2298
2298
  * @internal
2299
2299
  */
2300
- declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, importSource, polymorphicPropName, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2300
+ declare const toNormalizedSettings: Memoized<({ additionalComponents, additionalHooks, importSource, polymorphicPropName, skipImportCheck, version, ...rest }: ESLintReactSettings) => ESLintReactSettingsNormalized>;
2301
2301
  declare function getSettingsFromContext(context: {
2302
2302
  settings: unknown;
2303
2303
  }): ESLintReactSettingsNormalized;
package/dist/index.js CHANGED
@@ -523,9 +523,9 @@ var ESLintReactSettingsSchema = object({
523
523
  /**
524
524
  * Check both the shape and the import to determine if an API is from React.
525
525
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
526
- * @default `false`
526
+ * @default `true`
527
527
  */
528
- strictImportCheck: optional(boolean(), false),
528
+ skipImportCheck: optional(boolean(), true),
529
529
  /**
530
530
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
531
531
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -560,8 +560,8 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
560
560
  jsxPragma: "createElement",
561
561
  jsxPragmaFrag: "Fragment",
562
562
  polymorphicPropName: "as",
563
+ skipImportCheck: true,
563
564
  strict: false,
564
- strictImportCheck: false,
565
565
  version: "detect",
566
566
  additionalHooks: {
567
567
  useEffect: ["useIsomorphicLayoutEffect"],
@@ -1277,6 +1277,7 @@ var toNormalizedSettings = createMemoizedFunction(
1277
1277
  additionalHooks = {},
1278
1278
  importSource = "react",
1279
1279
  polymorphicPropName = "as",
1280
+ skipImportCheck = true,
1280
1281
  version,
1281
1282
  ...rest
1282
1283
  }) => {
@@ -1301,6 +1302,7 @@ var toNormalizedSettings = createMemoizedFunction(
1301
1302
  additionalHooks,
1302
1303
  importSource,
1303
1304
  polymorphicPropName,
1305
+ skipImportCheck,
1304
1306
  version: tsPattern.match(version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => getReactVersion("19.0.0")).otherwise(eff.identity)
1305
1307
  };
1306
1308
  },
package/dist/index.mjs CHANGED
@@ -515,9 +515,9 @@ var ESLintReactSettingsSchema = object({
515
515
  /**
516
516
  * Check both the shape and the import to determine if an API is from React.
517
517
  * @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
518
- * @default `false`
518
+ * @default `true`
519
519
  */
520
- strictImportCheck: optional(boolean(), false),
520
+ skipImportCheck: optional(boolean(), true),
521
521
  /**
522
522
  * React version to use, "detect" means auto detect React version from the project’s dependencies.
523
523
  * If `importSource` is specified, an equivalent version of React should be provided here.
@@ -552,8 +552,8 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
552
552
  jsxPragma: "createElement",
553
553
  jsxPragmaFrag: "Fragment",
554
554
  polymorphicPropName: "as",
555
+ skipImportCheck: true,
555
556
  strict: false,
556
- strictImportCheck: false,
557
557
  version: "detect",
558
558
  additionalHooks: {
559
559
  useEffect: ["useIsomorphicLayoutEffect"],
@@ -1269,6 +1269,7 @@ var toNormalizedSettings = createMemoizedFunction(
1269
1269
  additionalHooks = {},
1270
1270
  importSource = "react",
1271
1271
  polymorphicPropName = "as",
1272
+ skipImportCheck = true,
1272
1273
  version,
1273
1274
  ...rest
1274
1275
  }) => {
@@ -1293,6 +1294,7 @@ var toNormalizedSettings = createMemoizedFunction(
1293
1294
  additionalHooks,
1294
1295
  importSource,
1295
1296
  polymorphicPropName,
1297
+ skipImportCheck,
1296
1298
  version: match(version).with(P.union(P.nullish, "", "detect"), () => getReactVersion("19.0.0")).otherwise(identity)
1297
1299
  };
1298
1300
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.28.0-next.5",
3
+ "version": "1.28.0",
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.0-next.5"
41
+ "@eslint-react/eff": "1.28.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/picomatch": "^3.0.2",