eslint-plugin-react-hooks-extra 1.5.4-next.5 → 1.5.4
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 +19 -19
- package/dist/index.mjs +19 -19
- package/package.json +8 -8
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.4
|
|
18
|
+
var version = "1.5.4";
|
|
19
19
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
20
20
|
|
|
21
21
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
|
@@ -1017,7 +1017,7 @@ var gen = (f) => {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
1020
|
-
// ../../../node_modules/.pnpm/ts-pattern@5.0.
|
|
1020
|
+
// ../../../node_modules/.pnpm/ts-pattern@5.0.8/node_modules/ts-pattern/dist/index.js
|
|
1021
1021
|
var t = Symbol.for("@ts-pattern/matcher");
|
|
1022
1022
|
var e = Symbol.for("@ts-pattern/isVariadic");
|
|
1023
1023
|
var n = "@ts-pattern/anonymous-select-key";
|
|
@@ -1063,7 +1063,7 @@ var o = (e2) => {
|
|
|
1063
1063
|
};
|
|
1064
1064
|
var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
|
|
1065
1065
|
function u(t2) {
|
|
1066
|
-
return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) =>
|
|
1066
|
+
return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? p(t2) : p(e2, t2) });
|
|
1067
1067
|
}
|
|
1068
1068
|
function l(e2) {
|
|
1069
1069
|
return u({ [t]: () => ({ match: (t2) => {
|
|
@@ -1083,7 +1083,7 @@ function m(...e2) {
|
|
|
1083
1083
|
return { matched: e2.every((e3) => s(e3, t2, r2)), selections: n2 };
|
|
1084
1084
|
}, getSelectionKeys: () => c(e2, o), matcherType: "and" }) });
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function d(...e2) {
|
|
1087
1087
|
return u({ [t]: () => ({ match: (t2) => {
|
|
1088
1088
|
let n2 = {};
|
|
1089
1089
|
const r2 = (t3, e3) => {
|
|
@@ -1092,7 +1092,7 @@ function y(...e2) {
|
|
|
1092
1092
|
return c(e2, o).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => s(e3, t2, r2)), selections: n2 };
|
|
1093
1093
|
}, getSelectionKeys: () => c(e2, o), matcherType: "or" }) });
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function y(e2) {
|
|
1096
1096
|
return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
|
|
1097
1097
|
}
|
|
1098
1098
|
function p(...e2) {
|
|
@@ -1113,34 +1113,34 @@ function b(t2) {
|
|
|
1113
1113
|
function w(t2) {
|
|
1114
1114
|
return "bigint" == typeof t2;
|
|
1115
1115
|
}
|
|
1116
|
-
u(
|
|
1116
|
+
u(y(function(t2) {
|
|
1117
1117
|
return true;
|
|
1118
1118
|
}));
|
|
1119
1119
|
var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
|
|
1120
|
-
return j(m(t2, (n2 = e2,
|
|
1120
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.startsWith(n2)))));
|
|
1121
1121
|
var n2;
|
|
1122
1122
|
}, endsWith: (e2) => {
|
|
1123
|
-
return j(m(t2, (n2 = e2,
|
|
1123
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.endsWith(n2)))));
|
|
1124
1124
|
var n2;
|
|
1125
|
-
}, minLength: (e2) => j(m(t2, ((t3) =>
|
|
1126
|
-
return j(m(t2, (n2 = e2,
|
|
1125
|
+
}, minLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length >= t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
|
|
1126
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.includes(n2)))));
|
|
1127
1127
|
var n2;
|
|
1128
1128
|
}, regex: (e2) => {
|
|
1129
|
-
return j(m(t2, (n2 = e2,
|
|
1129
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && Boolean(t3.match(n2))))));
|
|
1130
1130
|
var n2;
|
|
1131
1131
|
} });
|
|
1132
|
-
j(
|
|
1133
|
-
var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) =>
|
|
1134
|
-
K(
|
|
1135
|
-
var
|
|
1136
|
-
|
|
1137
|
-
u(
|
|
1132
|
+
j(y(b));
|
|
1133
|
+
var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) => y((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 >= t3))(e2))), int: () => K(m(t2, y((t3) => v(t3) && Number.isInteger(t3)))), finite: () => K(m(t2, y((t3) => v(t3) && Number.isFinite(t3)))), positive: () => K(m(t2, y((t3) => v(t3) && t3 > 0))), negative: () => K(m(t2, y((t3) => v(t3) && t3 < 0))) });
|
|
1134
|
+
K(y(v));
|
|
1135
|
+
var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => y((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, y((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, y((t3) => w(t3) && t3 < 0))) });
|
|
1136
|
+
A(y(w));
|
|
1137
|
+
u(y(function(t2) {
|
|
1138
1138
|
return "boolean" == typeof t2;
|
|
1139
1139
|
}));
|
|
1140
|
-
u(
|
|
1140
|
+
u(y(function(t2) {
|
|
1141
1141
|
return "symbol" == typeof t2;
|
|
1142
1142
|
}));
|
|
1143
|
-
u(
|
|
1143
|
+
u(y(function(t2) {
|
|
1144
1144
|
return null == t2;
|
|
1145
1145
|
}));
|
|
1146
1146
|
var W = { matched: false, value: void 0 };
|
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.4
|
|
16
|
+
var version = "1.5.4";
|
|
17
17
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
18
18
|
|
|
19
19
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
|
@@ -1015,7 +1015,7 @@ var gen = (f) => {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
};
|
|
1017
1017
|
|
|
1018
|
-
// ../../../node_modules/.pnpm/ts-pattern@5.0.
|
|
1018
|
+
// ../../../node_modules/.pnpm/ts-pattern@5.0.8/node_modules/ts-pattern/dist/index.js
|
|
1019
1019
|
var t = Symbol.for("@ts-pattern/matcher");
|
|
1020
1020
|
var e = Symbol.for("@ts-pattern/isVariadic");
|
|
1021
1021
|
var n = "@ts-pattern/anonymous-select-key";
|
|
@@ -1061,7 +1061,7 @@ var o = (e2) => {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
|
|
1063
1063
|
function u(t2) {
|
|
1064
|
-
return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) =>
|
|
1064
|
+
return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? p(t2) : p(e2, t2) });
|
|
1065
1065
|
}
|
|
1066
1066
|
function l(e2) {
|
|
1067
1067
|
return u({ [t]: () => ({ match: (t2) => {
|
|
@@ -1081,7 +1081,7 @@ function m(...e2) {
|
|
|
1081
1081
|
return { matched: e2.every((e3) => s(e3, t2, r2)), selections: n2 };
|
|
1082
1082
|
}, getSelectionKeys: () => c(e2, o), matcherType: "and" }) });
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function d(...e2) {
|
|
1085
1085
|
return u({ [t]: () => ({ match: (t2) => {
|
|
1086
1086
|
let n2 = {};
|
|
1087
1087
|
const r2 = (t3, e3) => {
|
|
@@ -1090,7 +1090,7 @@ function y(...e2) {
|
|
|
1090
1090
|
return c(e2, o).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => s(e3, t2, r2)), selections: n2 };
|
|
1091
1091
|
}, getSelectionKeys: () => c(e2, o), matcherType: "or" }) });
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function y(e2) {
|
|
1094
1094
|
return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
|
|
1095
1095
|
}
|
|
1096
1096
|
function p(...e2) {
|
|
@@ -1111,34 +1111,34 @@ function b(t2) {
|
|
|
1111
1111
|
function w(t2) {
|
|
1112
1112
|
return "bigint" == typeof t2;
|
|
1113
1113
|
}
|
|
1114
|
-
u(
|
|
1114
|
+
u(y(function(t2) {
|
|
1115
1115
|
return true;
|
|
1116
1116
|
}));
|
|
1117
1117
|
var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
|
|
1118
|
-
return j(m(t2, (n2 = e2,
|
|
1118
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.startsWith(n2)))));
|
|
1119
1119
|
var n2;
|
|
1120
1120
|
}, endsWith: (e2) => {
|
|
1121
|
-
return j(m(t2, (n2 = e2,
|
|
1121
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.endsWith(n2)))));
|
|
1122
1122
|
var n2;
|
|
1123
|
-
}, minLength: (e2) => j(m(t2, ((t3) =>
|
|
1124
|
-
return j(m(t2, (n2 = e2,
|
|
1123
|
+
}, minLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length >= t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
|
|
1124
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.includes(n2)))));
|
|
1125
1125
|
var n2;
|
|
1126
1126
|
}, regex: (e2) => {
|
|
1127
|
-
return j(m(t2, (n2 = e2,
|
|
1127
|
+
return j(m(t2, (n2 = e2, y((t3) => b(t3) && Boolean(t3.match(n2))))));
|
|
1128
1128
|
var n2;
|
|
1129
1129
|
} });
|
|
1130
|
-
j(
|
|
1131
|
-
var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) =>
|
|
1132
|
-
K(
|
|
1133
|
-
var
|
|
1134
|
-
|
|
1135
|
-
u(
|
|
1130
|
+
j(y(b));
|
|
1131
|
+
var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) => y((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 >= t3))(e2))), int: () => K(m(t2, y((t3) => v(t3) && Number.isInteger(t3)))), finite: () => K(m(t2, y((t3) => v(t3) && Number.isFinite(t3)))), positive: () => K(m(t2, y((t3) => v(t3) && t3 > 0))), negative: () => K(m(t2, y((t3) => v(t3) && t3 < 0))) });
|
|
1132
|
+
K(y(v));
|
|
1133
|
+
var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => y((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, y((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, y((t3) => w(t3) && t3 < 0))) });
|
|
1134
|
+
A(y(w));
|
|
1135
|
+
u(y(function(t2) {
|
|
1136
1136
|
return "boolean" == typeof t2;
|
|
1137
1137
|
}));
|
|
1138
|
-
u(
|
|
1138
|
+
u(y(function(t2) {
|
|
1139
1139
|
return "symbol" == typeof t2;
|
|
1140
1140
|
}));
|
|
1141
|
-
u(
|
|
1141
|
+
u(y(function(t2) {
|
|
1142
1142
|
return null == t2;
|
|
1143
1143
|
}));
|
|
1144
1144
|
var W = { matched: false, value: void 0 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.5.4
|
|
3
|
+
"version": "1.5.4",
|
|
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,13 +41,13 @@
|
|
|
41
41
|
"@typescript-eslint/types": ">=7.0.1",
|
|
42
42
|
"@typescript-eslint/utils": ">=7.0.1",
|
|
43
43
|
"string-ts": "2.0.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/jsx": "1.5.4
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/tools": "1.5.4
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "1.5.4",
|
|
45
|
+
"@eslint-react/jsx": "1.5.4",
|
|
46
|
+
"@eslint-react/shared": "1.5.4",
|
|
47
|
+
"@eslint-react/core": "1.5.4",
|
|
48
|
+
"@eslint-react/tools": "1.5.4",
|
|
49
|
+
"@eslint-react/var": "1.5.4",
|
|
50
|
+
"@eslint-react/types": "1.5.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"effect": "2.3.6"
|