eslint-plugin-react-rsc 3.0.0-next.12 → 3.0.0-next.13

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, defineRuleListener, getConfigAdapters } from "@eslint-react/shared";
2
2
  import * as ast from "@eslint-react/ast";
3
- import { findVariable, getVariableDefinitionNode } from "@eslint-react/var";
3
+ import { findVariable, getVariableInitializer } from "@eslint-react/var";
4
4
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
5
5
  import { ESLintUtils } from "@typescript-eslint/utils";
6
6
 
@@ -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-next.12";
35
+ var version = "3.0.0-next.13";
36
36
 
37
37
  //#endregion
38
38
  //#region src/utils/create-rule.ts
@@ -101,7 +101,7 @@ function create(context) {
101
101
  * @param node The export declaration node
102
102
  */
103
103
  function findAndCheckExportedFunctionDeclarations(id, node) {
104
- const variableNode = getVariableDefinitionNode(findVariable(id.name, context.sourceCode.getScope(node)), 0);
104
+ const variableNode = getVariableInitializer(findVariable(id.name, context.sourceCode.getScope(node)), 0);
105
105
  if (variableNode == null) return;
106
106
  reportNonAsyncFunction(variableNode, "file");
107
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-rsc",
3
- "version": "3.0.0-next.12",
3
+ "version": "3.0.0-next.13",
4
4
  "description": "ESLint React's ESLint plugin for RSC related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -40,9 +40,9 @@
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-next.12",
44
- "@eslint-react/var": "3.0.0-next.12",
45
- "@eslint-react/shared": "3.0.0-next.12"
43
+ "@eslint-react/ast": "3.0.0-next.13",
44
+ "@eslint-react/var": "3.0.0-next.13",
45
+ "@eslint-react/shared": "3.0.0-next.13"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.2.14",