eslint-plugin-react-hooks-extra 1.5.6 → 1.5.7-beta.0
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 +18 -18
- package/dist/index.mjs +18 -18
- 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.
|
|
18
|
+
var version = "1.5.7-beta.0";
|
|
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
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
59
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Function.js
|
|
60
60
|
var Function_exports = {};
|
|
61
61
|
__export(Function_exports, {
|
|
62
62
|
SK: () => SK,
|
|
@@ -231,11 +231,11 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
231
231
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
232
232
|
var SK = (_, b2) => b2;
|
|
233
233
|
|
|
234
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
235
|
-
var moduleVersion = "2.4.
|
|
234
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/version.js
|
|
235
|
+
var moduleVersion = "2.4.7";
|
|
236
236
|
var getCurrentVersion = () => moduleVersion;
|
|
237
237
|
|
|
238
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
238
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/GlobalValue.js
|
|
239
239
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
240
240
|
if (!(globalStoreId in globalThis)) {
|
|
241
241
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -248,14 +248,14 @@ var globalValue = (id, compute) => {
|
|
|
248
248
|
return globalStore.get(id);
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
251
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Predicate.js
|
|
252
252
|
var isFunction2 = isFunction;
|
|
253
253
|
var isRecordOrArray = (input) => typeof input === "object" && input !== null;
|
|
254
254
|
var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
|
|
255
255
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
|
|
256
256
|
var isNullable = (input) => input === null || input === void 0;
|
|
257
257
|
|
|
258
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
258
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Utils.js
|
|
259
259
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
260
260
|
var GenKindImpl = class {
|
|
261
261
|
value;
|
|
@@ -475,7 +475,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
475
475
|
out[1] = lo;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
478
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Hash.js
|
|
479
479
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
480
480
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
481
481
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -561,7 +561,7 @@ var cached = function() {
|
|
|
561
561
|
return hash2;
|
|
562
562
|
};
|
|
563
563
|
|
|
564
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
564
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Equal.js
|
|
565
565
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
566
566
|
function equals() {
|
|
567
567
|
if (arguments.length === 1) {
|
|
@@ -587,10 +587,10 @@ function compareBoth(self, that) {
|
|
|
587
587
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
588
588
|
var equivalence = () => equals;
|
|
589
589
|
|
|
590
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
590
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Equivalence.js
|
|
591
591
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
592
592
|
|
|
593
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
593
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/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,7 +602,7 @@ var toJSON = (x2) => {
|
|
|
602
602
|
};
|
|
603
603
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
604
604
|
|
|
605
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
605
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Option.js
|
|
606
606
|
var Option_exports = {};
|
|
607
607
|
__export(Option_exports, {
|
|
608
608
|
Do: () => Do,
|
|
@@ -664,7 +664,7 @@ __export(Option_exports, {
|
|
|
664
664
|
zipWith: () => zipWith
|
|
665
665
|
});
|
|
666
666
|
|
|
667
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
667
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Pipeable.js
|
|
668
668
|
var pipeArguments = (self, args) => {
|
|
669
669
|
switch (args.length) {
|
|
670
670
|
case 1:
|
|
@@ -695,7 +695,7 @@ var pipeArguments = (self, args) => {
|
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
698
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/effectable.js
|
|
699
699
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
700
700
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
701
701
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -753,7 +753,7 @@ var EffectPrototype = {
|
|
|
753
753
|
}
|
|
754
754
|
};
|
|
755
755
|
|
|
756
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
756
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/option.js
|
|
757
757
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
758
758
|
var CommonProto = {
|
|
759
759
|
...EffectPrototype,
|
|
@@ -811,7 +811,7 @@ var some = (value) => {
|
|
|
811
811
|
return a;
|
|
812
812
|
};
|
|
813
813
|
|
|
814
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
814
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/either.js
|
|
815
815
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
816
816
|
var CommonProto2 = {
|
|
817
817
|
...EffectPrototype,
|
|
@@ -875,10 +875,10 @@ var right = (right2) => {
|
|
|
875
875
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
876
876
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
877
877
|
|
|
878
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
878
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/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@2.4.
|
|
881
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/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;
|
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.7-beta.0";
|
|
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
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
57
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Function.js
|
|
58
58
|
var Function_exports = {};
|
|
59
59
|
__export(Function_exports, {
|
|
60
60
|
SK: () => SK,
|
|
@@ -229,11 +229,11 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
229
229
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
230
230
|
var SK = (_, b2) => b2;
|
|
231
231
|
|
|
232
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
233
|
-
var moduleVersion = "2.4.
|
|
232
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/version.js
|
|
233
|
+
var moduleVersion = "2.4.7";
|
|
234
234
|
var getCurrentVersion = () => moduleVersion;
|
|
235
235
|
|
|
236
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
236
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/GlobalValue.js
|
|
237
237
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
238
238
|
if (!(globalStoreId in globalThis)) {
|
|
239
239
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -246,14 +246,14 @@ var globalValue = (id, compute) => {
|
|
|
246
246
|
return globalStore.get(id);
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
249
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Predicate.js
|
|
250
250
|
var isFunction2 = isFunction;
|
|
251
251
|
var isRecordOrArray = (input) => typeof input === "object" && input !== null;
|
|
252
252
|
var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
|
|
253
253
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
|
|
254
254
|
var isNullable = (input) => input === null || input === void 0;
|
|
255
255
|
|
|
256
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
256
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Utils.js
|
|
257
257
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
258
258
|
var GenKindImpl = class {
|
|
259
259
|
value;
|
|
@@ -473,7 +473,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
473
473
|
out[1] = lo;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
476
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Hash.js
|
|
477
477
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
478
478
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
479
479
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -559,7 +559,7 @@ var cached = function() {
|
|
|
559
559
|
return hash2;
|
|
560
560
|
};
|
|
561
561
|
|
|
562
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
562
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Equal.js
|
|
563
563
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
564
564
|
function equals() {
|
|
565
565
|
if (arguments.length === 1) {
|
|
@@ -585,10 +585,10 @@ function compareBoth(self, that) {
|
|
|
585
585
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
586
586
|
var equivalence = () => equals;
|
|
587
587
|
|
|
588
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
588
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Equivalence.js
|
|
589
589
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
590
590
|
|
|
591
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
591
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/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,7 +600,7 @@ var toJSON = (x2) => {
|
|
|
600
600
|
};
|
|
601
601
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
602
602
|
|
|
603
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
603
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Option.js
|
|
604
604
|
var Option_exports = {};
|
|
605
605
|
__export(Option_exports, {
|
|
606
606
|
Do: () => Do,
|
|
@@ -662,7 +662,7 @@ __export(Option_exports, {
|
|
|
662
662
|
zipWith: () => zipWith
|
|
663
663
|
});
|
|
664
664
|
|
|
665
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
665
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/Pipeable.js
|
|
666
666
|
var pipeArguments = (self, args) => {
|
|
667
667
|
switch (args.length) {
|
|
668
668
|
case 1:
|
|
@@ -693,7 +693,7 @@ var pipeArguments = (self, args) => {
|
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
|
|
696
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
696
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/effectable.js
|
|
697
697
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
698
698
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
699
699
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -751,7 +751,7 @@ var EffectPrototype = {
|
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
753
|
|
|
754
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
754
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/option.js
|
|
755
755
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
756
756
|
var CommonProto = {
|
|
757
757
|
...EffectPrototype,
|
|
@@ -809,7 +809,7 @@ var some = (value) => {
|
|
|
809
809
|
return a;
|
|
810
810
|
};
|
|
811
811
|
|
|
812
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
812
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/node_modules/effect/dist/esm/internal/either.js
|
|
813
813
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
814
814
|
var CommonProto2 = {
|
|
815
815
|
...EffectPrototype,
|
|
@@ -873,10 +873,10 @@ var right = (right2) => {
|
|
|
873
873
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
874
874
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
875
875
|
|
|
876
|
-
// ../../../node_modules/.pnpm/effect@2.4.
|
|
876
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/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@2.4.
|
|
879
|
+
// ../../../node_modules/.pnpm/effect@2.4.7/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;
|
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.7-beta.0",
|
|
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.2.0",
|
|
42
42
|
"@typescript-eslint/utils": "7.2.0",
|
|
43
43
|
"string-ts": "2.0.0",
|
|
44
|
-
"@eslint-react/ast": "1.5.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/shared": "1.5.
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "1.5.7-beta.0",
|
|
45
|
+
"@eslint-react/jsx": "1.5.7-beta.0",
|
|
46
|
+
"@eslint-react/shared": "1.5.7-beta.0",
|
|
47
|
+
"@eslint-react/core": "1.5.7-beta.0",
|
|
48
|
+
"@eslint-react/tools": "1.5.7-beta.0",
|
|
49
|
+
"@eslint-react/types": "1.5.7-beta.0",
|
|
50
|
+
"@eslint-react/var": "1.5.7-beta.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"effect": "2.4.
|
|
53
|
+
"effect": "2.4.7"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"eslint": ">=8.57.0",
|