eslint-plugin-react-rsc 5.14.6 → 5.14.7
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 +25 -9
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ const rules$4 = { "react-rsc/function-definition": "off" };
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region package.json
|
|
36
36
|
var name$4 = "eslint-plugin-react-rsc";
|
|
37
|
-
var version = "5.14.
|
|
37
|
+
var version = "5.14.7";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/utils/create-rule.ts
|
|
@@ -45,7 +45,12 @@ const createRule = ESLintUtils.RuleCreator(getDocsUrl);
|
|
|
45
45
|
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region ../../node_modules/.pnpm/ts-pattern@5.9.0/node_modules/ts-pattern/dist/index.js
|
|
48
|
-
const t = Symbol.for("@ts-pattern/matcher")
|
|
48
|
+
const t = Symbol.for("@ts-pattern/matcher");
|
|
49
|
+
const e = Symbol.for("@ts-pattern/isVariadic");
|
|
50
|
+
const n = "@ts-pattern/anonymous-select-key";
|
|
51
|
+
const r = (t) => Boolean(t && "object" == typeof t);
|
|
52
|
+
const i = (e) => e && !!e[t];
|
|
53
|
+
const o = (n, s, c) => {
|
|
49
54
|
if (i(n)) {
|
|
50
55
|
const { matched: r, selections: i } = n[t]().match(s);
|
|
51
56
|
return r && i && Object.keys(i).forEach((t) => c(t, i[t])), r;
|
|
@@ -74,10 +79,12 @@ const t = Symbol.for("@ts-pattern/matcher"), e = Symbol.for("@ts-pattern/isVaria
|
|
|
74
79
|
});
|
|
75
80
|
}
|
|
76
81
|
return Object.is(s, n);
|
|
77
|
-
}
|
|
82
|
+
};
|
|
83
|
+
const s = (e) => {
|
|
78
84
|
var n, o, u;
|
|
79
85
|
return r(e) ? i(e) ? null != (n = null == (o = (u = e[t]()).getSelectionKeys) ? void 0 : o.call(u)) ? n : [] : Array.isArray(e) ? c(e, s) : c(Object.values(e), s) : [];
|
|
80
|
-
}
|
|
86
|
+
};
|
|
87
|
+
const c = (t, e) => t.reduce((t, n) => t.concat(e(n)), []);
|
|
81
88
|
function u(...t) {
|
|
82
89
|
if (1 === t.length) {
|
|
83
90
|
const [e] = t;
|
|
@@ -138,10 +145,12 @@ function h(e) {
|
|
|
138
145
|
const f = (t, e) => {
|
|
139
146
|
for (const n of t) if (!e(n)) return !1;
|
|
140
147
|
return !0;
|
|
141
|
-
}
|
|
148
|
+
};
|
|
149
|
+
const g = (t, e) => {
|
|
142
150
|
for (const [n, r] of t.entries()) if (!e(r, n)) return !1;
|
|
143
151
|
return !0;
|
|
144
|
-
}
|
|
152
|
+
};
|
|
153
|
+
const m = (t, e) => {
|
|
145
154
|
const n = Reflect.ownKeys(t);
|
|
146
155
|
for (const r of n) if (!e(r, t[r])) return !1;
|
|
147
156
|
return !0;
|
|
@@ -208,7 +217,10 @@ function S(t) {
|
|
|
208
217
|
function j(t) {
|
|
209
218
|
return "bigint" == typeof t;
|
|
210
219
|
}
|
|
211
|
-
const K = a(p(b))
|
|
220
|
+
const K = a(p(b));
|
|
221
|
+
const O = a(p(b));
|
|
222
|
+
const E = K;
|
|
223
|
+
const x = (t) => Object.assign(a(t), {
|
|
212
224
|
startsWith: (e) => {
|
|
213
225
|
return x(d(t, (n = e, p((t) => S(t) && t.startsWith(n)))));
|
|
214
226
|
var n;
|
|
@@ -228,7 +240,9 @@ const K = a(p(b)), O = a(p(b)), E = K, x = (t) => Object.assign(a(t), {
|
|
|
228
240
|
return x(d(t, (n = e, p((t) => S(t) && Boolean(t.match(n))))));
|
|
229
241
|
var n;
|
|
230
242
|
}
|
|
231
|
-
})
|
|
243
|
+
});
|
|
244
|
+
const A = x(p(S));
|
|
245
|
+
const N = (t) => Object.assign(a(t), {
|
|
232
246
|
between: (e, n) => N(d(t, ((t, e) => p((n) => w(n) && t <= n && e >= n))(e, n))),
|
|
233
247
|
lt: (e) => N(d(t, ((t) => p((e) => w(e) && e < t))(e))),
|
|
234
248
|
gt: (e) => N(d(t, ((t) => p((e) => w(e) && e > t))(e))),
|
|
@@ -238,7 +252,9 @@ const K = a(p(b)), O = a(p(b)), E = K, x = (t) => Object.assign(a(t), {
|
|
|
238
252
|
finite: () => N(d(t, p((t) => w(t) && Number.isFinite(t)))),
|
|
239
253
|
positive: () => N(d(t, p((t) => w(t) && t > 0))),
|
|
240
254
|
negative: () => N(d(t, p((t) => w(t) && t < 0)))
|
|
241
|
-
})
|
|
255
|
+
});
|
|
256
|
+
const P = N(p(w));
|
|
257
|
+
const k = (t) => Object.assign(a(t), {
|
|
242
258
|
between: (e, n) => k(d(t, ((t, e) => p((n) => j(n) && t <= n && e >= n))(e, n))),
|
|
243
259
|
lt: (e) => k(d(t, ((t) => p((e) => j(e) && e < t))(e))),
|
|
244
260
|
gt: (e) => k(d(t, ((t) => p((e) => j(e) && e > t))(e))),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-rsc",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.7",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for RSC related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@typescript-eslint/types": "^8.63.0",
|
|
40
40
|
"@typescript-eslint/utils": "^8.63.0",
|
|
41
|
-
"@eslint-react/
|
|
42
|
-
"@eslint-react/
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
41
|
+
"@eslint-react/eslint": "5.14.7",
|
|
42
|
+
"@eslint-react/ast": "5.14.7",
|
|
43
|
+
"@eslint-react/core": "5.14.7",
|
|
44
|
+
"@eslint-react/shared": "5.14.7",
|
|
45
|
+
"@eslint-react/var": "5.14.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/react": "^19.2.17",
|