eslint-plugin-react-hooks-extra 1.5.10-beta.1 → 1.5.10-beta.3
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.js +65 -29
- package/dist/index.mjs +65 -29
- package/package.json +10 -10
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-beta.
|
|
18
|
+
var version = "1.5.10-beta.3";
|
|
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.
|
|
59
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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.
|
|
234
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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.
|
|
238
|
-
var moduleVersion = "3.0.
|
|
237
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/version.js
|
|
238
|
+
var moduleVersion = "3.0.6";
|
|
239
239
|
var getCurrentVersion = () => moduleVersion;
|
|
240
240
|
|
|
241
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
241
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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,15 +251,19 @@ var globalValue = (id, compute) => {
|
|
|
251
251
|
return globalStore.get(id);
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
254
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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
260
|
|
|
261
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
261
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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.6/node_modules/effect/dist/esm/Utils.js
|
|
262
265
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
266
|
+
var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
|
|
263
267
|
var GenKindImpl = class {
|
|
264
268
|
value;
|
|
265
269
|
constructor(value) {
|
|
@@ -340,16 +344,13 @@ var SingleShotGen = class _SingleShotGen {
|
|
|
340
344
|
return new _SingleShotGen(this.self);
|
|
341
345
|
}
|
|
342
346
|
};
|
|
343
|
-
var adapter = () => (
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
348
|
-
x2 = arguments[i2](x2);
|
|
349
|
-
}
|
|
350
|
-
return new GenKindImpl(x2);
|
|
347
|
+
var adapter = () => function() {
|
|
348
|
+
let x2 = arguments[0];
|
|
349
|
+
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
350
|
+
x2 = arguments[i2](x2);
|
|
351
351
|
}
|
|
352
|
-
);
|
|
352
|
+
return new GenKindImpl(x2);
|
|
353
|
+
};
|
|
353
354
|
var defaultIncHi = 335903614;
|
|
354
355
|
var defaultIncLo = 4150755663;
|
|
355
356
|
var MUL_HI = 1481765933 >>> 0;
|
|
@@ -477,8 +478,30 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
477
478
|
out[0] = hi;
|
|
478
479
|
out[1] = lo;
|
|
479
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
|
+
}
|
|
480
503
|
|
|
481
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
504
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Hash.js
|
|
482
505
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
483
506
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
484
507
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -564,7 +587,7 @@ var cached = function() {
|
|
|
564
587
|
return hash2;
|
|
565
588
|
};
|
|
566
589
|
|
|
567
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
590
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Equal.js
|
|
568
591
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
569
592
|
function equals() {
|
|
570
593
|
if (arguments.length === 1) {
|
|
@@ -590,7 +613,7 @@ function compareBoth(self, that) {
|
|
|
590
613
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
591
614
|
var equivalence = () => equals;
|
|
592
615
|
|
|
593
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
616
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Inspectable.js
|
|
594
617
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
595
618
|
var toJSON = (x2) => {
|
|
596
619
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -602,7 +625,7 @@ var toJSON = (x2) => {
|
|
|
602
625
|
};
|
|
603
626
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
604
627
|
|
|
605
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
628
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Pipeable.js
|
|
606
629
|
var pipeArguments = (self, args) => {
|
|
607
630
|
switch (args.length) {
|
|
608
631
|
case 1:
|
|
@@ -633,7 +656,7 @@ var pipeArguments = (self, args) => {
|
|
|
633
656
|
}
|
|
634
657
|
};
|
|
635
658
|
|
|
636
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
659
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/effectable.js
|
|
637
660
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
638
661
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
639
662
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -686,12 +709,15 @@ var EffectPrototype = {
|
|
|
686
709
|
[symbol]() {
|
|
687
710
|
return cached(this, random(this));
|
|
688
711
|
},
|
|
712
|
+
[Symbol.iterator]() {
|
|
713
|
+
return new SingleShotGen(new YieldWrap(this));
|
|
714
|
+
},
|
|
689
715
|
pipe() {
|
|
690
716
|
return pipeArguments(this, arguments);
|
|
691
717
|
}
|
|
692
718
|
};
|
|
693
719
|
|
|
694
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
720
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/option.js
|
|
695
721
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
696
722
|
var CommonProto = {
|
|
697
723
|
...EffectPrototype,
|
|
@@ -749,7 +775,7 @@ var some = (value) => {
|
|
|
749
775
|
return a;
|
|
750
776
|
};
|
|
751
777
|
|
|
752
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
778
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/either.js
|
|
753
779
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
754
780
|
var CommonProto2 = {
|
|
755
781
|
...EffectPrototype,
|
|
@@ -813,7 +839,7 @@ var right = (right2) => {
|
|
|
813
839
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
814
840
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
815
841
|
|
|
816
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
842
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Option.js
|
|
817
843
|
var Option_exports = {};
|
|
818
844
|
__export(Option_exports, {
|
|
819
845
|
Do: () => Do,
|
|
@@ -875,10 +901,10 @@ __export(Option_exports, {
|
|
|
875
901
|
zipWith: () => zipWith
|
|
876
902
|
});
|
|
877
903
|
|
|
878
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
904
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Order.js
|
|
879
905
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
880
906
|
|
|
881
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
907
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Option.js
|
|
882
908
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
883
909
|
var none2 = () => none;
|
|
884
910
|
var some2 = some;
|
|
@@ -1025,14 +1051,24 @@ var gen = (f) => {
|
|
|
1025
1051
|
if (state.done) {
|
|
1026
1052
|
return some2(state.value);
|
|
1027
1053
|
} else {
|
|
1028
|
-
let current = state.value
|
|
1054
|
+
let current = state.value;
|
|
1055
|
+
if (isGenKind(current)) {
|
|
1056
|
+
current = current.value;
|
|
1057
|
+
} else {
|
|
1058
|
+
current = yieldWrapGet(current);
|
|
1059
|
+
}
|
|
1029
1060
|
if (isNone2(current)) {
|
|
1030
1061
|
return current;
|
|
1031
1062
|
}
|
|
1032
1063
|
while (!state.done) {
|
|
1033
1064
|
state = iterator.next(current.value);
|
|
1034
1065
|
if (!state.done) {
|
|
1035
|
-
current = state.value
|
|
1066
|
+
current = state.value;
|
|
1067
|
+
if (isGenKind(current)) {
|
|
1068
|
+
current = current.value;
|
|
1069
|
+
} else {
|
|
1070
|
+
current = yieldWrapGet(current);
|
|
1071
|
+
}
|
|
1036
1072
|
if (isNone2(current)) {
|
|
1037
1073
|
return current;
|
|
1038
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-beta.
|
|
16
|
+
var version = "1.5.10-beta.3";
|
|
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.
|
|
57
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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.
|
|
232
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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.
|
|
236
|
-
var moduleVersion = "3.0.
|
|
235
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/version.js
|
|
236
|
+
var moduleVersion = "3.0.6";
|
|
237
237
|
var getCurrentVersion = () => moduleVersion;
|
|
238
238
|
|
|
239
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
239
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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,15 +249,19 @@ var globalValue = (id, compute) => {
|
|
|
249
249
|
return globalStore.get(id);
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
252
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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
258
|
|
|
259
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
259
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/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.6/node_modules/effect/dist/esm/Utils.js
|
|
260
263
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
264
|
+
var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
|
|
261
265
|
var GenKindImpl = class {
|
|
262
266
|
value;
|
|
263
267
|
constructor(value) {
|
|
@@ -338,16 +342,13 @@ var SingleShotGen = class _SingleShotGen {
|
|
|
338
342
|
return new _SingleShotGen(this.self);
|
|
339
343
|
}
|
|
340
344
|
};
|
|
341
|
-
var adapter = () => (
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
346
|
-
x2 = arguments[i2](x2);
|
|
347
|
-
}
|
|
348
|
-
return new GenKindImpl(x2);
|
|
345
|
+
var adapter = () => function() {
|
|
346
|
+
let x2 = arguments[0];
|
|
347
|
+
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
348
|
+
x2 = arguments[i2](x2);
|
|
349
349
|
}
|
|
350
|
-
);
|
|
350
|
+
return new GenKindImpl(x2);
|
|
351
|
+
};
|
|
351
352
|
var defaultIncHi = 335903614;
|
|
352
353
|
var defaultIncLo = 4150755663;
|
|
353
354
|
var MUL_HI = 1481765933 >>> 0;
|
|
@@ -475,8 +476,30 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
475
476
|
out[0] = hi;
|
|
476
477
|
out[1] = lo;
|
|
477
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
|
+
}
|
|
478
501
|
|
|
479
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
502
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Hash.js
|
|
480
503
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
481
504
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
482
505
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -562,7 +585,7 @@ var cached = function() {
|
|
|
562
585
|
return hash2;
|
|
563
586
|
};
|
|
564
587
|
|
|
565
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
588
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Equal.js
|
|
566
589
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
567
590
|
function equals() {
|
|
568
591
|
if (arguments.length === 1) {
|
|
@@ -588,7 +611,7 @@ function compareBoth(self, that) {
|
|
|
588
611
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
589
612
|
var equivalence = () => equals;
|
|
590
613
|
|
|
591
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
614
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Inspectable.js
|
|
592
615
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
593
616
|
var toJSON = (x2) => {
|
|
594
617
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -600,7 +623,7 @@ var toJSON = (x2) => {
|
|
|
600
623
|
};
|
|
601
624
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
602
625
|
|
|
603
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
626
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Pipeable.js
|
|
604
627
|
var pipeArguments = (self, args) => {
|
|
605
628
|
switch (args.length) {
|
|
606
629
|
case 1:
|
|
@@ -631,7 +654,7 @@ var pipeArguments = (self, args) => {
|
|
|
631
654
|
}
|
|
632
655
|
};
|
|
633
656
|
|
|
634
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
657
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/effectable.js
|
|
635
658
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
636
659
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
637
660
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -684,12 +707,15 @@ var EffectPrototype = {
|
|
|
684
707
|
[symbol]() {
|
|
685
708
|
return cached(this, random(this));
|
|
686
709
|
},
|
|
710
|
+
[Symbol.iterator]() {
|
|
711
|
+
return new SingleShotGen(new YieldWrap(this));
|
|
712
|
+
},
|
|
687
713
|
pipe() {
|
|
688
714
|
return pipeArguments(this, arguments);
|
|
689
715
|
}
|
|
690
716
|
};
|
|
691
717
|
|
|
692
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
718
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/option.js
|
|
693
719
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
694
720
|
var CommonProto = {
|
|
695
721
|
...EffectPrototype,
|
|
@@ -747,7 +773,7 @@ var some = (value) => {
|
|
|
747
773
|
return a;
|
|
748
774
|
};
|
|
749
775
|
|
|
750
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
776
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/internal/either.js
|
|
751
777
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
752
778
|
var CommonProto2 = {
|
|
753
779
|
...EffectPrototype,
|
|
@@ -811,7 +837,7 @@ var right = (right2) => {
|
|
|
811
837
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
812
838
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
813
839
|
|
|
814
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
840
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Option.js
|
|
815
841
|
var Option_exports = {};
|
|
816
842
|
__export(Option_exports, {
|
|
817
843
|
Do: () => Do,
|
|
@@ -873,10 +899,10 @@ __export(Option_exports, {
|
|
|
873
899
|
zipWith: () => zipWith
|
|
874
900
|
});
|
|
875
901
|
|
|
876
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
902
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Order.js
|
|
877
903
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
878
904
|
|
|
879
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
905
|
+
// ../../../node_modules/.pnpm/effect@3.0.6/node_modules/effect/dist/esm/Option.js
|
|
880
906
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
881
907
|
var none2 = () => none;
|
|
882
908
|
var some2 = some;
|
|
@@ -1023,14 +1049,24 @@ var gen = (f) => {
|
|
|
1023
1049
|
if (state.done) {
|
|
1024
1050
|
return some2(state.value);
|
|
1025
1051
|
} else {
|
|
1026
|
-
let current = state.value
|
|
1052
|
+
let current = state.value;
|
|
1053
|
+
if (isGenKind(current)) {
|
|
1054
|
+
current = current.value;
|
|
1055
|
+
} else {
|
|
1056
|
+
current = yieldWrapGet(current);
|
|
1057
|
+
}
|
|
1027
1058
|
if (isNone2(current)) {
|
|
1028
1059
|
return current;
|
|
1029
1060
|
}
|
|
1030
1061
|
while (!state.done) {
|
|
1031
1062
|
state = iterator.next(current.value);
|
|
1032
1063
|
if (!state.done) {
|
|
1033
|
-
current = state.value
|
|
1064
|
+
current = state.value;
|
|
1065
|
+
if (isGenKind(current)) {
|
|
1066
|
+
current = current.value;
|
|
1067
|
+
} else {
|
|
1068
|
+
current = yieldWrapGet(current);
|
|
1069
|
+
}
|
|
1034
1070
|
if (isNone2(current)) {
|
|
1035
1071
|
return current;
|
|
1036
1072
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.5.10-beta.
|
|
3
|
+
"version": "1.5.10-beta.3",
|
|
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": {
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"@typescript-eslint/type-utils": "^7.7.1",
|
|
41
41
|
"@typescript-eslint/types": "^7.7.1",
|
|
42
42
|
"@typescript-eslint/utils": "^7.7.1",
|
|
43
|
-
"string-ts": "2.1.
|
|
44
|
-
"@eslint-react/ast": "1.5.10-beta.
|
|
45
|
-
"@eslint-react/core": "1.5.10-beta.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/types": "1.5.10-beta.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
43
|
+
"string-ts": "2.1.1",
|
|
44
|
+
"@eslint-react/ast": "1.5.10-beta.3",
|
|
45
|
+
"@eslint-react/core": "1.5.10-beta.3",
|
|
46
|
+
"@eslint-react/tools": "1.5.10-beta.3",
|
|
47
|
+
"@eslint-react/shared": "1.5.10-beta.3",
|
|
48
|
+
"@eslint-react/types": "1.5.10-beta.3",
|
|
49
|
+
"@eslint-react/var": "1.5.10-beta.3",
|
|
50
|
+
"@eslint-react/jsx": "1.5.10-beta.3"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"effect": "3.0.
|
|
53
|
+
"effect": "3.0.6"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@typescript-eslint/parser": "^7.5.0",
|