eslint-plugin-react-hooks-extra 1.5.14 → 1.5.15-beta.1

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.
Files changed (3) hide show
  1. package/dist/index.js +20 -20
  2. package/dist/index.mjs +20 -20
  3. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __export = (target, all2) => {
14
14
 
15
15
  // package.json
16
16
  var name = "eslint-plugin-react-hooks-extra";
17
- var version = "1.5.14";
17
+ var version = "1.5.15-beta.1";
18
18
  var createRule = shared.createRuleForPlugin("hooks-extra");
19
19
 
20
20
  // src/rules/ensure-custom-hooks-using-other-hooks.ts
@@ -55,7 +55,7 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
55
55
  defaultOptions: []
56
56
  });
57
57
 
58
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Function.js
58
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Function.js
59
59
  var Function_exports = {};
60
60
  __export(Function_exports, {
61
61
  SK: () => SK,
@@ -230,10 +230,10 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
230
230
  var hole = /* @__PURE__ */ unsafeCoerce(absurd);
231
231
  var SK = (_2, b2) => b2;
232
232
 
233
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Equivalence.js
233
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Equivalence.js
234
234
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
235
235
 
236
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/doNotation.js
236
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/doNotation.js
237
237
  var let_ = (map2) => dual(3, (self, name2, f) => map2(self, (a) => Object.assign({}, a, {
238
238
  [name2]: f(a)
239
239
  })));
@@ -244,11 +244,11 @@ var bind = (map2, flatMap2) => dual(3, (self, name2, f) => flatMap2(self, (a) =>
244
244
  [name2]: b2
245
245
  }))));
246
246
 
247
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/version.js
248
- var moduleVersion = "3.2.5";
247
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/version.js
248
+ var moduleVersion = "3.2.7";
249
249
  var getCurrentVersion = () => moduleVersion;
250
250
 
251
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/GlobalValue.js
251
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/GlobalValue.js
252
252
  var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
253
253
  if (!(globalStoreId in globalThis)) {
254
254
  globalThis[globalStoreId] = /* @__PURE__ */ new Map();
@@ -261,17 +261,17 @@ var globalValue = (id, compute) => {
261
261
  return globalStore.get(id);
262
262
  };
263
263
 
264
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Predicate.js
264
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Predicate.js
265
265
  var isFunction2 = isFunction;
266
266
  var isRecordOrArray = (input) => typeof input === "object" && input !== null;
267
267
  var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
268
268
  var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
269
269
  var isNullable = (input) => input === null || input === void 0;
270
270
 
271
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/errors.js
271
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/errors.js
272
272
  var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
273
273
 
274
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Utils.js
274
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Utils.js
275
275
  var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
276
276
  var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
277
277
  var GenKindImpl = class {
@@ -515,7 +515,7 @@ var structuralRegionState = /* @__PURE__ */ globalValue("effect/Utils/isStructur
515
515
  tester: void 0
516
516
  }));
517
517
 
518
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Hash.js
518
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Hash.js
519
519
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
520
520
  var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
521
521
  var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
@@ -604,7 +604,7 @@ var cached = function() {
604
604
  return hash2;
605
605
  };
606
606
 
607
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Equal.js
607
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Equal.js
608
608
  var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
609
609
  function equals() {
610
610
  if (arguments.length === 1) {
@@ -654,7 +654,7 @@ function compareBoth(self, that) {
654
654
  var isEqual = (u2) => hasProperty(u2, symbol2);
655
655
  var equivalence = () => equals;
656
656
 
657
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Inspectable.js
657
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Inspectable.js
658
658
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
659
659
  var toJSON = (x2) => {
660
660
  if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
@@ -666,7 +666,7 @@ var toJSON = (x2) => {
666
666
  };
667
667
  var format = (x2) => JSON.stringify(x2, null, 2);
668
668
 
669
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Pipeable.js
669
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Pipeable.js
670
670
  var pipeArguments = (self, args) => {
671
671
  switch (args.length) {
672
672
  case 1:
@@ -697,7 +697,7 @@ var pipeArguments = (self, args) => {
697
697
  }
698
698
  };
699
699
 
700
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/effectable.js
700
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/effectable.js
701
701
  var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
702
702
  var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
703
703
  var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
@@ -758,7 +758,7 @@ var EffectPrototype = {
758
758
  }
759
759
  };
760
760
 
761
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/option.js
761
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/option.js
762
762
  var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
763
763
  var CommonProto = {
764
764
  ...EffectPrototype,
@@ -816,7 +816,7 @@ var some = (value) => {
816
816
  return a;
817
817
  };
818
818
 
819
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/either.js
819
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/either.js
820
820
  var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
821
821
  var CommonProto2 = {
822
822
  ...EffectPrototype,
@@ -880,7 +880,7 @@ var right = (right2) => {
880
880
  var getLeft = (self) => isRight(self) ? none : some(self.left);
881
881
  var getRight = (self) => isLeft(self) ? none : some(self.right);
882
882
 
883
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Option.js
883
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Option.js
884
884
  var Option_exports = {};
885
885
  __export(Option_exports, {
886
886
  Do: () => Do,
@@ -942,10 +942,10 @@ __export(Option_exports, {
942
942
  zipWith: () => zipWith
943
943
  });
944
944
 
945
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Order.js
945
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Order.js
946
946
  var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
947
947
 
948
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Option.js
948
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Option.js
949
949
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
950
950
  var none2 = () => none;
951
951
  var some2 = some;
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ var __export = (target, all2) => {
12
12
 
13
13
  // package.json
14
14
  var name = "eslint-plugin-react-hooks-extra";
15
- var version = "1.5.14";
15
+ var version = "1.5.15-beta.1";
16
16
  var createRule = createRuleForPlugin("hooks-extra");
17
17
 
18
18
  // src/rules/ensure-custom-hooks-using-other-hooks.ts
@@ -53,7 +53,7 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
53
53
  defaultOptions: []
54
54
  });
55
55
 
56
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Function.js
56
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Function.js
57
57
  var Function_exports = {};
58
58
  __export(Function_exports, {
59
59
  SK: () => SK,
@@ -228,10 +228,10 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
228
228
  var hole = /* @__PURE__ */ unsafeCoerce(absurd);
229
229
  var SK = (_2, b2) => b2;
230
230
 
231
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Equivalence.js
231
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Equivalence.js
232
232
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
233
233
 
234
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/doNotation.js
234
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/doNotation.js
235
235
  var let_ = (map2) => dual(3, (self, name2, f) => map2(self, (a) => Object.assign({}, a, {
236
236
  [name2]: f(a)
237
237
  })));
@@ -242,11 +242,11 @@ var bind = (map2, flatMap2) => dual(3, (self, name2, f) => flatMap2(self, (a) =>
242
242
  [name2]: b2
243
243
  }))));
244
244
 
245
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/version.js
246
- var moduleVersion = "3.2.5";
245
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/version.js
246
+ var moduleVersion = "3.2.7";
247
247
  var getCurrentVersion = () => moduleVersion;
248
248
 
249
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/GlobalValue.js
249
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/GlobalValue.js
250
250
  var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
251
251
  if (!(globalStoreId in globalThis)) {
252
252
  globalThis[globalStoreId] = /* @__PURE__ */ new Map();
@@ -259,17 +259,17 @@ var globalValue = (id, compute) => {
259
259
  return globalStore.get(id);
260
260
  };
261
261
 
262
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Predicate.js
262
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Predicate.js
263
263
  var isFunction2 = isFunction;
264
264
  var isRecordOrArray = (input) => typeof input === "object" && input !== null;
265
265
  var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
266
266
  var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
267
267
  var isNullable = (input) => input === null || input === void 0;
268
268
 
269
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/errors.js
269
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/errors.js
270
270
  var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
271
271
 
272
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Utils.js
272
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Utils.js
273
273
  var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
274
274
  var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
275
275
  var GenKindImpl = class {
@@ -513,7 +513,7 @@ var structuralRegionState = /* @__PURE__ */ globalValue("effect/Utils/isStructur
513
513
  tester: void 0
514
514
  }));
515
515
 
516
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Hash.js
516
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Hash.js
517
517
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
518
518
  var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
519
519
  var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
@@ -602,7 +602,7 @@ var cached = function() {
602
602
  return hash2;
603
603
  };
604
604
 
605
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Equal.js
605
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Equal.js
606
606
  var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
607
607
  function equals() {
608
608
  if (arguments.length === 1) {
@@ -652,7 +652,7 @@ function compareBoth(self, that) {
652
652
  var isEqual = (u2) => hasProperty(u2, symbol2);
653
653
  var equivalence = () => equals;
654
654
 
655
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Inspectable.js
655
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Inspectable.js
656
656
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
657
657
  var toJSON = (x2) => {
658
658
  if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
@@ -664,7 +664,7 @@ var toJSON = (x2) => {
664
664
  };
665
665
  var format = (x2) => JSON.stringify(x2, null, 2);
666
666
 
667
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Pipeable.js
667
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Pipeable.js
668
668
  var pipeArguments = (self, args) => {
669
669
  switch (args.length) {
670
670
  case 1:
@@ -695,7 +695,7 @@ var pipeArguments = (self, args) => {
695
695
  }
696
696
  };
697
697
 
698
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/effectable.js
698
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/effectable.js
699
699
  var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
700
700
  var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
701
701
  var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
@@ -756,7 +756,7 @@ var EffectPrototype = {
756
756
  }
757
757
  };
758
758
 
759
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/option.js
759
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/option.js
760
760
  var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
761
761
  var CommonProto = {
762
762
  ...EffectPrototype,
@@ -814,7 +814,7 @@ var some = (value) => {
814
814
  return a;
815
815
  };
816
816
 
817
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/either.js
817
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/internal/either.js
818
818
  var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
819
819
  var CommonProto2 = {
820
820
  ...EffectPrototype,
@@ -878,7 +878,7 @@ var right = (right2) => {
878
878
  var getLeft = (self) => isRight(self) ? none : some(self.left);
879
879
  var getRight = (self) => isLeft(self) ? none : some(self.right);
880
880
 
881
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Option.js
881
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Option.js
882
882
  var Option_exports = {};
883
883
  __export(Option_exports, {
884
884
  Do: () => Do,
@@ -940,10 +940,10 @@ __export(Option_exports, {
940
940
  zipWith: () => zipWith
941
941
  });
942
942
 
943
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Order.js
943
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Order.js
944
944
  var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
945
945
 
946
- // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Option.js
946
+ // ../../../node_modules/.pnpm/effect@3.2.7/node_modules/effect/dist/esm/Option.js
947
947
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
948
948
  var none2 = () => none;
949
949
  var some2 = some;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.5.14",
3
+ "version": "1.5.15-beta.1",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -41,18 +41,18 @@
41
41
  "@typescript-eslint/types": "^7.11.0",
42
42
  "@typescript-eslint/utils": "^7.11.0",
43
43
  "string-ts": "2.1.1",
44
- "valibot": "0.31.0-rc.6",
45
- "@eslint-react/ast": "1.5.14",
46
- "@eslint-react/core": "1.5.14",
47
- "@eslint-react/jsx": "1.5.14",
48
- "@eslint-react/shared": "1.5.14",
49
- "@eslint-react/tools": "1.5.14",
50
- "@eslint-react/var": "1.5.14",
51
- "@eslint-react/types": "1.5.14"
44
+ "valibot": "0.31.0-rc.7",
45
+ "@eslint-react/ast": "1.5.15-beta.1",
46
+ "@eslint-react/jsx": "1.5.15-beta.1",
47
+ "@eslint-react/core": "1.5.15-beta.1",
48
+ "@eslint-react/shared": "1.5.15-beta.1",
49
+ "@eslint-react/tools": "1.5.15-beta.1",
50
+ "@eslint-react/types": "1.5.15-beta.1",
51
+ "@eslint-react/var": "1.5.15-beta.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "dedent": "1.5.3",
55
- "effect": "3.2.5",
55
+ "effect": "3.2.7",
56
56
  "tsup": "8.0.2"
57
57
  },
58
58
  "peerDependencies": {