eslint-plugin-react-rsc 5.1.0-next.0 → 5.2.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.js +4 -3
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DEFAULT_ESLINT_REACT_SETTINGS
|
|
1
|
+
import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
2
2
|
import * as ast from "@eslint-react/ast";
|
|
3
|
+
import { merge } from "@eslint-react/eslint";
|
|
3
4
|
import { resolve } from "@eslint-react/var";
|
|
4
5
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
5
6
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
@@ -32,7 +33,7 @@ const rules$4 = { "react-rsc/function-definition": "off" };
|
|
|
32
33
|
//#endregion
|
|
33
34
|
//#region package.json
|
|
34
35
|
var name$4 = "eslint-plugin-react-rsc";
|
|
35
|
-
var version = "5.
|
|
36
|
+
var version = "5.2.0-beta.0";
|
|
36
37
|
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region src/utils/create-rule.ts
|
|
@@ -105,7 +106,7 @@ function create(context) {
|
|
|
105
106
|
if (initNode == null || !ast.isFunction(initNode)) return;
|
|
106
107
|
reportNonAsyncFunction(initNode, "file");
|
|
107
108
|
}
|
|
108
|
-
return
|
|
109
|
+
return merge({
|
|
109
110
|
ArrowFunctionExpression(node) {
|
|
110
111
|
checkLocalServerFunction(node);
|
|
111
112
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-rsc",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for RSC related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,9 +42,10 @@
|
|
|
42
42
|
"@typescript-eslint/types": "^8.58.1",
|
|
43
43
|
"@typescript-eslint/utils": "^8.58.1",
|
|
44
44
|
"ts-pattern": "^5.9.0",
|
|
45
|
-
"@eslint-react/ast": "5.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/var": "5.
|
|
45
|
+
"@eslint-react/ast": "5.2.0-beta.0",
|
|
46
|
+
"@eslint-react/eslint": "5.2.0-beta.0",
|
|
47
|
+
"@eslint-react/var": "5.2.0-beta.0",
|
|
48
|
+
"@eslint-react/shared": "5.2.0-beta.0"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@types/react": "^19.2.14",
|