eslint-plugin-react-rsc 3.0.0-beta.29 → 3.0.0-beta.31
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 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const rules$4 = { "react-rsc/function-definition": "off" };
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region package.json
|
|
34
34
|
var name$4 = "eslint-plugin-react-rsc";
|
|
35
|
-
var version = "3.0.0-beta.
|
|
35
|
+
var version = "3.0.0-beta.31";
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/utils/create-rule.ts
|
|
@@ -101,9 +101,9 @@ function create(context) {
|
|
|
101
101
|
* @param node The export declaration node
|
|
102
102
|
*/
|
|
103
103
|
function findAndCheckExportedFunctionDeclarations(id, node) {
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
-
reportNonAsyncFunction(
|
|
104
|
+
const initNode = getVariableInitializer(findVariable(id.name, context.sourceCode.getScope(node)), 0);
|
|
105
|
+
if (initNode == null) return;
|
|
106
|
+
reportNonAsyncFunction(initNode, "file");
|
|
107
107
|
}
|
|
108
108
|
return defineRuleListener({
|
|
109
109
|
ArrowFunctionExpression(node) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-rsc",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.31",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for RSC related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@typescript-eslint/types": "canary",
|
|
41
41
|
"@typescript-eslint/utils": "canary",
|
|
42
42
|
"ts-pattern": "^5.9.0",
|
|
43
|
-
"@eslint-react/ast": "3.0.0-beta.
|
|
44
|
-
"@eslint-react/eff": "3.0.0-beta.
|
|
45
|
-
"@eslint-react/shared": "3.0.0-beta.
|
|
46
|
-
"@eslint-react/var": "3.0.0-beta.
|
|
43
|
+
"@eslint-react/ast": "3.0.0-beta.31",
|
|
44
|
+
"@eslint-react/eff": "3.0.0-beta.31",
|
|
45
|
+
"@eslint-react/shared": "3.0.0-beta.31",
|
|
46
|
+
"@eslint-react/var": "3.0.0-beta.31"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/react": "^19.2.14",
|