eslint-plugin-react-hooks-extra 1.5.10-next.3 → 1.5.10

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 +146 -49
  2. package/dist/index.mjs +146 -49
  3. package/package.json +9 -9
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.10-next.3";
18
+ var version = "1.5.10";
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.0.5/node_modules/effect/dist/esm/Function.js
59
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Function.js
60
60
  var Function_exports = {};
61
61
  __export(Function_exports, {
62
62
  SK: () => SK,
@@ -231,14 +231,14 @@ 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.0.5/node_modules/effect/dist/esm/Equivalence.js
234
+ // ../../../node_modules/.pnpm/effect@3.0.7/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.0.5/node_modules/effect/dist/esm/internal/version.js
238
- var moduleVersion = "3.0.5";
237
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/version.js
238
+ var moduleVersion = "3.0.7";
239
239
  var getCurrentVersion = () => moduleVersion;
240
240
 
241
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/GlobalValue.js
241
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/GlobalValue.js
242
242
  var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
243
243
  if (!(globalStoreId in globalThis)) {
244
244
  globalThis[globalStoreId] = /* @__PURE__ */ new Map();
@@ -251,12 +251,106 @@ var globalValue = (id, compute) => {
251
251
  return globalStore.get(id);
252
252
  };
253
253
 
254
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Predicate.js
254
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Predicate.js
255
255
  var isFunction2 = isFunction;
256
256
  var isRecordOrArray = (input) => typeof input === "object" && input !== null;
257
257
  var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
258
258
  var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
259
259
  var isNullable = (input) => input === null || input === void 0;
260
+
261
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/errors.js
262
+ var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
263
+
264
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Utils.js
265
+ var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
266
+ var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
267
+ var GenKindImpl = class {
268
+ value;
269
+ constructor(value) {
270
+ this.value = value;
271
+ }
272
+ /**
273
+ * @since 2.0.0
274
+ */
275
+ get _F() {
276
+ return identity;
277
+ }
278
+ /**
279
+ * @since 2.0.0
280
+ */
281
+ get _R() {
282
+ return (_2) => _2;
283
+ }
284
+ /**
285
+ * @since 2.0.0
286
+ */
287
+ get _O() {
288
+ return (_2) => _2;
289
+ }
290
+ /**
291
+ * @since 2.0.0
292
+ */
293
+ get _E() {
294
+ return (_2) => _2;
295
+ }
296
+ /**
297
+ * @since 2.0.0
298
+ */
299
+ [GenKindTypeId] = GenKindTypeId;
300
+ /**
301
+ * @since 2.0.0
302
+ */
303
+ [Symbol.iterator]() {
304
+ return new SingleShotGen(this);
305
+ }
306
+ };
307
+ var SingleShotGen = class _SingleShotGen {
308
+ self;
309
+ called = false;
310
+ constructor(self) {
311
+ this.self = self;
312
+ }
313
+ /**
314
+ * @since 2.0.0
315
+ */
316
+ next(a) {
317
+ return this.called ? {
318
+ value: a,
319
+ done: true
320
+ } : (this.called = true, {
321
+ value: this.self,
322
+ done: false
323
+ });
324
+ }
325
+ /**
326
+ * @since 2.0.0
327
+ */
328
+ return(a) {
329
+ return {
330
+ value: a,
331
+ done: true
332
+ };
333
+ }
334
+ /**
335
+ * @since 2.0.0
336
+ */
337
+ throw(e2) {
338
+ throw e2;
339
+ }
340
+ /**
341
+ * @since 2.0.0
342
+ */
343
+ [Symbol.iterator]() {
344
+ return new _SingleShotGen(this.self);
345
+ }
346
+ };
347
+ var adapter = () => function() {
348
+ let x2 = arguments[0];
349
+ for (let i2 = 1; i2 < arguments.length; i2++) {
350
+ x2 = arguments[i2](x2);
351
+ }
352
+ return new GenKindImpl(x2);
353
+ };
260
354
  var defaultIncHi = 335903614;
261
355
  var defaultIncLo = 4150755663;
262
356
  var MUL_HI = 1481765933 >>> 0;
@@ -384,8 +478,30 @@ function add64(out, aHi, aLo, bHi, bLo) {
384
478
  out[0] = hi;
385
479
  out[1] = lo;
386
480
  }
481
+ var YieldWrapTypeId = /* @__PURE__ */ Symbol.for("effect/Utils/YieldWrap");
482
+ var YieldWrap = class {
483
+ /**
484
+ * @since 3.0.6
485
+ */
486
+ #value;
487
+ constructor(value) {
488
+ this.#value = value;
489
+ }
490
+ /**
491
+ * @since 3.0.6
492
+ */
493
+ [YieldWrapTypeId]() {
494
+ return this.#value;
495
+ }
496
+ };
497
+ function yieldWrapGet(self) {
498
+ if (typeof self === "object" && self !== null && YieldWrapTypeId in self) {
499
+ return self[YieldWrapTypeId]();
500
+ }
501
+ throw new Error(getBugErrorMessage("yieldWrapGet"));
502
+ }
387
503
 
388
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Hash.js
504
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Hash.js
389
505
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
390
506
  var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
391
507
  var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
@@ -471,7 +587,7 @@ var cached = function() {
471
587
  return hash2;
472
588
  };
473
589
 
474
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Equal.js
590
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Equal.js
475
591
  var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
476
592
  function equals() {
477
593
  if (arguments.length === 1) {
@@ -497,7 +613,7 @@ function compareBoth(self, that) {
497
613
  var isEqual = (u2) => hasProperty(u2, symbol2);
498
614
  var equivalence = () => equals;
499
615
 
500
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Inspectable.js
616
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Inspectable.js
501
617
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
502
618
  var toJSON = (x2) => {
503
619
  if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
@@ -509,7 +625,7 @@ var toJSON = (x2) => {
509
625
  };
510
626
  var format = (x2) => JSON.stringify(x2, null, 2);
511
627
 
512
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Pipeable.js
628
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Pipeable.js
513
629
  var pipeArguments = (self, args) => {
514
630
  switch (args.length) {
515
631
  case 1:
@@ -540,37 +656,7 @@ var pipeArguments = (self, args) => {
540
656
  }
541
657
  };
542
658
 
543
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/singleShotGen.js
544
- var SingleShotGen2 = class _SingleShotGen {
545
- self;
546
- called = false;
547
- constructor(self) {
548
- this.self = self;
549
- }
550
- next(a) {
551
- return this.called ? {
552
- value: a,
553
- done: true
554
- } : (this.called = true, {
555
- value: this.self,
556
- done: false
557
- });
558
- }
559
- return(a) {
560
- return {
561
- value: a,
562
- done: true
563
- };
564
- }
565
- throw(e2) {
566
- throw e2;
567
- }
568
- [Symbol.iterator]() {
569
- return new _SingleShotGen(this.self);
570
- }
571
- };
572
-
573
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/effectable.js
659
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/effectable.js
574
660
  var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
575
661
  var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
576
662
  var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
@@ -624,14 +710,14 @@ var EffectPrototype = {
624
710
  return cached(this, random(this));
625
711
  },
626
712
  [Symbol.iterator]() {
627
- return new SingleShotGen2(this);
713
+ return new SingleShotGen(new YieldWrap(this));
628
714
  },
629
715
  pipe() {
630
716
  return pipeArguments(this, arguments);
631
717
  }
632
718
  };
633
719
 
634
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/option.js
720
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/option.js
635
721
  var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
636
722
  var CommonProto = {
637
723
  ...EffectPrototype,
@@ -689,7 +775,7 @@ var some = (value) => {
689
775
  return a;
690
776
  };
691
777
 
692
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/either.js
778
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/either.js
693
779
  var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
694
780
  var CommonProto2 = {
695
781
  ...EffectPrototype,
@@ -753,7 +839,7 @@ var right = (right2) => {
753
839
  var getLeft = (self) => isRight(self) ? none : some(self.left);
754
840
  var getRight = (self) => isLeft(self) ? none : some(self.right);
755
841
 
756
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
842
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
757
843
  var Option_exports = {};
758
844
  __export(Option_exports, {
759
845
  Do: () => Do,
@@ -815,10 +901,10 @@ __export(Option_exports, {
815
901
  zipWith: () => zipWith
816
902
  });
817
903
 
818
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Order.js
904
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Order.js
819
905
  var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
820
906
 
821
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
907
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
822
908
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
823
909
  var none2 = () => none;
824
910
  var some2 = some;
@@ -958,13 +1044,19 @@ var bind = /* @__PURE__ */ dual(3, (self, name2, f) => flatMap(self, (a) => map(
958
1044
  [name2]: b2
959
1045
  }))));
960
1046
  var Do = /* @__PURE__ */ some2({});
1047
+ var adapter2 = /* @__PURE__ */ adapter();
961
1048
  var gen = (f) => {
962
- const iterator = f(pipe);
1049
+ const iterator = f(adapter2);
963
1050
  let state = iterator.next();
964
1051
  if (state.done) {
965
1052
  return some2(state.value);
966
1053
  } else {
967
1054
  let current = state.value;
1055
+ if (isGenKind(current)) {
1056
+ current = current.value;
1057
+ } else {
1058
+ current = yieldWrapGet(current);
1059
+ }
968
1060
  if (isNone2(current)) {
969
1061
  return current;
970
1062
  }
@@ -972,6 +1064,11 @@ var gen = (f) => {
972
1064
  state = iterator.next(current.value);
973
1065
  if (!state.done) {
974
1066
  current = state.value;
1067
+ if (isGenKind(current)) {
1068
+ current = current.value;
1069
+ } else {
1070
+ current = yieldWrapGet(current);
1071
+ }
975
1072
  if (isNone2(current)) {
976
1073
  return current;
977
1074
  }
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.10-next.3";
16
+ var version = "1.5.10";
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.0.5/node_modules/effect/dist/esm/Function.js
57
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Function.js
58
58
  var Function_exports = {};
59
59
  __export(Function_exports, {
60
60
  SK: () => SK,
@@ -229,14 +229,14 @@ 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.0.5/node_modules/effect/dist/esm/Equivalence.js
232
+ // ../../../node_modules/.pnpm/effect@3.0.7/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.0.5/node_modules/effect/dist/esm/internal/version.js
236
- var moduleVersion = "3.0.5";
235
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/version.js
236
+ var moduleVersion = "3.0.7";
237
237
  var getCurrentVersion = () => moduleVersion;
238
238
 
239
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/GlobalValue.js
239
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/GlobalValue.js
240
240
  var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
241
241
  if (!(globalStoreId in globalThis)) {
242
242
  globalThis[globalStoreId] = /* @__PURE__ */ new Map();
@@ -249,12 +249,106 @@ var globalValue = (id, compute) => {
249
249
  return globalStore.get(id);
250
250
  };
251
251
 
252
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Predicate.js
252
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Predicate.js
253
253
  var isFunction2 = isFunction;
254
254
  var isRecordOrArray = (input) => typeof input === "object" && input !== null;
255
255
  var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
256
256
  var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
257
257
  var isNullable = (input) => input === null || input === void 0;
258
+
259
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/errors.js
260
+ var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
261
+
262
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Utils.js
263
+ var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
264
+ var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
265
+ var GenKindImpl = class {
266
+ value;
267
+ constructor(value) {
268
+ this.value = value;
269
+ }
270
+ /**
271
+ * @since 2.0.0
272
+ */
273
+ get _F() {
274
+ return identity;
275
+ }
276
+ /**
277
+ * @since 2.0.0
278
+ */
279
+ get _R() {
280
+ return (_2) => _2;
281
+ }
282
+ /**
283
+ * @since 2.0.0
284
+ */
285
+ get _O() {
286
+ return (_2) => _2;
287
+ }
288
+ /**
289
+ * @since 2.0.0
290
+ */
291
+ get _E() {
292
+ return (_2) => _2;
293
+ }
294
+ /**
295
+ * @since 2.0.0
296
+ */
297
+ [GenKindTypeId] = GenKindTypeId;
298
+ /**
299
+ * @since 2.0.0
300
+ */
301
+ [Symbol.iterator]() {
302
+ return new SingleShotGen(this);
303
+ }
304
+ };
305
+ var SingleShotGen = class _SingleShotGen {
306
+ self;
307
+ called = false;
308
+ constructor(self) {
309
+ this.self = self;
310
+ }
311
+ /**
312
+ * @since 2.0.0
313
+ */
314
+ next(a) {
315
+ return this.called ? {
316
+ value: a,
317
+ done: true
318
+ } : (this.called = true, {
319
+ value: this.self,
320
+ done: false
321
+ });
322
+ }
323
+ /**
324
+ * @since 2.0.0
325
+ */
326
+ return(a) {
327
+ return {
328
+ value: a,
329
+ done: true
330
+ };
331
+ }
332
+ /**
333
+ * @since 2.0.0
334
+ */
335
+ throw(e2) {
336
+ throw e2;
337
+ }
338
+ /**
339
+ * @since 2.0.0
340
+ */
341
+ [Symbol.iterator]() {
342
+ return new _SingleShotGen(this.self);
343
+ }
344
+ };
345
+ var adapter = () => function() {
346
+ let x2 = arguments[0];
347
+ for (let i2 = 1; i2 < arguments.length; i2++) {
348
+ x2 = arguments[i2](x2);
349
+ }
350
+ return new GenKindImpl(x2);
351
+ };
258
352
  var defaultIncHi = 335903614;
259
353
  var defaultIncLo = 4150755663;
260
354
  var MUL_HI = 1481765933 >>> 0;
@@ -382,8 +476,30 @@ function add64(out, aHi, aLo, bHi, bLo) {
382
476
  out[0] = hi;
383
477
  out[1] = lo;
384
478
  }
479
+ var YieldWrapTypeId = /* @__PURE__ */ Symbol.for("effect/Utils/YieldWrap");
480
+ var YieldWrap = class {
481
+ /**
482
+ * @since 3.0.6
483
+ */
484
+ #value;
485
+ constructor(value) {
486
+ this.#value = value;
487
+ }
488
+ /**
489
+ * @since 3.0.6
490
+ */
491
+ [YieldWrapTypeId]() {
492
+ return this.#value;
493
+ }
494
+ };
495
+ function yieldWrapGet(self) {
496
+ if (typeof self === "object" && self !== null && YieldWrapTypeId in self) {
497
+ return self[YieldWrapTypeId]();
498
+ }
499
+ throw new Error(getBugErrorMessage("yieldWrapGet"));
500
+ }
385
501
 
386
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Hash.js
502
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Hash.js
387
503
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
388
504
  var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
389
505
  var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
@@ -469,7 +585,7 @@ var cached = function() {
469
585
  return hash2;
470
586
  };
471
587
 
472
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Equal.js
588
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Equal.js
473
589
  var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
474
590
  function equals() {
475
591
  if (arguments.length === 1) {
@@ -495,7 +611,7 @@ function compareBoth(self, that) {
495
611
  var isEqual = (u2) => hasProperty(u2, symbol2);
496
612
  var equivalence = () => equals;
497
613
 
498
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Inspectable.js
614
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Inspectable.js
499
615
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
500
616
  var toJSON = (x2) => {
501
617
  if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
@@ -507,7 +623,7 @@ var toJSON = (x2) => {
507
623
  };
508
624
  var format = (x2) => JSON.stringify(x2, null, 2);
509
625
 
510
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Pipeable.js
626
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Pipeable.js
511
627
  var pipeArguments = (self, args) => {
512
628
  switch (args.length) {
513
629
  case 1:
@@ -538,37 +654,7 @@ var pipeArguments = (self, args) => {
538
654
  }
539
655
  };
540
656
 
541
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/singleShotGen.js
542
- var SingleShotGen2 = class _SingleShotGen {
543
- self;
544
- called = false;
545
- constructor(self) {
546
- this.self = self;
547
- }
548
- next(a) {
549
- return this.called ? {
550
- value: a,
551
- done: true
552
- } : (this.called = true, {
553
- value: this.self,
554
- done: false
555
- });
556
- }
557
- return(a) {
558
- return {
559
- value: a,
560
- done: true
561
- };
562
- }
563
- throw(e2) {
564
- throw e2;
565
- }
566
- [Symbol.iterator]() {
567
- return new _SingleShotGen(this.self);
568
- }
569
- };
570
-
571
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/effectable.js
657
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/effectable.js
572
658
  var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
573
659
  var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
574
660
  var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
@@ -622,14 +708,14 @@ var EffectPrototype = {
622
708
  return cached(this, random(this));
623
709
  },
624
710
  [Symbol.iterator]() {
625
- return new SingleShotGen2(this);
711
+ return new SingleShotGen(new YieldWrap(this));
626
712
  },
627
713
  pipe() {
628
714
  return pipeArguments(this, arguments);
629
715
  }
630
716
  };
631
717
 
632
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/option.js
718
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/option.js
633
719
  var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
634
720
  var CommonProto = {
635
721
  ...EffectPrototype,
@@ -687,7 +773,7 @@ var some = (value) => {
687
773
  return a;
688
774
  };
689
775
 
690
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/either.js
776
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/either.js
691
777
  var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
692
778
  var CommonProto2 = {
693
779
  ...EffectPrototype,
@@ -751,7 +837,7 @@ var right = (right2) => {
751
837
  var getLeft = (self) => isRight(self) ? none : some(self.left);
752
838
  var getRight = (self) => isLeft(self) ? none : some(self.right);
753
839
 
754
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
840
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
755
841
  var Option_exports = {};
756
842
  __export(Option_exports, {
757
843
  Do: () => Do,
@@ -813,10 +899,10 @@ __export(Option_exports, {
813
899
  zipWith: () => zipWith
814
900
  });
815
901
 
816
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Order.js
902
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Order.js
817
903
  var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
818
904
 
819
- // ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
905
+ // ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
820
906
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
821
907
  var none2 = () => none;
822
908
  var some2 = some;
@@ -956,13 +1042,19 @@ var bind = /* @__PURE__ */ dual(3, (self, name2, f) => flatMap(self, (a) => map(
956
1042
  [name2]: b2
957
1043
  }))));
958
1044
  var Do = /* @__PURE__ */ some2({});
1045
+ var adapter2 = /* @__PURE__ */ adapter();
959
1046
  var gen = (f) => {
960
- const iterator = f(pipe);
1047
+ const iterator = f(adapter2);
961
1048
  let state = iterator.next();
962
1049
  if (state.done) {
963
1050
  return some2(state.value);
964
1051
  } else {
965
1052
  let current = state.value;
1053
+ if (isGenKind(current)) {
1054
+ current = current.value;
1055
+ } else {
1056
+ current = yieldWrapGet(current);
1057
+ }
966
1058
  if (isNone2(current)) {
967
1059
  return current;
968
1060
  }
@@ -970,6 +1062,11 @@ var gen = (f) => {
970
1062
  state = iterator.next(current.value);
971
1063
  if (!state.done) {
972
1064
  current = state.value;
1065
+ if (isGenKind(current)) {
1066
+ current = current.value;
1067
+ } else {
1068
+ current = yieldWrapGet(current);
1069
+ }
973
1070
  if (isNone2(current)) {
974
1071
  return current;
975
1072
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.5.10-next.3",
3
+ "version": "1.5.10",
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,16 +41,16 @@
41
41
  "@typescript-eslint/types": "^7.7.1",
42
42
  "@typescript-eslint/utils": "^7.7.1",
43
43
  "string-ts": "2.1.1",
44
- "@eslint-react/core": "1.5.10-next.3",
45
- "@eslint-react/shared": "1.5.10-next.3",
46
- "@eslint-react/jsx": "1.5.10-next.3",
47
- "@eslint-react/tools": "1.5.10-next.3",
48
- "@eslint-react/types": "1.5.10-next.3",
49
- "@eslint-react/ast": "1.5.10-next.3",
50
- "@eslint-react/var": "1.5.10-next.3"
44
+ "@eslint-react/ast": "1.5.10",
45
+ "@eslint-react/shared": "1.5.10",
46
+ "@eslint-react/core": "1.5.10",
47
+ "@eslint-react/jsx": "1.5.10",
48
+ "@eslint-react/tools": "1.5.10",
49
+ "@eslint-react/types": "1.5.10",
50
+ "@eslint-react/var": "1.5.10"
51
51
  },
52
52
  "devDependencies": {
53
- "effect": "3.0.5"
53
+ "effect": "3.0.7"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@typescript-eslint/parser": "^7.5.0",