eslint-plugin-react-rsc 5.28.7 → 5.30.0-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.d.ts +0 -2
- package/dist/index.js +13 -25
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ESLint, Linter } from "eslint";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
type ConfigName = "disable-experimental" | "recommended" | "recommended-typescript" | "strict" | "strict-typescript";
|
|
4
3
|
declare const finalPlugin: ESLint.Plugin & {
|
|
5
4
|
configs: Record<ConfigName, Linter.Config>;
|
|
6
5
|
};
|
|
7
|
-
//#endregion
|
|
8
6
|
export { finalPlugin as default };
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as core from "@eslint-react/core";
|
|
|
5
5
|
import "@eslint-react/eslint";
|
|
6
6
|
import { resolve } from "@eslint-react/var";
|
|
7
7
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
8
|
-
|
|
8
|
+
// \0rolldown/runtime.js
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __exportAll = (all, no_symbols) => {
|
|
11
11
|
let target = {};
|
|
@@ -16,26 +16,22 @@ var __exportAll = (all, no_symbols) => {
|
|
|
16
16
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
17
|
return target;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
//#region src/configs/disable-experimental.ts
|
|
19
|
+
// src/configs/disable-experimental.ts
|
|
21
20
|
var disable_experimental_exports = /* @__PURE__ */ __exportAll({
|
|
22
21
|
name: () => name$5,
|
|
23
22
|
rules: () => rules$4
|
|
24
23
|
});
|
|
25
24
|
const name$5 = "react-rsc/disable-experimental";
|
|
26
25
|
const rules$4 = { "react-rsc/function-definition": "off" };
|
|
27
|
-
|
|
28
|
-
//#region package.json
|
|
26
|
+
// package.json
|
|
29
27
|
var name$4 = "eslint-plugin-react-rsc";
|
|
30
|
-
var version = "5.
|
|
31
|
-
|
|
32
|
-
//#region src/utils/create-rule.ts
|
|
28
|
+
var version = "5.30.0-beta.0";
|
|
29
|
+
// src/utils/create-rule.ts
|
|
33
30
|
function getDocsUrl(ruleName) {
|
|
34
31
|
return `https://eslint-react.xyz/docs/rules/rsc-${ruleName}`;
|
|
35
32
|
}
|
|
36
33
|
const createRule = ESLintUtils.RuleCreator(getDocsUrl);
|
|
37
|
-
|
|
38
|
-
//#region ../../node_modules/.pnpm/ts-pattern@5.9.2/node_modules/ts-pattern/dist/index.js
|
|
34
|
+
// ../../node_modules/.pnpm/ts-pattern@5.9.2/node_modules/ts-pattern/dist/index.js
|
|
39
35
|
const t = Symbol.for("@ts-pattern/matcher");
|
|
40
36
|
const e = Symbol.for("@ts-pattern/isVariadic");
|
|
41
37
|
const n = "@ts-pattern/anonymous-select-key";
|
|
@@ -389,8 +385,7 @@ var z = {
|
|
|
389
385
|
return a(p(u(t)));
|
|
390
386
|
}
|
|
391
387
|
};
|
|
392
|
-
|
|
393
|
-
//#region src/rules/function-definition/lib.ts
|
|
388
|
+
// src/rules/function-definition/lib.ts
|
|
394
389
|
function isDirectiveName(value) {
|
|
395
390
|
return value === "use client" || value === "use server";
|
|
396
391
|
}
|
|
@@ -550,8 +545,7 @@ function create(context) {
|
|
|
550
545
|
Program: checkFileDirectives
|
|
551
546
|
};
|
|
552
547
|
}
|
|
553
|
-
|
|
554
|
-
//#region src/plugin.ts
|
|
548
|
+
// src/plugin.ts
|
|
555
549
|
const plugin = {
|
|
556
550
|
meta: {
|
|
557
551
|
name: name$4,
|
|
@@ -559,8 +553,7 @@ const plugin = {
|
|
|
559
553
|
},
|
|
560
554
|
rules: { "function-definition": function_definition_default }
|
|
561
555
|
};
|
|
562
|
-
|
|
563
|
-
//#region src/configs/recommended.ts
|
|
556
|
+
// src/configs/recommended.ts
|
|
564
557
|
var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
565
558
|
name: () => name$3,
|
|
566
559
|
plugins: () => plugins$3,
|
|
@@ -571,8 +564,7 @@ const name$3 = "react-rsc/recommended";
|
|
|
571
564
|
const rules$3 = { "react-rsc/function-definition": "error" };
|
|
572
565
|
const plugins$3 = { "react-rsc": plugin };
|
|
573
566
|
const settings$3 = { "react-rsc": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
574
|
-
|
|
575
|
-
//#region src/configs/recommended-typescript.ts
|
|
567
|
+
// src/configs/recommended-typescript.ts
|
|
576
568
|
var recommended_typescript_exports = /* @__PURE__ */ __exportAll({
|
|
577
569
|
name: () => name$2,
|
|
578
570
|
plugins: () => plugins$2,
|
|
@@ -583,8 +575,7 @@ const name$2 = "react-rsc/recommended-typescript";
|
|
|
583
575
|
const rules$2 = { ...rules$3 };
|
|
584
576
|
const plugins$2 = { ...plugins$3 };
|
|
585
577
|
const settings$2 = { ...settings$3 };
|
|
586
|
-
|
|
587
|
-
//#region src/configs/strict.ts
|
|
578
|
+
// src/configs/strict.ts
|
|
588
579
|
var strict_exports = /* @__PURE__ */ __exportAll({
|
|
589
580
|
name: () => name$1,
|
|
590
581
|
plugins: () => plugins$1,
|
|
@@ -595,8 +586,7 @@ const name$1 = "react-rsc/strict";
|
|
|
595
586
|
const rules$1 = { ...rules$3 };
|
|
596
587
|
const plugins$1 = { ...plugins$3 };
|
|
597
588
|
const settings$1 = { ...settings$3 };
|
|
598
|
-
|
|
599
|
-
//#region src/configs/strict-typescript.ts
|
|
589
|
+
// src/configs/strict-typescript.ts
|
|
600
590
|
var strict_typescript_exports = /* @__PURE__ */ __exportAll({
|
|
601
591
|
name: () => name,
|
|
602
592
|
plugins: () => plugins,
|
|
@@ -607,8 +597,7 @@ const name = "react-rsc/strict-typescript";
|
|
|
607
597
|
const rules = { ...rules$1 };
|
|
608
598
|
const plugins = { ...plugins$1 };
|
|
609
599
|
const settings = { ...settings$1 };
|
|
610
|
-
|
|
611
|
-
//#region src/index.ts
|
|
600
|
+
// src/index.ts
|
|
612
601
|
function createConfig(base) {
|
|
613
602
|
return {
|
|
614
603
|
...base,
|
|
@@ -630,5 +619,4 @@ const finalPlugin = {
|
|
|
630
619
|
["strict-typescript"]: createConfig(strict_typescript_exports)
|
|
631
620
|
}
|
|
632
621
|
};
|
|
633
|
-
//#endregion
|
|
634
622
|
export { finalPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-rsc",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for RSC related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eslint-react/ast": "5.
|
|
40
|
-
"@eslint-react/core": "5.
|
|
41
|
-
"@eslint-react/eslint": "5.
|
|
42
|
-
"@eslint-react/shared": "5.
|
|
43
|
-
"@eslint-react/var": "5.
|
|
39
|
+
"@eslint-react/ast": "5.30.0-beta.0",
|
|
40
|
+
"@eslint-react/core": "5.30.0-beta.0",
|
|
41
|
+
"@eslint-react/eslint": "5.30.0-beta.0",
|
|
42
|
+
"@eslint-react/shared": "5.30.0-beta.0",
|
|
43
|
+
"@eslint-react/var": "5.30.0-beta.0",
|
|
44
44
|
"@typescript-eslint/types": "^8.72.0",
|
|
45
45
|
"@typescript-eslint/utils": "^8.72.0"
|
|
46
46
|
},
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/react-dom": "^19.3.0",
|
|
54
54
|
"dedent": "^1.7.2",
|
|
55
55
|
"eslint": "^10.13.0",
|
|
56
|
-
"tsdown": "^0.23.
|
|
56
|
+
"tsdown": "^0.23.2",
|
|
57
57
|
"typescript": "6.0.3"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|