eslint-plugin-react-rsc 2.14.0-next.0 → 3.0.0-beta.1
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 +2 -2
- package/package.json +6 -6
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 = "
|
|
35
|
+
var version = "3.0.0-beta.1";
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/utils/create-rule.ts
|
|
@@ -61,7 +61,7 @@ var function_definition_default = createRule({
|
|
|
61
61
|
});
|
|
62
62
|
function create(context) {
|
|
63
63
|
if (!context.sourceCode.text.includes("use server")) return {};
|
|
64
|
-
const hasFileLevelUseServerDirective = ast.
|
|
64
|
+
const hasFileLevelUseServerDirective = ast.isDirectiveInFile(context.sourceCode.ast, "use server");
|
|
65
65
|
/**
|
|
66
66
|
* Check if `node` is an async function, and report if not
|
|
67
67
|
* @param node The function node to check
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-rsc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for RSC related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"./package.json"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/types": "^8.
|
|
41
|
-
"@typescript-eslint/utils": "^8.
|
|
40
|
+
"@typescript-eslint/types": "^8.56.0",
|
|
41
|
+
"@typescript-eslint/utils": "^8.56.0",
|
|
42
42
|
"ts-pattern": "^5.9.0",
|
|
43
|
-
"@eslint-react/ast": "
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/ast": "3.0.0-beta.1",
|
|
44
|
+
"@eslint-react/var": "3.0.0-beta.1",
|
|
45
|
+
"@eslint-react/shared": "3.0.0-beta.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/react": "^19.2.14",
|