eslint-plugin-react-rsc 5.11.0 → 5.11.3

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 +8 -8
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.11.0";
37
+ var version = "5.11.3";
38
38
 
39
39
  //#endregion
40
40
  //#region src/utils/create-rule.ts
@@ -448,7 +448,7 @@ function create(context) {
448
448
  * @param node The function node to fix
449
449
  * @returns The fix function, or `null` if no fix is available
450
450
  */
451
- function getAsyncFix(node) {
451
+ function buildFixForAsync(node) {
452
452
  if (node.type === AST_NODE_TYPES.ArrowFunctionExpression) return (fixer) => fixer.insertTextBefore(node, "async ");
453
453
  const functionToken = context.sourceCode.getFirstToken(node);
454
454
  if (functionToken == null) return null;
@@ -464,7 +464,7 @@ function create(context) {
464
464
  const fn = Extract.unwrap(node);
465
465
  if (!Check.isFunction(fn) || fn.async) return;
466
466
  context.report({
467
- fix: getAsyncFix(fn),
467
+ fix: buildFixForAsync(fn),
468
468
  messageId,
469
469
  node: fn
470
470
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-rsc",
3
- "version": "5.11.0",
3
+ "version": "5.11.3",
4
4
  "description": "ESLint React's ESLint plugin for RSC related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -38,11 +38,11 @@
38
38
  "dependencies": {
39
39
  "@typescript-eslint/types": "^8.62.1",
40
40
  "@typescript-eslint/utils": "^8.62.1",
41
- "@eslint-react/ast": "5.11.0",
42
- "@eslint-react/core": "5.11.0",
43
- "@eslint-react/shared": "5.11.0",
44
- "@eslint-react/var": "5.11.0",
45
- "@eslint-react/eslint": "5.11.0"
41
+ "@eslint-react/core": "5.11.3",
42
+ "@eslint-react/eslint": "5.11.3",
43
+ "@eslint-react/ast": "5.11.3",
44
+ "@eslint-react/shared": "5.11.3",
45
+ "@eslint-react/var": "5.11.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.2.17",
@@ -51,8 +51,8 @@
51
51
  "eslint": "^10.6.0",
52
52
  "tsdown": "^0.22.3",
53
53
  "typescript": "6.0.3",
54
- "@local/configs": "0.0.0",
55
- "@local/eff": "0.0.0"
54
+ "@local/eff": "0.0.0",
55
+ "@local/configs": "0.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "eslint": "*",