eslint-plugin-react-hooks-extra 1.5.10-next.1 → 1.5.10-next.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 +53 -114
- package/dist/index.mjs +53 -114
- 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-next.
|
|
18
|
+
var version = "1.5.10-next.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.5/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.5/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.5/node_modules/effect/dist/esm/internal/version.js
|
|
238
|
+
var moduleVersion = "3.0.5";
|
|
239
239
|
var getCurrentVersion = () => moduleVersion;
|
|
240
240
|
|
|
241
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
241
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/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,105 +251,12 @@ 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.5/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.3/node_modules/effect/dist/esm/Utils.js
|
|
262
|
-
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
263
|
-
var GenKindImpl = class {
|
|
264
|
-
value;
|
|
265
|
-
constructor(value) {
|
|
266
|
-
this.value = value;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* @since 2.0.0
|
|
270
|
-
*/
|
|
271
|
-
get _F() {
|
|
272
|
-
return identity;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* @since 2.0.0
|
|
276
|
-
*/
|
|
277
|
-
get _R() {
|
|
278
|
-
return (_2) => _2;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* @since 2.0.0
|
|
282
|
-
*/
|
|
283
|
-
get _O() {
|
|
284
|
-
return (_2) => _2;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* @since 2.0.0
|
|
288
|
-
*/
|
|
289
|
-
get _E() {
|
|
290
|
-
return (_2) => _2;
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* @since 2.0.0
|
|
294
|
-
*/
|
|
295
|
-
[GenKindTypeId] = GenKindTypeId;
|
|
296
|
-
/**
|
|
297
|
-
* @since 2.0.0
|
|
298
|
-
*/
|
|
299
|
-
[Symbol.iterator]() {
|
|
300
|
-
return new SingleShotGen(this);
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
var SingleShotGen = class _SingleShotGen {
|
|
304
|
-
self;
|
|
305
|
-
called = false;
|
|
306
|
-
constructor(self) {
|
|
307
|
-
this.self = self;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* @since 2.0.0
|
|
311
|
-
*/
|
|
312
|
-
next(a) {
|
|
313
|
-
return this.called ? {
|
|
314
|
-
value: a,
|
|
315
|
-
done: true
|
|
316
|
-
} : (this.called = true, {
|
|
317
|
-
value: this.self,
|
|
318
|
-
done: false
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* @since 2.0.0
|
|
323
|
-
*/
|
|
324
|
-
return(a) {
|
|
325
|
-
return {
|
|
326
|
-
value: a,
|
|
327
|
-
done: true
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* @since 2.0.0
|
|
332
|
-
*/
|
|
333
|
-
throw(e2) {
|
|
334
|
-
throw e2;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* @since 2.0.0
|
|
338
|
-
*/
|
|
339
|
-
[Symbol.iterator]() {
|
|
340
|
-
return new _SingleShotGen(this.self);
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
var adapter = () => (
|
|
344
|
-
// @ts-expect-error
|
|
345
|
-
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
|
-
}
|
|
352
|
-
);
|
|
353
260
|
var defaultIncHi = 335903614;
|
|
354
261
|
var defaultIncLo = 4150755663;
|
|
355
262
|
var MUL_HI = 1481765933 >>> 0;
|
|
@@ -478,7 +385,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
478
385
|
out[1] = lo;
|
|
479
386
|
}
|
|
480
387
|
|
|
481
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
388
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Hash.js
|
|
482
389
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
483
390
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
484
391
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -564,7 +471,7 @@ var cached = function() {
|
|
|
564
471
|
return hash2;
|
|
565
472
|
};
|
|
566
473
|
|
|
567
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
474
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Equal.js
|
|
568
475
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
569
476
|
function equals() {
|
|
570
477
|
if (arguments.length === 1) {
|
|
@@ -590,7 +497,7 @@ function compareBoth(self, that) {
|
|
|
590
497
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
591
498
|
var equivalence = () => equals;
|
|
592
499
|
|
|
593
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
500
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Inspectable.js
|
|
594
501
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
595
502
|
var toJSON = (x2) => {
|
|
596
503
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -602,7 +509,7 @@ var toJSON = (x2) => {
|
|
|
602
509
|
};
|
|
603
510
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
604
511
|
|
|
605
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
512
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Pipeable.js
|
|
606
513
|
var pipeArguments = (self, args) => {
|
|
607
514
|
switch (args.length) {
|
|
608
515
|
case 1:
|
|
@@ -633,7 +540,37 @@ var pipeArguments = (self, args) => {
|
|
|
633
540
|
}
|
|
634
541
|
};
|
|
635
542
|
|
|
636
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
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
|
|
637
574
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
638
575
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
639
576
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -686,12 +623,15 @@ var EffectPrototype = {
|
|
|
686
623
|
[symbol]() {
|
|
687
624
|
return cached(this, random(this));
|
|
688
625
|
},
|
|
626
|
+
[Symbol.iterator]() {
|
|
627
|
+
return new SingleShotGen2(this);
|
|
628
|
+
},
|
|
689
629
|
pipe() {
|
|
690
630
|
return pipeArguments(this, arguments);
|
|
691
631
|
}
|
|
692
632
|
};
|
|
693
633
|
|
|
694
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
634
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/option.js
|
|
695
635
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
696
636
|
var CommonProto = {
|
|
697
637
|
...EffectPrototype,
|
|
@@ -749,7 +689,7 @@ var some = (value) => {
|
|
|
749
689
|
return a;
|
|
750
690
|
};
|
|
751
691
|
|
|
752
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
692
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/either.js
|
|
753
693
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
754
694
|
var CommonProto2 = {
|
|
755
695
|
...EffectPrototype,
|
|
@@ -813,7 +753,7 @@ var right = (right2) => {
|
|
|
813
753
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
814
754
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
815
755
|
|
|
816
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
756
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
|
|
817
757
|
var Option_exports = {};
|
|
818
758
|
__export(Option_exports, {
|
|
819
759
|
Do: () => Do,
|
|
@@ -875,10 +815,10 @@ __export(Option_exports, {
|
|
|
875
815
|
zipWith: () => zipWith
|
|
876
816
|
});
|
|
877
817
|
|
|
878
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
818
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Order.js
|
|
879
819
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
880
820
|
|
|
881
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
821
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
|
|
882
822
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
883
823
|
var none2 = () => none;
|
|
884
824
|
var some2 = some;
|
|
@@ -1018,21 +958,20 @@ var bind = /* @__PURE__ */ dual(3, (self, name2, f) => flatMap(self, (a) => map(
|
|
|
1018
958
|
[name2]: b2
|
|
1019
959
|
}))));
|
|
1020
960
|
var Do = /* @__PURE__ */ some2({});
|
|
1021
|
-
var adapter2 = /* @__PURE__ */ adapter();
|
|
1022
961
|
var gen = (f) => {
|
|
1023
|
-
const iterator = f(
|
|
962
|
+
const iterator = f(pipe);
|
|
1024
963
|
let state = iterator.next();
|
|
1025
964
|
if (state.done) {
|
|
1026
965
|
return some2(state.value);
|
|
1027
966
|
} else {
|
|
1028
|
-
let current = state.value
|
|
967
|
+
let current = state.value;
|
|
1029
968
|
if (isNone2(current)) {
|
|
1030
969
|
return current;
|
|
1031
970
|
}
|
|
1032
971
|
while (!state.done) {
|
|
1033
972
|
state = iterator.next(current.value);
|
|
1034
973
|
if (!state.done) {
|
|
1035
|
-
current = state.value
|
|
974
|
+
current = state.value;
|
|
1036
975
|
if (isNone2(current)) {
|
|
1037
976
|
return current;
|
|
1038
977
|
}
|
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.
|
|
16
|
+
var version = "1.5.10-next.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.5/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.5/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.5/node_modules/effect/dist/esm/internal/version.js
|
|
236
|
+
var moduleVersion = "3.0.5";
|
|
237
237
|
var getCurrentVersion = () => moduleVersion;
|
|
238
238
|
|
|
239
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
239
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/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,105 +249,12 @@ 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.5/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.3/node_modules/effect/dist/esm/Utils.js
|
|
260
|
-
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
261
|
-
var GenKindImpl = class {
|
|
262
|
-
value;
|
|
263
|
-
constructor(value) {
|
|
264
|
-
this.value = value;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* @since 2.0.0
|
|
268
|
-
*/
|
|
269
|
-
get _F() {
|
|
270
|
-
return identity;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* @since 2.0.0
|
|
274
|
-
*/
|
|
275
|
-
get _R() {
|
|
276
|
-
return (_2) => _2;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* @since 2.0.0
|
|
280
|
-
*/
|
|
281
|
-
get _O() {
|
|
282
|
-
return (_2) => _2;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* @since 2.0.0
|
|
286
|
-
*/
|
|
287
|
-
get _E() {
|
|
288
|
-
return (_2) => _2;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* @since 2.0.0
|
|
292
|
-
*/
|
|
293
|
-
[GenKindTypeId] = GenKindTypeId;
|
|
294
|
-
/**
|
|
295
|
-
* @since 2.0.0
|
|
296
|
-
*/
|
|
297
|
-
[Symbol.iterator]() {
|
|
298
|
-
return new SingleShotGen(this);
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
var SingleShotGen = class _SingleShotGen {
|
|
302
|
-
self;
|
|
303
|
-
called = false;
|
|
304
|
-
constructor(self) {
|
|
305
|
-
this.self = self;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* @since 2.0.0
|
|
309
|
-
*/
|
|
310
|
-
next(a) {
|
|
311
|
-
return this.called ? {
|
|
312
|
-
value: a,
|
|
313
|
-
done: true
|
|
314
|
-
} : (this.called = true, {
|
|
315
|
-
value: this.self,
|
|
316
|
-
done: false
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* @since 2.0.0
|
|
321
|
-
*/
|
|
322
|
-
return(a) {
|
|
323
|
-
return {
|
|
324
|
-
value: a,
|
|
325
|
-
done: true
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* @since 2.0.0
|
|
330
|
-
*/
|
|
331
|
-
throw(e2) {
|
|
332
|
-
throw e2;
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* @since 2.0.0
|
|
336
|
-
*/
|
|
337
|
-
[Symbol.iterator]() {
|
|
338
|
-
return new _SingleShotGen(this.self);
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var adapter = () => (
|
|
342
|
-
// @ts-expect-error
|
|
343
|
-
function() {
|
|
344
|
-
let x2 = arguments[0];
|
|
345
|
-
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
346
|
-
x2 = arguments[i2](x2);
|
|
347
|
-
}
|
|
348
|
-
return new GenKindImpl(x2);
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
258
|
var defaultIncHi = 335903614;
|
|
352
259
|
var defaultIncLo = 4150755663;
|
|
353
260
|
var MUL_HI = 1481765933 >>> 0;
|
|
@@ -476,7 +383,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
476
383
|
out[1] = lo;
|
|
477
384
|
}
|
|
478
385
|
|
|
479
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
386
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Hash.js
|
|
480
387
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
481
388
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
482
389
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -562,7 +469,7 @@ var cached = function() {
|
|
|
562
469
|
return hash2;
|
|
563
470
|
};
|
|
564
471
|
|
|
565
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
472
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Equal.js
|
|
566
473
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
567
474
|
function equals() {
|
|
568
475
|
if (arguments.length === 1) {
|
|
@@ -588,7 +495,7 @@ function compareBoth(self, that) {
|
|
|
588
495
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
589
496
|
var equivalence = () => equals;
|
|
590
497
|
|
|
591
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
498
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Inspectable.js
|
|
592
499
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
593
500
|
var toJSON = (x2) => {
|
|
594
501
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -600,7 +507,7 @@ var toJSON = (x2) => {
|
|
|
600
507
|
};
|
|
601
508
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
602
509
|
|
|
603
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
510
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Pipeable.js
|
|
604
511
|
var pipeArguments = (self, args) => {
|
|
605
512
|
switch (args.length) {
|
|
606
513
|
case 1:
|
|
@@ -631,7 +538,37 @@ var pipeArguments = (self, args) => {
|
|
|
631
538
|
}
|
|
632
539
|
};
|
|
633
540
|
|
|
634
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
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
|
|
635
572
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
636
573
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
637
574
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -684,12 +621,15 @@ var EffectPrototype = {
|
|
|
684
621
|
[symbol]() {
|
|
685
622
|
return cached(this, random(this));
|
|
686
623
|
},
|
|
624
|
+
[Symbol.iterator]() {
|
|
625
|
+
return new SingleShotGen2(this);
|
|
626
|
+
},
|
|
687
627
|
pipe() {
|
|
688
628
|
return pipeArguments(this, arguments);
|
|
689
629
|
}
|
|
690
630
|
};
|
|
691
631
|
|
|
692
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
632
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/option.js
|
|
693
633
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
694
634
|
var CommonProto = {
|
|
695
635
|
...EffectPrototype,
|
|
@@ -747,7 +687,7 @@ var some = (value) => {
|
|
|
747
687
|
return a;
|
|
748
688
|
};
|
|
749
689
|
|
|
750
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
690
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/either.js
|
|
751
691
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
752
692
|
var CommonProto2 = {
|
|
753
693
|
...EffectPrototype,
|
|
@@ -811,7 +751,7 @@ var right = (right2) => {
|
|
|
811
751
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
812
752
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
813
753
|
|
|
814
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
754
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
|
|
815
755
|
var Option_exports = {};
|
|
816
756
|
__export(Option_exports, {
|
|
817
757
|
Do: () => Do,
|
|
@@ -873,10 +813,10 @@ __export(Option_exports, {
|
|
|
873
813
|
zipWith: () => zipWith
|
|
874
814
|
});
|
|
875
815
|
|
|
876
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
816
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Order.js
|
|
877
817
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
878
818
|
|
|
879
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
819
|
+
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/Option.js
|
|
880
820
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
881
821
|
var none2 = () => none;
|
|
882
822
|
var some2 = some;
|
|
@@ -1016,21 +956,20 @@ var bind = /* @__PURE__ */ dual(3, (self, name2, f) => flatMap(self, (a) => map(
|
|
|
1016
956
|
[name2]: b2
|
|
1017
957
|
}))));
|
|
1018
958
|
var Do = /* @__PURE__ */ some2({});
|
|
1019
|
-
var adapter2 = /* @__PURE__ */ adapter();
|
|
1020
959
|
var gen = (f) => {
|
|
1021
|
-
const iterator = f(
|
|
960
|
+
const iterator = f(pipe);
|
|
1022
961
|
let state = iterator.next();
|
|
1023
962
|
if (state.done) {
|
|
1024
963
|
return some2(state.value);
|
|
1025
964
|
} else {
|
|
1026
|
-
let current = state.value
|
|
965
|
+
let current = state.value;
|
|
1027
966
|
if (isNone2(current)) {
|
|
1028
967
|
return current;
|
|
1029
968
|
}
|
|
1030
969
|
while (!state.done) {
|
|
1031
970
|
state = iterator.next(current.value);
|
|
1032
971
|
if (!state.done) {
|
|
1033
|
-
current = state.value
|
|
972
|
+
current = state.value;
|
|
1034
973
|
if (isNone2(current)) {
|
|
1035
974
|
return current;
|
|
1036
975
|
}
|
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
|
+
"version": "1.5.10-next.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/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/var": "1.5.10-next.
|
|
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"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"effect": "3.0.
|
|
53
|
+
"effect": "3.0.5"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@typescript-eslint/parser": "^7.5.0",
|