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