eslint-plugin-react-rsc 5.3.3-next.0 → 5.3.3-next.2
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 +4 -5
- package/package.json +10 -10
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.3.3-next.
|
|
37
|
+
var version = "5.3.3-next.2";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/utils/create-rule.ts
|
|
@@ -102,9 +102,8 @@ function create(context) {
|
|
|
102
102
|
/**
|
|
103
103
|
* Find function declarations from exports and check them
|
|
104
104
|
* @param id The identifier of the exported function
|
|
105
|
-
* @param node The export declaration node
|
|
106
105
|
*/
|
|
107
|
-
function findAndCheckExportedFunctionDeclarations(id
|
|
106
|
+
function findAndCheckExportedFunctionDeclarations(id) {
|
|
108
107
|
const initNode = resolve(context, id);
|
|
109
108
|
if (initNode == null) return;
|
|
110
109
|
const unwrapped = Extract.unwrap(initNode);
|
|
@@ -119,7 +118,7 @@ function create(context) {
|
|
|
119
118
|
if (!hasFileLevelUseServerDirective) return;
|
|
120
119
|
const decl = node.declaration;
|
|
121
120
|
if (reportNonAsyncFunction(decl, "file")) return;
|
|
122
|
-
if (decl.type === AST_NODE_TYPES.Identifier) findAndCheckExportedFunctionDeclarations(decl
|
|
121
|
+
if (decl.type === AST_NODE_TYPES.Identifier) findAndCheckExportedFunctionDeclarations(decl);
|
|
123
122
|
},
|
|
124
123
|
ExportNamedDeclaration(node) {
|
|
125
124
|
if (!hasFileLevelUseServerDirective) return;
|
|
@@ -129,7 +128,7 @@ function create(context) {
|
|
|
129
128
|
if (decl.type === AST_NODE_TYPES.VariableDeclaration) for (const declarator of decl.declarations) reportNonAsyncFunction(declarator.init, "file");
|
|
130
129
|
return;
|
|
131
130
|
}
|
|
132
|
-
if (node.source == null && node.specifiers.length > 0) for (const spec of node.specifiers) findAndCheckExportedFunctionDeclarations(spec.local
|
|
131
|
+
if (node.source == null && node.specifiers.length > 0) for (const spec of node.specifiers) findAndCheckExportedFunctionDeclarations(spec.local);
|
|
133
132
|
},
|
|
134
133
|
FunctionDeclaration(node) {
|
|
135
134
|
checkLocalServerFunction(node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-rsc",
|
|
3
|
-
"version": "5.3.3-next.
|
|
3
|
+
"version": "5.3.3-next.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for RSC related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"./package.json"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
41
|
-
"@typescript-eslint/type-utils": "^8.
|
|
42
|
-
"@typescript-eslint/types": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.59.0",
|
|
41
|
+
"@typescript-eslint/type-utils": "^8.59.0",
|
|
42
|
+
"@typescript-eslint/types": "^8.59.0",
|
|
43
|
+
"@typescript-eslint/utils": "^8.59.0",
|
|
44
44
|
"ts-pattern": "^5.9.0",
|
|
45
|
-
"@eslint-react/ast": "5.3.3-next.
|
|
46
|
-
"@eslint-react/core": "5.3.3-next.
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
45
|
+
"@eslint-react/ast": "5.3.3-next.2",
|
|
46
|
+
"@eslint-react/core": "5.3.3-next.2",
|
|
47
|
+
"@eslint-react/shared": "5.3.3-next.2",
|
|
48
|
+
"@eslint-react/var": "5.3.3-next.2",
|
|
49
|
+
"@eslint-react/eslint": "5.3.3-next.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.2.14",
|