eslint-plugin-react-rsc 5.23.5 → 5.24.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +7 -6
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.23.5";
37
+ var version = "5.24.0-beta.0";
38
38
 
39
39
  //#endregion
40
40
  //#region src/utils/create-rule.ts
@@ -440,12 +440,12 @@ var function_definition_default = createRule({
440
440
  fixable: "code",
441
441
  messages: {
442
442
  file: "Functions exported from files with `use server` directive are React Server Functions and therefore must be async.",
443
- fileDirectivePosition: "The '{{name}}' directive must be at the very beginning of the file, before any imports or other code.",
444
- fileDirectiveQuote: "The '{{name}}' directive must be written with single or double quotes, not backticks.",
443
+ "file-directive-position": "The '{{name}}' directive must be at the very beginning of the file, before any imports or other code.",
444
+ "file-directive-quote": "The '{{name}}' directive must be written with single or double quotes, not backticks.",
445
445
  local: "Functions with `use server` directive are React Server Functions and therefore must be async.",
446
- localDirectivePosition: "The '{{name}}' directive must be at the very beginning of the function body.",
447
- localDirectiveQuote: "The '{{name}}' directive must be written with single or double quotes, not backticks.",
448
- localDirectiveUnexpected: "The '{{name}}' directive can only be used at the top of a file, not inside a function body."
446
+ "local-directive-position": "The '{{name}}' directive must be at the very beginning of the function body.",
447
+ "local-directive-quote": "The '{{name}}' directive must be written with single or double quotes, not backticks.",
448
+ "local-directive-unexpected": "The '{{name}}' directive can only be used at the top of a file, not inside a function body."
449
449
  },
450
450
  schema: []
451
451
  },
@@ -473,7 +473,7 @@ function create(context) {
473
473
  if (match == null || match.kind === "well-formed") continue;
474
474
  context.report({
475
475
  data: { name: match.name },
476
- messageId: match.kind === "backtick" ? "fileDirectiveQuote" : "fileDirectivePosition",
476
+ messageId: match.kind === "backtick" ? "file-directive-quote" : "file-directive-position",
477
477
  node: match.node
478
478
  });
479
479
  }
@@ -487,20 +487,20 @@ function create(context) {
487
487
  case match.kind === "backtick":
488
488
  context.report({
489
489
  data: { name: match.name },
490
- messageId: "localDirectiveQuote",
490
+ messageId: "local-directive-quote",
491
491
  node: match.node
492
492
  });
493
493
  break;
494
494
  case match.name === "use client":
495
495
  context.report({
496
496
  data: { name: match.name },
497
- messageId: "localDirectiveUnexpected",
497
+ messageId: "local-directive-unexpected",
498
498
  node: match.node
499
499
  });
500
500
  break;
501
501
  case match.kind === "misplaced": context.report({
502
502
  data: { name: match.name },
503
- messageId: "localDirectivePosition",
503
+ messageId: "local-directive-position",
504
504
  node: match.node
505
505
  });
506
506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-rsc",
3
- "version": "5.23.5",
3
+ "version": "5.24.0-beta.0",
4
4
  "description": "ESLint React's ESLint plugin for RSC related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -36,16 +36,17 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@eslint-react/ast": "5.23.5",
40
- "@eslint-react/core": "5.23.5",
41
- "@eslint-react/eslint": "5.23.5",
42
- "@eslint-react/shared": "5.23.5",
43
- "@eslint-react/var": "5.23.5",
39
+ "@eslint-react/ast": "5.24.0-beta.0",
40
+ "@eslint-react/core": "5.24.0-beta.0",
41
+ "@eslint-react/eslint": "5.24.0-beta.0",
42
+ "@eslint-react/shared": "5.24.0-beta.0",
43
+ "@eslint-react/var": "5.24.0-beta.0",
44
44
  "@typescript-eslint/types": "^8.71.0",
45
45
  "@typescript-eslint/utils": "^8.71.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@local/configs": "0.0.0",
49
+ "@local/testkit": "0.0.0",
49
50
  "@types/react": "^19.3.0",
50
51
  "@types/react-dom": "^19.3.0",
51
52
  "dedent": "^1.7.2",