@eslint-react/shared 1.26.3-next.1 → 1.26.3-next.11

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
@@ -1614,7 +1614,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1614
1614
  /**
1615
1615
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1616
1616
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1617
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1617
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1618
1618
  */
1619
1619
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1620
1620
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1744,7 +1744,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1744
1744
  /**
1745
1745
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1746
1746
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1747
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1747
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1748
1748
  */
1749
1749
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1750
1750
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1871,7 +1871,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1871
1871
  /**
1872
1872
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1873
1873
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1874
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1874
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1875
1875
  */
1876
1876
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1877
1877
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1970,6 +1970,7 @@ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1970
1970
  readonly strictImportCheck: false;
1971
1971
  readonly version: "detect";
1972
1972
  readonly additionalHooks: {
1973
+ readonly useEffect: ["useIsomorphicLayoutEffect"];
1973
1974
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1974
1975
  };
1975
1976
  readonly additionalComponents?: {
package/dist/index.d.ts CHANGED
@@ -1614,7 +1614,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1614
1614
  /**
1615
1615
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1616
1616
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1617
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1617
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1618
1618
  */
1619
1619
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1620
1620
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1744,7 +1744,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1744
1744
  /**
1745
1745
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1746
1746
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1747
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1747
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1748
1748
  */
1749
1749
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1750
1750
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1871,7 +1871,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1871
1871
  /**
1872
1872
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1873
1873
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1874
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1874
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1875
1875
  */
1876
1876
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1877
1877
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1970,6 +1970,7 @@ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1970
1970
  readonly strictImportCheck: false;
1971
1971
  readonly version: "detect";
1972
1972
  readonly additionalHooks: {
1973
+ readonly useEffect: ["useIsomorphicLayoutEffect"];
1973
1974
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1974
1975
  };
1975
1976
  readonly additionalComponents?: {
package/dist/index.js CHANGED
@@ -248,7 +248,7 @@ function getReactVersion(fallback = "19.0.0") {
248
248
  }
249
249
  }
250
250
 
251
- // ../../node_modules/.pnpm/valibot@1.0.0-beta.15_typescript@5.7.3/node_modules/valibot/dist/index.js
251
+ // ../../node_modules/.pnpm/valibot@1.0.0-rc.0_typescript@5.7.3/node_modules/valibot/dist/index.js
252
252
  var store;
253
253
  // @__NO_SIDE_EFFECTS__
254
254
  function getGlobalConfig(config2) {
@@ -465,7 +465,7 @@ function object(entries, message) {
465
465
  for (const key in this.entries) {
466
466
  const valueSchema = this.entries[key];
467
467
  if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && // @ts-expect-error
468
- valueSchema.default !== undefined) {
468
+ valueSchema.default !== void 0) {
469
469
  const value2 = key in input ? (
470
470
  // @ts-expect-error
471
471
  input[key]
@@ -499,11 +499,11 @@ function object(entries, message) {
499
499
  dataset.typed = false;
500
500
  }
501
501
  dataset.value[key] = valueDataset.value;
502
- } else if (valueSchema.fallback !== undefined) {
502
+ } else if (valueSchema.fallback !== void 0) {
503
503
  dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);
504
504
  } else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") {
505
505
  _addIssue(this, "key", dataset, config2, {
506
- input: undefined,
506
+ input: void 0,
507
507
  expected: `"${key}"`,
508
508
  path: [
509
509
  {
@@ -542,11 +542,11 @@ function optional(wrapped, default_) {
542
542
  return /* @__PURE__ */ _getStandardProps(this);
543
543
  },
544
544
  "~run"(dataset, config2) {
545
- if (dataset.value === undefined) {
546
- if (this.default !== undefined) {
545
+ if (dataset.value === void 0) {
546
+ if (this.default !== void 0) {
547
547
  dataset.value = /* @__PURE__ */ getDefault(this, dataset, config2);
548
548
  }
549
- if (dataset.value === undefined) {
549
+ if (dataset.value === void 0) {
550
550
  dataset.typed = true;
551
551
  return dataset;
552
552
  }
@@ -705,7 +705,7 @@ var ESLintReactSettingsSchema = object({
705
705
  /**
706
706
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
707
707
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
708
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
708
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
709
709
  */
710
710
  additionalHooks: optional(CustomHooksSchema),
711
711
  /**
@@ -733,6 +733,7 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
733
733
  strictImportCheck: false,
734
734
  version: "detect",
735
735
  additionalHooks: {
736
+ useEffect: ["useIsomorphicLayoutEffect"],
736
737
  useLayoutEffect: ["useIsomorphicLayoutEffect"]
737
738
  }
738
739
  };
@@ -1076,7 +1077,7 @@ function createIsEqual(_a) {
1076
1077
  var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
1077
1078
  if (createState) {
1078
1079
  return function isEqual(a, b) {
1079
- var _a2 = createState(), _b = _a2.cache, cache = _b === undefined ? circular ? /* @__PURE__ */ new WeakMap() : undefined : _b, meta = _a2.meta;
1080
+ var _a2 = createState(), _b = _a2.cache, cache = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
1080
1081
  return comparator(a, b, {
1081
1082
  cache,
1082
1083
  equals,
@@ -1090,15 +1091,15 @@ function createIsEqual(_a) {
1090
1091
  return comparator(a, b, {
1091
1092
  cache: /* @__PURE__ */ new WeakMap(),
1092
1093
  equals,
1093
- meta: undefined,
1094
+ meta: void 0,
1094
1095
  strict
1095
1096
  });
1096
1097
  };
1097
1098
  }
1098
1099
  var state = {
1099
- cache: undefined,
1100
+ cache: void 0,
1100
1101
  equals,
1101
- meta: undefined,
1102
+ meta: void 0,
1102
1103
  strict
1103
1104
  };
1104
1105
  return function isEqual(a, b) {
@@ -1137,10 +1138,10 @@ createCustomEqual({
1137
1138
  strict: true
1138
1139
  });
1139
1140
  function createCustomEqual(options) {
1140
- if (options === undefined) {
1141
+ if (options === void 0) {
1141
1142
  options = {};
1142
1143
  }
1143
- var _a = options.circular, circular = _a === undefined ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === undefined ? false : _b;
1144
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
1144
1145
  var config = createEqualityComparatorConfig(options);
1145
1146
  var comparator = createEqualityComparator(config);
1146
1147
  var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
@@ -1370,7 +1371,7 @@ var Cache = (
1370
1371
  }()
1371
1372
  );
1372
1373
  function createMemoizedFunction(fn, options) {
1373
- if (options === undefined) {
1374
+ if (options === void 0) {
1374
1375
  options = {};
1375
1376
  }
1376
1377
  if (isMemoized(fn)) {
@@ -1379,7 +1380,7 @@ function createMemoizedFunction(fn, options) {
1379
1380
  if (typeof fn !== "function") {
1380
1381
  throw new TypeError("You must pass a function to `memoize`.");
1381
1382
  }
1382
- var _a = options.isEqual, isEqual = _a === undefined ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === undefined ? false : _b, _c = options.maxSize, maxSize = _c === undefined ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;
1383
+ var _a = options.isEqual, isEqual = _a === void 0 ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;
1383
1384
  var normalizedOptions = mergeOptions({
1384
1385
  isEqual,
1385
1386
  isMatchingKey,
package/dist/index.mjs CHANGED
@@ -240,7 +240,7 @@ function getReactVersion(fallback = "19.0.0") {
240
240
  }
241
241
  }
242
242
 
243
- // ../../node_modules/.pnpm/valibot@1.0.0-beta.15_typescript@5.7.3/node_modules/valibot/dist/index.js
243
+ // ../../node_modules/.pnpm/valibot@1.0.0-rc.0_typescript@5.7.3/node_modules/valibot/dist/index.js
244
244
  var store;
245
245
  // @__NO_SIDE_EFFECTS__
246
246
  function getGlobalConfig(config2) {
@@ -457,7 +457,7 @@ function object(entries, message) {
457
457
  for (const key in this.entries) {
458
458
  const valueSchema = this.entries[key];
459
459
  if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && // @ts-expect-error
460
- valueSchema.default !== undefined) {
460
+ valueSchema.default !== void 0) {
461
461
  const value2 = key in input ? (
462
462
  // @ts-expect-error
463
463
  input[key]
@@ -491,11 +491,11 @@ function object(entries, message) {
491
491
  dataset.typed = false;
492
492
  }
493
493
  dataset.value[key] = valueDataset.value;
494
- } else if (valueSchema.fallback !== undefined) {
494
+ } else if (valueSchema.fallback !== void 0) {
495
495
  dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);
496
496
  } else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") {
497
497
  _addIssue(this, "key", dataset, config2, {
498
- input: undefined,
498
+ input: void 0,
499
499
  expected: `"${key}"`,
500
500
  path: [
501
501
  {
@@ -534,11 +534,11 @@ function optional(wrapped, default_) {
534
534
  return /* @__PURE__ */ _getStandardProps(this);
535
535
  },
536
536
  "~run"(dataset, config2) {
537
- if (dataset.value === undefined) {
538
- if (this.default !== undefined) {
537
+ if (dataset.value === void 0) {
538
+ if (this.default !== void 0) {
539
539
  dataset.value = /* @__PURE__ */ getDefault(this, dataset, config2);
540
540
  }
541
- if (dataset.value === undefined) {
541
+ if (dataset.value === void 0) {
542
542
  dataset.typed = true;
543
543
  return dataset;
544
544
  }
@@ -697,7 +697,7 @@ var ESLintReactSettingsSchema = object({
697
697
  /**
698
698
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
699
699
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
700
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
700
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
701
701
  */
702
702
  additionalHooks: optional(CustomHooksSchema),
703
703
  /**
@@ -725,6 +725,7 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
725
725
  strictImportCheck: false,
726
726
  version: "detect",
727
727
  additionalHooks: {
728
+ useEffect: ["useIsomorphicLayoutEffect"],
728
729
  useLayoutEffect: ["useIsomorphicLayoutEffect"]
729
730
  }
730
731
  };
@@ -1068,7 +1069,7 @@ function createIsEqual(_a) {
1068
1069
  var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
1069
1070
  if (createState) {
1070
1071
  return function isEqual(a, b) {
1071
- var _a2 = createState(), _b = _a2.cache, cache = _b === undefined ? circular ? /* @__PURE__ */ new WeakMap() : undefined : _b, meta = _a2.meta;
1072
+ var _a2 = createState(), _b = _a2.cache, cache = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
1072
1073
  return comparator(a, b, {
1073
1074
  cache,
1074
1075
  equals,
@@ -1082,15 +1083,15 @@ function createIsEqual(_a) {
1082
1083
  return comparator(a, b, {
1083
1084
  cache: /* @__PURE__ */ new WeakMap(),
1084
1085
  equals,
1085
- meta: undefined,
1086
+ meta: void 0,
1086
1087
  strict
1087
1088
  });
1088
1089
  };
1089
1090
  }
1090
1091
  var state = {
1091
- cache: undefined,
1092
+ cache: void 0,
1092
1093
  equals,
1093
- meta: undefined,
1094
+ meta: void 0,
1094
1095
  strict
1095
1096
  };
1096
1097
  return function isEqual(a, b) {
@@ -1129,10 +1130,10 @@ createCustomEqual({
1129
1130
  strict: true
1130
1131
  });
1131
1132
  function createCustomEqual(options) {
1132
- if (options === undefined) {
1133
+ if (options === void 0) {
1133
1134
  options = {};
1134
1135
  }
1135
- var _a = options.circular, circular = _a === undefined ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === undefined ? false : _b;
1136
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
1136
1137
  var config = createEqualityComparatorConfig(options);
1137
1138
  var comparator = createEqualityComparator(config);
1138
1139
  var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
@@ -1362,7 +1363,7 @@ var Cache = (
1362
1363
  }()
1363
1364
  );
1364
1365
  function createMemoizedFunction(fn, options) {
1365
- if (options === undefined) {
1366
+ if (options === void 0) {
1366
1367
  options = {};
1367
1368
  }
1368
1369
  if (isMemoized(fn)) {
@@ -1371,7 +1372,7 @@ function createMemoizedFunction(fn, options) {
1371
1372
  if (typeof fn !== "function") {
1372
1373
  throw new TypeError("You must pass a function to `memoize`.");
1373
1374
  }
1374
- var _a = options.isEqual, isEqual = _a === undefined ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === undefined ? false : _b, _c = options.maxSize, maxSize = _c === undefined ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;
1375
+ var _a = options.isEqual, isEqual = _a === void 0 ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;
1375
1376
  var normalizedOptions = mergeOptions({
1376
1377
  isEqual,
1377
1378
  isMatchingKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.26.3-next.1",
3
+ "version": "1.26.3-next.11",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -35,19 +35,19 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/utils": "^8.23.0",
38
+ "@typescript-eslint/utils": "^8.24.0",
39
39
  "picomatch": "^4.0.2",
40
40
  "ts-pattern": "^5.6.2",
41
- "@eslint-react/eff": "1.26.3-next.1"
41
+ "@eslint-react/eff": "1.26.3-next.11"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/picomatch": "^3.0.2",
45
45
  "fast-equals": "^5.2.2",
46
46
  "micro-memoize": "^4.1.3",
47
47
  "tsup": "^8.3.6",
48
- "type-fest": "^4.33.0",
49
- "valibot": "^1.0.0-beta.15",
50
- "@workspace/configs": "0.0.0"
48
+ "type-fest": "^4.34.1",
49
+ "valibot": "^1.0.0-rc.0",
50
+ "@local/configs": "0.0.0"
51
51
  },
52
52
  "engines": {
53
53
  "bun": ">=1.0.15",