eslint-plugin-react-hooks-extra 1.5.8 → 1.5.9-beta.2
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 +83 -83
- package/dist/index.mjs +83 -83
- package/package.json +14 -14
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.
|
|
18
|
+
var version = "1.5.9-beta.2";
|
|
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@
|
|
59
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Function.js
|
|
60
60
|
var Function_exports = {};
|
|
61
61
|
__export(Function_exports, {
|
|
62
62
|
SK: () => SK,
|
|
@@ -231,11 +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@
|
|
235
|
-
var
|
|
234
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Equivalence.js
|
|
235
|
+
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
236
|
+
|
|
237
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/version.js
|
|
238
|
+
var moduleVersion = "3.0.0";
|
|
236
239
|
var getCurrentVersion = () => moduleVersion;
|
|
237
240
|
|
|
238
|
-
// ../../../node_modules/.pnpm/effect@
|
|
241
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/GlobalValue.js
|
|
239
242
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
240
243
|
if (!(globalStoreId in globalThis)) {
|
|
241
244
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -248,14 +251,14 @@ var globalValue = (id, compute) => {
|
|
|
248
251
|
return globalStore.get(id);
|
|
249
252
|
};
|
|
250
253
|
|
|
251
|
-
// ../../../node_modules/.pnpm/effect@
|
|
254
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Predicate.js
|
|
252
255
|
var isFunction2 = isFunction;
|
|
253
256
|
var isRecordOrArray = (input) => typeof input === "object" && input !== null;
|
|
254
257
|
var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
|
|
255
258
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
|
|
256
259
|
var isNullable = (input) => input === null || input === void 0;
|
|
257
260
|
|
|
258
|
-
// ../../../node_modules/.pnpm/effect@
|
|
261
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Utils.js
|
|
259
262
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
260
263
|
var GenKindImpl = class {
|
|
261
264
|
value;
|
|
@@ -475,7 +478,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
475
478
|
out[1] = lo;
|
|
476
479
|
}
|
|
477
480
|
|
|
478
|
-
// ../../../node_modules/.pnpm/effect@
|
|
481
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Hash.js
|
|
479
482
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
480
483
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
481
484
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -561,7 +564,7 @@ var cached = function() {
|
|
|
561
564
|
return hash2;
|
|
562
565
|
};
|
|
563
566
|
|
|
564
|
-
// ../../../node_modules/.pnpm/effect@
|
|
567
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Equal.js
|
|
565
568
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
566
569
|
function equals() {
|
|
567
570
|
if (arguments.length === 1) {
|
|
@@ -587,10 +590,7 @@ function compareBoth(self, that) {
|
|
|
587
590
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
588
591
|
var equivalence = () => equals;
|
|
589
592
|
|
|
590
|
-
// ../../../node_modules/.pnpm/effect@
|
|
591
|
-
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
592
|
-
|
|
593
|
-
// ../../../node_modules/.pnpm/effect@2.4.18/node_modules/effect/dist/esm/Inspectable.js
|
|
593
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Inspectable.js
|
|
594
594
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
595
595
|
var toJSON = (x2) => {
|
|
596
596
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -602,69 +602,7 @@ var toJSON = (x2) => {
|
|
|
602
602
|
};
|
|
603
603
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
604
604
|
|
|
605
|
-
// ../../../node_modules/.pnpm/effect@
|
|
606
|
-
var Option_exports = {};
|
|
607
|
-
__export(Option_exports, {
|
|
608
|
-
Do: () => Do,
|
|
609
|
-
TypeId: () => TypeId3,
|
|
610
|
-
all: () => all,
|
|
611
|
-
andThen: () => andThen,
|
|
612
|
-
ap: () => ap,
|
|
613
|
-
as: () => as,
|
|
614
|
-
asUnit: () => asUnit,
|
|
615
|
-
bind: () => bind,
|
|
616
|
-
bindTo: () => bindTo,
|
|
617
|
-
composeK: () => composeK,
|
|
618
|
-
contains: () => contains,
|
|
619
|
-
containsWith: () => containsWith,
|
|
620
|
-
exists: () => exists,
|
|
621
|
-
filter: () => filter,
|
|
622
|
-
filterMap: () => filterMap,
|
|
623
|
-
firstSomeOf: () => firstSomeOf,
|
|
624
|
-
flatMap: () => flatMap,
|
|
625
|
-
flatMapNullable: () => flatMapNullable,
|
|
626
|
-
flatten: () => flatten,
|
|
627
|
-
fromIterable: () => fromIterable,
|
|
628
|
-
fromNullable: () => fromNullable,
|
|
629
|
-
gen: () => gen,
|
|
630
|
-
getEquivalence: () => getEquivalence,
|
|
631
|
-
getLeft: () => getLeft2,
|
|
632
|
-
getOrElse: () => getOrElse,
|
|
633
|
-
getOrNull: () => getOrNull,
|
|
634
|
-
getOrThrow: () => getOrThrow,
|
|
635
|
-
getOrThrowWith: () => getOrThrowWith,
|
|
636
|
-
getOrUndefined: () => getOrUndefined,
|
|
637
|
-
getOrder: () => getOrder,
|
|
638
|
-
getRight: () => getRight2,
|
|
639
|
-
isNone: () => isNone2,
|
|
640
|
-
isOption: () => isOption2,
|
|
641
|
-
isSome: () => isSome2,
|
|
642
|
-
let: () => let_,
|
|
643
|
-
lift2: () => lift2,
|
|
644
|
-
liftNullable: () => liftNullable,
|
|
645
|
-
liftPredicate: () => liftPredicate,
|
|
646
|
-
liftThrowable: () => liftThrowable,
|
|
647
|
-
map: () => map,
|
|
648
|
-
match: () => match,
|
|
649
|
-
none: () => none2,
|
|
650
|
-
orElse: () => orElse,
|
|
651
|
-
orElseEither: () => orElseEither,
|
|
652
|
-
orElseSome: () => orElseSome,
|
|
653
|
-
partitionMap: () => partitionMap,
|
|
654
|
-
product: () => product,
|
|
655
|
-
productMany: () => productMany,
|
|
656
|
-
reduceCompact: () => reduceCompact,
|
|
657
|
-
some: () => some2,
|
|
658
|
-
tap: () => tap,
|
|
659
|
-
toArray: () => toArray,
|
|
660
|
-
toRefinement: () => toRefinement,
|
|
661
|
-
unit: () => unit,
|
|
662
|
-
zipLeft: () => zipLeft,
|
|
663
|
-
zipRight: () => zipRight,
|
|
664
|
-
zipWith: () => zipWith
|
|
665
|
-
});
|
|
666
|
-
|
|
667
|
-
// ../../../node_modules/.pnpm/effect@2.4.18/node_modules/effect/dist/esm/Pipeable.js
|
|
605
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Pipeable.js
|
|
668
606
|
var pipeArguments = (self, args) => {
|
|
669
607
|
switch (args.length) {
|
|
670
608
|
case 1:
|
|
@@ -695,7 +633,7 @@ var pipeArguments = (self, args) => {
|
|
|
695
633
|
}
|
|
696
634
|
};
|
|
697
635
|
|
|
698
|
-
// ../../../node_modules/.pnpm/effect@
|
|
636
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/effectable.js
|
|
699
637
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
700
638
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
701
639
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -753,7 +691,7 @@ var EffectPrototype = {
|
|
|
753
691
|
}
|
|
754
692
|
};
|
|
755
693
|
|
|
756
|
-
// ../../../node_modules/.pnpm/effect@
|
|
694
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/option.js
|
|
757
695
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
758
696
|
var CommonProto = {
|
|
759
697
|
...EffectPrototype,
|
|
@@ -811,7 +749,7 @@ var some = (value) => {
|
|
|
811
749
|
return a;
|
|
812
750
|
};
|
|
813
751
|
|
|
814
|
-
// ../../../node_modules/.pnpm/effect@
|
|
752
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/either.js
|
|
815
753
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
816
754
|
var CommonProto2 = {
|
|
817
755
|
...EffectPrototype,
|
|
@@ -875,10 +813,72 @@ var right = (right2) => {
|
|
|
875
813
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
876
814
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
877
815
|
|
|
878
|
-
// ../../../node_modules/.pnpm/effect@
|
|
816
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Option.js
|
|
817
|
+
var Option_exports = {};
|
|
818
|
+
__export(Option_exports, {
|
|
819
|
+
Do: () => Do,
|
|
820
|
+
TypeId: () => TypeId3,
|
|
821
|
+
all: () => all,
|
|
822
|
+
andThen: () => andThen,
|
|
823
|
+
ap: () => ap,
|
|
824
|
+
as: () => as,
|
|
825
|
+
asVoid: () => asVoid,
|
|
826
|
+
bind: () => bind,
|
|
827
|
+
bindTo: () => bindTo,
|
|
828
|
+
composeK: () => composeK,
|
|
829
|
+
contains: () => contains,
|
|
830
|
+
containsWith: () => containsWith,
|
|
831
|
+
exists: () => exists,
|
|
832
|
+
filter: () => filter,
|
|
833
|
+
filterMap: () => filterMap,
|
|
834
|
+
firstSomeOf: () => firstSomeOf,
|
|
835
|
+
flatMap: () => flatMap,
|
|
836
|
+
flatMapNullable: () => flatMapNullable,
|
|
837
|
+
flatten: () => flatten,
|
|
838
|
+
fromIterable: () => fromIterable,
|
|
839
|
+
fromNullable: () => fromNullable,
|
|
840
|
+
gen: () => gen,
|
|
841
|
+
getEquivalence: () => getEquivalence,
|
|
842
|
+
getLeft: () => getLeft2,
|
|
843
|
+
getOrElse: () => getOrElse,
|
|
844
|
+
getOrNull: () => getOrNull,
|
|
845
|
+
getOrThrow: () => getOrThrow,
|
|
846
|
+
getOrThrowWith: () => getOrThrowWith,
|
|
847
|
+
getOrUndefined: () => getOrUndefined,
|
|
848
|
+
getOrder: () => getOrder,
|
|
849
|
+
getRight: () => getRight2,
|
|
850
|
+
isNone: () => isNone2,
|
|
851
|
+
isOption: () => isOption2,
|
|
852
|
+
isSome: () => isSome2,
|
|
853
|
+
let: () => let_,
|
|
854
|
+
lift2: () => lift2,
|
|
855
|
+
liftNullable: () => liftNullable,
|
|
856
|
+
liftPredicate: () => liftPredicate,
|
|
857
|
+
liftThrowable: () => liftThrowable,
|
|
858
|
+
map: () => map,
|
|
859
|
+
match: () => match,
|
|
860
|
+
none: () => none2,
|
|
861
|
+
orElse: () => orElse,
|
|
862
|
+
orElseEither: () => orElseEither,
|
|
863
|
+
orElseSome: () => orElseSome,
|
|
864
|
+
partitionMap: () => partitionMap,
|
|
865
|
+
product: () => product,
|
|
866
|
+
productMany: () => productMany,
|
|
867
|
+
reduceCompact: () => reduceCompact,
|
|
868
|
+
some: () => some2,
|
|
869
|
+
tap: () => tap,
|
|
870
|
+
toArray: () => toArray,
|
|
871
|
+
toRefinement: () => toRefinement,
|
|
872
|
+
void: () => void_,
|
|
873
|
+
zipLeft: () => zipLeft,
|
|
874
|
+
zipRight: () => zipRight,
|
|
875
|
+
zipWith: () => zipWith
|
|
876
|
+
});
|
|
877
|
+
|
|
878
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Order.js
|
|
879
879
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
880
880
|
|
|
881
|
-
// ../../../node_modules/.pnpm/effect@
|
|
881
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Option.js
|
|
882
882
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
883
883
|
var none2 = () => none;
|
|
884
884
|
var some2 = some;
|
|
@@ -931,8 +931,8 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onNone) => {
|
|
|
931
931
|
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a None"));
|
|
932
932
|
var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some2(f(self.value)));
|
|
933
933
|
var as = /* @__PURE__ */ dual(2, (self, b2) => map(self, () => b2));
|
|
934
|
-
var
|
|
935
|
-
var
|
|
934
|
+
var asVoid = /* @__PURE__ */ as(void 0);
|
|
935
|
+
var void_ = /* @__PURE__ */ some2(void 0);
|
|
936
936
|
var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
|
|
937
937
|
var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
|
|
938
938
|
const b2 = isFunction(f) ? f(a) : f;
|
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.
|
|
16
|
+
var version = "1.5.9-beta.2";
|
|
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@
|
|
57
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Function.js
|
|
58
58
|
var Function_exports = {};
|
|
59
59
|
__export(Function_exports, {
|
|
60
60
|
SK: () => SK,
|
|
@@ -229,11 +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@
|
|
233
|
-
var
|
|
232
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Equivalence.js
|
|
233
|
+
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
234
|
+
|
|
235
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/version.js
|
|
236
|
+
var moduleVersion = "3.0.0";
|
|
234
237
|
var getCurrentVersion = () => moduleVersion;
|
|
235
238
|
|
|
236
|
-
// ../../../node_modules/.pnpm/effect@
|
|
239
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/GlobalValue.js
|
|
237
240
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
238
241
|
if (!(globalStoreId in globalThis)) {
|
|
239
242
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -246,14 +249,14 @@ var globalValue = (id, compute) => {
|
|
|
246
249
|
return globalStore.get(id);
|
|
247
250
|
};
|
|
248
251
|
|
|
249
|
-
// ../../../node_modules/.pnpm/effect@
|
|
252
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Predicate.js
|
|
250
253
|
var isFunction2 = isFunction;
|
|
251
254
|
var isRecordOrArray = (input) => typeof input === "object" && input !== null;
|
|
252
255
|
var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
|
|
253
256
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
|
|
254
257
|
var isNullable = (input) => input === null || input === void 0;
|
|
255
258
|
|
|
256
|
-
// ../../../node_modules/.pnpm/effect@
|
|
259
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Utils.js
|
|
257
260
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
258
261
|
var GenKindImpl = class {
|
|
259
262
|
value;
|
|
@@ -473,7 +476,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
473
476
|
out[1] = lo;
|
|
474
477
|
}
|
|
475
478
|
|
|
476
|
-
// ../../../node_modules/.pnpm/effect@
|
|
479
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Hash.js
|
|
477
480
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
478
481
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
479
482
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -559,7 +562,7 @@ var cached = function() {
|
|
|
559
562
|
return hash2;
|
|
560
563
|
};
|
|
561
564
|
|
|
562
|
-
// ../../../node_modules/.pnpm/effect@
|
|
565
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Equal.js
|
|
563
566
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
564
567
|
function equals() {
|
|
565
568
|
if (arguments.length === 1) {
|
|
@@ -585,10 +588,7 @@ function compareBoth(self, that) {
|
|
|
585
588
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
586
589
|
var equivalence = () => equals;
|
|
587
590
|
|
|
588
|
-
// ../../../node_modules/.pnpm/effect@
|
|
589
|
-
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
590
|
-
|
|
591
|
-
// ../../../node_modules/.pnpm/effect@2.4.18/node_modules/effect/dist/esm/Inspectable.js
|
|
591
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Inspectable.js
|
|
592
592
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
593
593
|
var toJSON = (x2) => {
|
|
594
594
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -600,69 +600,7 @@ var toJSON = (x2) => {
|
|
|
600
600
|
};
|
|
601
601
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
602
602
|
|
|
603
|
-
// ../../../node_modules/.pnpm/effect@
|
|
604
|
-
var Option_exports = {};
|
|
605
|
-
__export(Option_exports, {
|
|
606
|
-
Do: () => Do,
|
|
607
|
-
TypeId: () => TypeId3,
|
|
608
|
-
all: () => all,
|
|
609
|
-
andThen: () => andThen,
|
|
610
|
-
ap: () => ap,
|
|
611
|
-
as: () => as,
|
|
612
|
-
asUnit: () => asUnit,
|
|
613
|
-
bind: () => bind,
|
|
614
|
-
bindTo: () => bindTo,
|
|
615
|
-
composeK: () => composeK,
|
|
616
|
-
contains: () => contains,
|
|
617
|
-
containsWith: () => containsWith,
|
|
618
|
-
exists: () => exists,
|
|
619
|
-
filter: () => filter,
|
|
620
|
-
filterMap: () => filterMap,
|
|
621
|
-
firstSomeOf: () => firstSomeOf,
|
|
622
|
-
flatMap: () => flatMap,
|
|
623
|
-
flatMapNullable: () => flatMapNullable,
|
|
624
|
-
flatten: () => flatten,
|
|
625
|
-
fromIterable: () => fromIterable,
|
|
626
|
-
fromNullable: () => fromNullable,
|
|
627
|
-
gen: () => gen,
|
|
628
|
-
getEquivalence: () => getEquivalence,
|
|
629
|
-
getLeft: () => getLeft2,
|
|
630
|
-
getOrElse: () => getOrElse,
|
|
631
|
-
getOrNull: () => getOrNull,
|
|
632
|
-
getOrThrow: () => getOrThrow,
|
|
633
|
-
getOrThrowWith: () => getOrThrowWith,
|
|
634
|
-
getOrUndefined: () => getOrUndefined,
|
|
635
|
-
getOrder: () => getOrder,
|
|
636
|
-
getRight: () => getRight2,
|
|
637
|
-
isNone: () => isNone2,
|
|
638
|
-
isOption: () => isOption2,
|
|
639
|
-
isSome: () => isSome2,
|
|
640
|
-
let: () => let_,
|
|
641
|
-
lift2: () => lift2,
|
|
642
|
-
liftNullable: () => liftNullable,
|
|
643
|
-
liftPredicate: () => liftPredicate,
|
|
644
|
-
liftThrowable: () => liftThrowable,
|
|
645
|
-
map: () => map,
|
|
646
|
-
match: () => match,
|
|
647
|
-
none: () => none2,
|
|
648
|
-
orElse: () => orElse,
|
|
649
|
-
orElseEither: () => orElseEither,
|
|
650
|
-
orElseSome: () => orElseSome,
|
|
651
|
-
partitionMap: () => partitionMap,
|
|
652
|
-
product: () => product,
|
|
653
|
-
productMany: () => productMany,
|
|
654
|
-
reduceCompact: () => reduceCompact,
|
|
655
|
-
some: () => some2,
|
|
656
|
-
tap: () => tap,
|
|
657
|
-
toArray: () => toArray,
|
|
658
|
-
toRefinement: () => toRefinement,
|
|
659
|
-
unit: () => unit,
|
|
660
|
-
zipLeft: () => zipLeft,
|
|
661
|
-
zipRight: () => zipRight,
|
|
662
|
-
zipWith: () => zipWith
|
|
663
|
-
});
|
|
664
|
-
|
|
665
|
-
// ../../../node_modules/.pnpm/effect@2.4.18/node_modules/effect/dist/esm/Pipeable.js
|
|
603
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Pipeable.js
|
|
666
604
|
var pipeArguments = (self, args) => {
|
|
667
605
|
switch (args.length) {
|
|
668
606
|
case 1:
|
|
@@ -693,7 +631,7 @@ var pipeArguments = (self, args) => {
|
|
|
693
631
|
}
|
|
694
632
|
};
|
|
695
633
|
|
|
696
|
-
// ../../../node_modules/.pnpm/effect@
|
|
634
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/effectable.js
|
|
697
635
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
698
636
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
699
637
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -751,7 +689,7 @@ var EffectPrototype = {
|
|
|
751
689
|
}
|
|
752
690
|
};
|
|
753
691
|
|
|
754
|
-
// ../../../node_modules/.pnpm/effect@
|
|
692
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/option.js
|
|
755
693
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
756
694
|
var CommonProto = {
|
|
757
695
|
...EffectPrototype,
|
|
@@ -809,7 +747,7 @@ var some = (value) => {
|
|
|
809
747
|
return a;
|
|
810
748
|
};
|
|
811
749
|
|
|
812
|
-
// ../../../node_modules/.pnpm/effect@
|
|
750
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/internal/either.js
|
|
813
751
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
814
752
|
var CommonProto2 = {
|
|
815
753
|
...EffectPrototype,
|
|
@@ -873,10 +811,72 @@ var right = (right2) => {
|
|
|
873
811
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
874
812
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
875
813
|
|
|
876
|
-
// ../../../node_modules/.pnpm/effect@
|
|
814
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Option.js
|
|
815
|
+
var Option_exports = {};
|
|
816
|
+
__export(Option_exports, {
|
|
817
|
+
Do: () => Do,
|
|
818
|
+
TypeId: () => TypeId3,
|
|
819
|
+
all: () => all,
|
|
820
|
+
andThen: () => andThen,
|
|
821
|
+
ap: () => ap,
|
|
822
|
+
as: () => as,
|
|
823
|
+
asVoid: () => asVoid,
|
|
824
|
+
bind: () => bind,
|
|
825
|
+
bindTo: () => bindTo,
|
|
826
|
+
composeK: () => composeK,
|
|
827
|
+
contains: () => contains,
|
|
828
|
+
containsWith: () => containsWith,
|
|
829
|
+
exists: () => exists,
|
|
830
|
+
filter: () => filter,
|
|
831
|
+
filterMap: () => filterMap,
|
|
832
|
+
firstSomeOf: () => firstSomeOf,
|
|
833
|
+
flatMap: () => flatMap,
|
|
834
|
+
flatMapNullable: () => flatMapNullable,
|
|
835
|
+
flatten: () => flatten,
|
|
836
|
+
fromIterable: () => fromIterable,
|
|
837
|
+
fromNullable: () => fromNullable,
|
|
838
|
+
gen: () => gen,
|
|
839
|
+
getEquivalence: () => getEquivalence,
|
|
840
|
+
getLeft: () => getLeft2,
|
|
841
|
+
getOrElse: () => getOrElse,
|
|
842
|
+
getOrNull: () => getOrNull,
|
|
843
|
+
getOrThrow: () => getOrThrow,
|
|
844
|
+
getOrThrowWith: () => getOrThrowWith,
|
|
845
|
+
getOrUndefined: () => getOrUndefined,
|
|
846
|
+
getOrder: () => getOrder,
|
|
847
|
+
getRight: () => getRight2,
|
|
848
|
+
isNone: () => isNone2,
|
|
849
|
+
isOption: () => isOption2,
|
|
850
|
+
isSome: () => isSome2,
|
|
851
|
+
let: () => let_,
|
|
852
|
+
lift2: () => lift2,
|
|
853
|
+
liftNullable: () => liftNullable,
|
|
854
|
+
liftPredicate: () => liftPredicate,
|
|
855
|
+
liftThrowable: () => liftThrowable,
|
|
856
|
+
map: () => map,
|
|
857
|
+
match: () => match,
|
|
858
|
+
none: () => none2,
|
|
859
|
+
orElse: () => orElse,
|
|
860
|
+
orElseEither: () => orElseEither,
|
|
861
|
+
orElseSome: () => orElseSome,
|
|
862
|
+
partitionMap: () => partitionMap,
|
|
863
|
+
product: () => product,
|
|
864
|
+
productMany: () => productMany,
|
|
865
|
+
reduceCompact: () => reduceCompact,
|
|
866
|
+
some: () => some2,
|
|
867
|
+
tap: () => tap,
|
|
868
|
+
toArray: () => toArray,
|
|
869
|
+
toRefinement: () => toRefinement,
|
|
870
|
+
void: () => void_,
|
|
871
|
+
zipLeft: () => zipLeft,
|
|
872
|
+
zipRight: () => zipRight,
|
|
873
|
+
zipWith: () => zipWith
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Order.js
|
|
877
877
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
878
878
|
|
|
879
|
-
// ../../../node_modules/.pnpm/effect@
|
|
879
|
+
// ../../../node_modules/.pnpm/effect@3.0.0/node_modules/effect/dist/esm/Option.js
|
|
880
880
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
881
881
|
var none2 = () => none;
|
|
882
882
|
var some2 = some;
|
|
@@ -929,8 +929,8 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onNone) => {
|
|
|
929
929
|
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a None"));
|
|
930
930
|
var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some2(f(self.value)));
|
|
931
931
|
var as = /* @__PURE__ */ dual(2, (self, b2) => map(self, () => b2));
|
|
932
|
-
var
|
|
933
|
-
var
|
|
932
|
+
var asVoid = /* @__PURE__ */ as(void 0);
|
|
933
|
+
var void_ = /* @__PURE__ */ some2(void 0);
|
|
934
934
|
var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
|
|
935
935
|
var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
|
|
936
936
|
const b2 = isFunction(f) ? f(a) : f;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9-beta.2",
|
|
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,22 +35,22 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/parser": "7.
|
|
39
|
-
"@typescript-eslint/scope-manager": "7.
|
|
40
|
-
"@typescript-eslint/type-utils": "7.
|
|
41
|
-
"@typescript-eslint/types": "7.
|
|
42
|
-
"@typescript-eslint/utils": "7.
|
|
38
|
+
"@typescript-eslint/parser": "7.7.0",
|
|
39
|
+
"@typescript-eslint/scope-manager": "7.7.0",
|
|
40
|
+
"@typescript-eslint/type-utils": "7.7.0",
|
|
41
|
+
"@typescript-eslint/types": "7.7.0",
|
|
42
|
+
"@typescript-eslint/utils": "7.7.0",
|
|
43
43
|
"string-ts": "2.1.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/core": "1.5.9-beta.2",
|
|
45
|
+
"@eslint-react/ast": "1.5.9-beta.2",
|
|
46
|
+
"@eslint-react/shared": "1.5.9-beta.2",
|
|
47
|
+
"@eslint-react/jsx": "1.5.9-beta.2",
|
|
48
|
+
"@eslint-react/tools": "1.5.9-beta.2",
|
|
49
|
+
"@eslint-react/var": "1.5.9-beta.2",
|
|
50
|
+
"@eslint-react/types": "1.5.9-beta.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"effect": "
|
|
53
|
+
"effect": "3.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@typescript-eslint/parser": ">=7.5.0",
|