eslint-plugin-react-rsc 5.24.2 → 5.24.4

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 +8 -29
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -5,23 +5,17 @@ import * as core from "@eslint-react/core";
5
5
  import "@eslint-react/eslint";
6
6
  import { resolve } from "@eslint-react/var";
7
7
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
8
-
9
8
  //#region \0rolldown/runtime.js
10
9
  var __defProp = Object.defineProperty;
11
10
  var __exportAll = (all, no_symbols) => {
12
11
  let target = {};
13
- for (var name in all) {
14
- __defProp(target, name, {
15
- get: all[name],
16
- enumerable: true
17
- });
18
- }
19
- if (!no_symbols) {
20
- __defProp(target, Symbol.toStringTag, { value: "Module" });
21
- }
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
22
17
  return target;
23
18
  };
24
-
25
19
  //#endregion
26
20
  //#region src/configs/disable-experimental.ts
27
21
  var disable_experimental_exports = /* @__PURE__ */ __exportAll({
@@ -30,19 +24,16 @@ var disable_experimental_exports = /* @__PURE__ */ __exportAll({
30
24
  });
31
25
  const name$5 = "react-rsc/disable-experimental";
32
26
  const rules$4 = { "react-rsc/function-definition": "off" };
33
-
34
27
  //#endregion
35
28
  //#region package.json
36
29
  var name$4 = "eslint-plugin-react-rsc";
37
- var version = "5.24.2";
38
-
30
+ var version = "5.24.4";
39
31
  //#endregion
40
32
  //#region src/utils/create-rule.ts
41
33
  function getDocsUrl(ruleName) {
42
34
  return `https://eslint-react.xyz/docs/rules/rsc-${ruleName}`;
43
35
  }
44
36
  const createRule = ESLintUtils.RuleCreator(getDocsUrl);
45
-
46
37
  //#endregion
47
38
  //#region ../../node_modules/.pnpm/ts-pattern@5.9.0/node_modules/ts-pattern/dist/index.js
48
39
  const t = Symbol.for("@ts-pattern/matcher");
@@ -398,7 +389,6 @@ var z = {
398
389
  return a(p(u(t)));
399
390
  }
400
391
  };
401
-
402
392
  //#endregion
403
393
  //#region src/rules/function-definition/lib.ts
404
394
  function isDirectiveName(value) {
@@ -429,10 +419,6 @@ function matchDirective(stmt) {
429
419
  }
430
420
  return null;
431
421
  }
432
-
433
- //#endregion
434
- //#region src/rules/function-definition/function-definition.ts
435
- const RULE_NAME = "function-definition";
436
422
  var function_definition_default = createRule({
437
423
  meta: {
438
424
  type: "problem",
@@ -449,7 +435,7 @@ var function_definition_default = createRule({
449
435
  },
450
436
  schema: []
451
437
  },
452
- name: RULE_NAME,
438
+ name: "function-definition",
453
439
  create,
454
440
  defaultOptions: []
455
441
  });
@@ -565,7 +551,6 @@ function create(context) {
565
551
  Program: checkFileDirectives
566
552
  };
567
553
  }
568
-
569
554
  //#endregion
570
555
  //#region src/plugin.ts
571
556
  const plugin = {
@@ -575,7 +560,6 @@ const plugin = {
575
560
  },
576
561
  rules: { "function-definition": function_definition_default }
577
562
  };
578
-
579
563
  //#endregion
580
564
  //#region src/configs/recommended.ts
581
565
  var recommended_exports = /* @__PURE__ */ __exportAll({
@@ -588,7 +572,6 @@ const name$3 = "react-rsc/recommended";
588
572
  const rules$3 = { "react-rsc/function-definition": "error" };
589
573
  const plugins$3 = { "react-rsc": plugin };
590
574
  const settings$3 = { "react-rsc": DEFAULT_ESLINT_REACT_SETTINGS };
591
-
592
575
  //#endregion
593
576
  //#region src/configs/recommended-typescript.ts
594
577
  var recommended_typescript_exports = /* @__PURE__ */ __exportAll({
@@ -601,7 +584,6 @@ const name$2 = "react-rsc/recommended-typescript";
601
584
  const rules$2 = { ...rules$3 };
602
585
  const plugins$2 = { ...plugins$3 };
603
586
  const settings$2 = { ...settings$3 };
604
-
605
587
  //#endregion
606
588
  //#region src/configs/strict.ts
607
589
  var strict_exports = /* @__PURE__ */ __exportAll({
@@ -614,7 +596,6 @@ const name$1 = "react-rsc/strict";
614
596
  const rules$1 = { ...rules$3 };
615
597
  const plugins$1 = { ...plugins$3 };
616
598
  const settings$1 = { ...settings$3 };
617
-
618
599
  //#endregion
619
600
  //#region src/configs/strict-typescript.ts
620
601
  var strict_typescript_exports = /* @__PURE__ */ __exportAll({
@@ -627,7 +608,6 @@ const name = "react-rsc/strict-typescript";
627
608
  const rules = { ...rules$1 };
628
609
  const plugins = { ...plugins$1 };
629
610
  const settings = { ...settings$1 };
630
-
631
611
  //#endregion
632
612
  //#region src/index.ts
633
613
  function createConfig(base) {
@@ -651,6 +631,5 @@ const finalPlugin = {
651
631
  ["strict-typescript"]: createConfig(strict_typescript_exports)
652
632
  }
653
633
  };
654
-
655
634
  //#endregion
656
- export { finalPlugin as default };
635
+ export { finalPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-rsc",
3
- "version": "5.24.2",
3
+ "version": "5.24.4",
4
4
  "description": "ESLint React's ESLint plugin for RSC related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -36,11 +36,11 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@eslint-react/ast": "5.24.2",
40
- "@eslint-react/core": "5.24.2",
41
- "@eslint-react/eslint": "5.24.2",
42
- "@eslint-react/shared": "5.24.2",
43
- "@eslint-react/var": "5.24.2",
39
+ "@eslint-react/ast": "5.24.4",
40
+ "@eslint-react/core": "5.24.4",
41
+ "@eslint-react/eslint": "5.24.4",
42
+ "@eslint-react/shared": "5.24.4",
43
+ "@eslint-react/var": "5.24.4",
44
44
  "@typescript-eslint/types": "^8.71.0",
45
45
  "@typescript-eslint/utils": "^8.71.0"
46
46
  },