eslint-plugin-react-hooks-extra 1.5.21 → 1.5.22-beta.1
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/README.md +6 -6
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +20 -20
- package/dist/index.mjs +20 -20
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -40,9 +40,9 @@ export default [
|
|
|
40
40
|
|
|
41
41
|
## Rules
|
|
42
42
|
|
|
43
|
-
| Rule
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
43
|
+
| Rule | Description | 💼 | 💭 | ❌ |
|
|
44
|
+
| :--------------------------------------- | :---------------------------------------------------------------- | :-: | :-: | :-: |
|
|
45
|
+
| `ensure-custom-hooks-using-other-hooks` | Warns when custom Hooks that don't use other Hooks. | ✔️ | | |
|
|
46
|
+
| `ensure-use-callback-has-non-empty-deps` | Warns when `useCallback` is called with empty dependencies array. | 🧐 | | |
|
|
47
|
+
| `ensure-use-memo-has-non-empty-deps` | Warns when `useMemo` is called with empty dependencies array. | 🧐 | | |
|
|
48
|
+
| `prefer-use-state-lazy-initialization` | Warns function calls made inside `useState` calls. | 🚀 | | |
|
package/dist/index.d.mts
CHANGED
|
@@ -5,10 +5,10 @@ declare const meta: {
|
|
|
5
5
|
readonly version: string;
|
|
6
6
|
};
|
|
7
7
|
declare const rules: {
|
|
8
|
-
readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [],
|
|
9
|
-
readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [],
|
|
10
|
-
readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [],
|
|
11
|
-
readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [],
|
|
8
|
+
readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
9
|
+
readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
10
|
+
readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11
|
+
readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { meta, rules };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ declare const meta: {
|
|
|
5
5
|
readonly version: string;
|
|
6
6
|
};
|
|
7
7
|
declare const rules: {
|
|
8
|
-
readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [],
|
|
9
|
-
readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [],
|
|
10
|
-
readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [],
|
|
11
|
-
readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [],
|
|
8
|
+
readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
9
|
+
readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
10
|
+
readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11
|
+
readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { meta, rules };
|
package/dist/index.js
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.22-beta.1";
|
|
17
17
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
18
18
|
|
|
19
19
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
|
@@ -52,7 +52,7 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
|
|
|
52
52
|
defaultOptions: []
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
55
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Function.js
|
|
56
56
|
var Function_exports = {};
|
|
57
57
|
__export(Function_exports, {
|
|
58
58
|
SK: () => SK,
|
|
@@ -227,10 +227,10 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
227
227
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
228
228
|
var SK = (_2, b2) => b2;
|
|
229
229
|
|
|
230
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
230
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Equivalence.js
|
|
231
231
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
232
232
|
|
|
233
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
233
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/doNotation.js
|
|
234
234
|
var let_ = (map2) => dual(3, (self, name2, f) => map2(self, (a) => Object.assign({}, a, {
|
|
235
235
|
[name2]: f(a)
|
|
236
236
|
})));
|
|
@@ -241,11 +241,11 @@ var bind = (map2, flatMap2) => dual(3, (self, name2, f) => flatMap2(self, (a) =>
|
|
|
241
241
|
[name2]: b2
|
|
242
242
|
}))));
|
|
243
243
|
|
|
244
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
245
|
-
var moduleVersion = "3.4.
|
|
244
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/version.js
|
|
245
|
+
var moduleVersion = "3.4.7";
|
|
246
246
|
var getCurrentVersion = () => moduleVersion;
|
|
247
247
|
|
|
248
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
248
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/GlobalValue.js
|
|
249
249
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
250
250
|
if (!(globalStoreId in globalThis)) {
|
|
251
251
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -258,16 +258,16 @@ var globalValue = (id, compute) => {
|
|
|
258
258
|
return globalStore.get(id);
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
261
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Predicate.js
|
|
262
262
|
var isFunction2 = isFunction;
|
|
263
263
|
var isRecordOrArray = (input) => typeof input === "object" && input !== null;
|
|
264
264
|
var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
|
|
265
265
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
|
|
266
266
|
|
|
267
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
267
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/errors.js
|
|
268
268
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
269
269
|
|
|
270
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
270
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Utils.js
|
|
271
271
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
272
272
|
var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
|
|
273
273
|
var GenKindImpl = class {
|
|
@@ -384,7 +384,7 @@ var structuralRegionState = /* @__PURE__ */ globalValue("effect/Utils/isStructur
|
|
|
384
384
|
tester: void 0
|
|
385
385
|
}));
|
|
386
386
|
|
|
387
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
387
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Hash.js
|
|
388
388
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
389
389
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
390
390
|
var hash = (self) => {
|
|
@@ -473,7 +473,7 @@ var cached = function() {
|
|
|
473
473
|
return hash2;
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
476
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Equal.js
|
|
477
477
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
478
478
|
function equals() {
|
|
479
479
|
if (arguments.length === 1) {
|
|
@@ -525,7 +525,7 @@ function compareBoth(self, that) {
|
|
|
525
525
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
526
526
|
var equivalence = () => equals;
|
|
527
527
|
|
|
528
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
528
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Inspectable.js
|
|
529
529
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
530
530
|
var toJSON = (x2) => {
|
|
531
531
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -537,7 +537,7 @@ var toJSON = (x2) => {
|
|
|
537
537
|
};
|
|
538
538
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
539
539
|
|
|
540
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
540
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Pipeable.js
|
|
541
541
|
var pipeArguments = (self, args) => {
|
|
542
542
|
switch (args.length) {
|
|
543
543
|
case 1:
|
|
@@ -568,7 +568,7 @@ var pipeArguments = (self, args) => {
|
|
|
568
568
|
}
|
|
569
569
|
};
|
|
570
570
|
|
|
571
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
571
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/effectable.js
|
|
572
572
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
573
573
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
574
574
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -629,7 +629,7 @@ var EffectPrototype = {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
|
|
632
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
632
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/option.js
|
|
633
633
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
634
634
|
var CommonProto = {
|
|
635
635
|
...EffectPrototype,
|
|
@@ -687,7 +687,7 @@ var some = (value) => {
|
|
|
687
687
|
return a;
|
|
688
688
|
};
|
|
689
689
|
|
|
690
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
690
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/either.js
|
|
691
691
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
692
692
|
var CommonProto2 = {
|
|
693
693
|
...EffectPrototype,
|
|
@@ -751,7 +751,7 @@ var right = (right2) => {
|
|
|
751
751
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
752
752
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
753
753
|
|
|
754
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
754
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Option.js
|
|
755
755
|
var Option_exports = {};
|
|
756
756
|
__export(Option_exports, {
|
|
757
757
|
Do: () => Do,
|
|
@@ -813,10 +813,10 @@ __export(Option_exports, {
|
|
|
813
813
|
zipWith: () => zipWith
|
|
814
814
|
});
|
|
815
815
|
|
|
816
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
816
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Order.js
|
|
817
817
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
818
818
|
|
|
819
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
819
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Option.js
|
|
820
820
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
821
821
|
var none2 = () => none;
|
|
822
822
|
var some2 = some;
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var __export = (target, all2) => {
|
|
|
11
11
|
|
|
12
12
|
// package.json
|
|
13
13
|
var name = "eslint-plugin-react-hooks-extra";
|
|
14
|
-
var version = "1.5.
|
|
14
|
+
var version = "1.5.22-beta.1";
|
|
15
15
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
16
16
|
|
|
17
17
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
|
@@ -50,7 +50,7 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
|
|
|
50
50
|
defaultOptions: []
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
53
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Function.js
|
|
54
54
|
var Function_exports = {};
|
|
55
55
|
__export(Function_exports, {
|
|
56
56
|
SK: () => SK,
|
|
@@ -225,10 +225,10 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
225
225
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
226
226
|
var SK = (_2, b2) => b2;
|
|
227
227
|
|
|
228
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
228
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Equivalence.js
|
|
229
229
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
230
230
|
|
|
231
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
231
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/doNotation.js
|
|
232
232
|
var let_ = (map2) => dual(3, (self, name2, f) => map2(self, (a) => Object.assign({}, a, {
|
|
233
233
|
[name2]: f(a)
|
|
234
234
|
})));
|
|
@@ -239,11 +239,11 @@ var bind = (map2, flatMap2) => dual(3, (self, name2, f) => flatMap2(self, (a) =>
|
|
|
239
239
|
[name2]: b2
|
|
240
240
|
}))));
|
|
241
241
|
|
|
242
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
243
|
-
var moduleVersion = "3.4.
|
|
242
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/version.js
|
|
243
|
+
var moduleVersion = "3.4.7";
|
|
244
244
|
var getCurrentVersion = () => moduleVersion;
|
|
245
245
|
|
|
246
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
246
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/GlobalValue.js
|
|
247
247
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
248
248
|
if (!(globalStoreId in globalThis)) {
|
|
249
249
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -256,16 +256,16 @@ var globalValue = (id, compute) => {
|
|
|
256
256
|
return globalStore.get(id);
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
259
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Predicate.js
|
|
260
260
|
var isFunction2 = isFunction;
|
|
261
261
|
var isRecordOrArray = (input) => typeof input === "object" && input !== null;
|
|
262
262
|
var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
|
|
263
263
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
|
|
264
264
|
|
|
265
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
265
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/errors.js
|
|
266
266
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
267
267
|
|
|
268
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
268
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Utils.js
|
|
269
269
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
270
270
|
var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
|
|
271
271
|
var GenKindImpl = class {
|
|
@@ -382,7 +382,7 @@ var structuralRegionState = /* @__PURE__ */ globalValue("effect/Utils/isStructur
|
|
|
382
382
|
tester: void 0
|
|
383
383
|
}));
|
|
384
384
|
|
|
385
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
385
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Hash.js
|
|
386
386
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
387
387
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
388
388
|
var hash = (self) => {
|
|
@@ -471,7 +471,7 @@ var cached = function() {
|
|
|
471
471
|
return hash2;
|
|
472
472
|
};
|
|
473
473
|
|
|
474
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
474
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Equal.js
|
|
475
475
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
476
476
|
function equals() {
|
|
477
477
|
if (arguments.length === 1) {
|
|
@@ -523,7 +523,7 @@ function compareBoth(self, that) {
|
|
|
523
523
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
524
524
|
var equivalence = () => equals;
|
|
525
525
|
|
|
526
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
526
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Inspectable.js
|
|
527
527
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
528
528
|
var toJSON = (x2) => {
|
|
529
529
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -535,7 +535,7 @@ var toJSON = (x2) => {
|
|
|
535
535
|
};
|
|
536
536
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
537
537
|
|
|
538
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
538
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Pipeable.js
|
|
539
539
|
var pipeArguments = (self, args) => {
|
|
540
540
|
switch (args.length) {
|
|
541
541
|
case 1:
|
|
@@ -566,7 +566,7 @@ var pipeArguments = (self, args) => {
|
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
|
|
569
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
569
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/effectable.js
|
|
570
570
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
571
571
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
572
572
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -627,7 +627,7 @@ var EffectPrototype = {
|
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
629
|
|
|
630
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
630
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/option.js
|
|
631
631
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
632
632
|
var CommonProto = {
|
|
633
633
|
...EffectPrototype,
|
|
@@ -685,7 +685,7 @@ var some = (value) => {
|
|
|
685
685
|
return a;
|
|
686
686
|
};
|
|
687
687
|
|
|
688
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
688
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/internal/either.js
|
|
689
689
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
690
690
|
var CommonProto2 = {
|
|
691
691
|
...EffectPrototype,
|
|
@@ -749,7 +749,7 @@ var right = (right2) => {
|
|
|
749
749
|
var getLeft = (self) => isRight(self) ? none : some(self.left);
|
|
750
750
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
751
751
|
|
|
752
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
752
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Option.js
|
|
753
753
|
var Option_exports = {};
|
|
754
754
|
__export(Option_exports, {
|
|
755
755
|
Do: () => Do,
|
|
@@ -811,10 +811,10 @@ __export(Option_exports, {
|
|
|
811
811
|
zipWith: () => zipWith
|
|
812
812
|
});
|
|
813
813
|
|
|
814
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
814
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Order.js
|
|
815
815
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
816
816
|
|
|
817
|
-
// ../../../node_modules/.pnpm/effect@3.4.
|
|
817
|
+
// ../../../node_modules/.pnpm/effect@3.4.7/node_modules/effect/dist/esm/Option.js
|
|
818
818
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
819
819
|
var none2 = () => none;
|
|
820
820
|
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.22-beta.1",
|
|
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,21 +35,21 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/scope-manager": "
|
|
39
|
-
"@typescript-eslint/type-utils": "
|
|
40
|
-
"@typescript-eslint/types": "
|
|
41
|
-
"@typescript-eslint/utils": "
|
|
42
|
-
"@eslint-react/ast": "1.5.
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/shared": "1.5.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/var": "1.5.
|
|
38
|
+
"@typescript-eslint/scope-manager": "7.15.0",
|
|
39
|
+
"@typescript-eslint/type-utils": "7.15.0",
|
|
40
|
+
"@typescript-eslint/types": "7.15.0",
|
|
41
|
+
"@typescript-eslint/utils": "7.15.0",
|
|
42
|
+
"@eslint-react/ast": "1.5.22-beta.1",
|
|
43
|
+
"@eslint-react/jsx": "1.5.22-beta.1",
|
|
44
|
+
"@eslint-react/core": "1.5.22-beta.1",
|
|
45
|
+
"@eslint-react/shared": "1.5.22-beta.1",
|
|
46
|
+
"@eslint-react/types": "1.5.22-beta.1",
|
|
47
|
+
"@eslint-react/tools": "1.5.22-beta.1",
|
|
48
|
+
"@eslint-react/var": "1.5.22-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"dedent": "1.5.3",
|
|
52
|
-
"effect": "3.4.
|
|
52
|
+
"effect": "3.4.7",
|
|
53
53
|
"string-ts": "2.2.0",
|
|
54
54
|
"tsup": "8.1.0"
|
|
55
55
|
},
|