eslint-plugin-react-rsc 5.24.3 → 5.24.5

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 +9 -31
  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.3";
38
-
30
+ var version = "5.24.5";
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,9 +435,8 @@ var function_definition_default = createRule({
449
435
  },
450
436
  schema: []
451
437
  },
452
- name: RULE_NAME,
453
- create,
454
- defaultOptions: []
438
+ name: "function-definition",
439
+ create
455
440
  });
456
441
  function create(context) {
457
442
  const text = context.sourceCode.text;
@@ -565,7 +550,6 @@ function create(context) {
565
550
  Program: checkFileDirectives
566
551
  };
567
552
  }
568
-
569
553
  //#endregion
570
554
  //#region src/plugin.ts
571
555
  const plugin = {
@@ -575,7 +559,6 @@ const plugin = {
575
559
  },
576
560
  rules: { "function-definition": function_definition_default }
577
561
  };
578
-
579
562
  //#endregion
580
563
  //#region src/configs/recommended.ts
581
564
  var recommended_exports = /* @__PURE__ */ __exportAll({
@@ -588,7 +571,6 @@ const name$3 = "react-rsc/recommended";
588
571
  const rules$3 = { "react-rsc/function-definition": "error" };
589
572
  const plugins$3 = { "react-rsc": plugin };
590
573
  const settings$3 = { "react-rsc": DEFAULT_ESLINT_REACT_SETTINGS };
591
-
592
574
  //#endregion
593
575
  //#region src/configs/recommended-typescript.ts
594
576
  var recommended_typescript_exports = /* @__PURE__ */ __exportAll({
@@ -601,7 +583,6 @@ const name$2 = "react-rsc/recommended-typescript";
601
583
  const rules$2 = { ...rules$3 };
602
584
  const plugins$2 = { ...plugins$3 };
603
585
  const settings$2 = { ...settings$3 };
604
-
605
586
  //#endregion
606
587
  //#region src/configs/strict.ts
607
588
  var strict_exports = /* @__PURE__ */ __exportAll({
@@ -614,7 +595,6 @@ const name$1 = "react-rsc/strict";
614
595
  const rules$1 = { ...rules$3 };
615
596
  const plugins$1 = { ...plugins$3 };
616
597
  const settings$1 = { ...settings$3 };
617
-
618
598
  //#endregion
619
599
  //#region src/configs/strict-typescript.ts
620
600
  var strict_typescript_exports = /* @__PURE__ */ __exportAll({
@@ -627,7 +607,6 @@ const name = "react-rsc/strict-typescript";
627
607
  const rules = { ...rules$1 };
628
608
  const plugins = { ...plugins$1 };
629
609
  const settings = { ...settings$1 };
630
-
631
610
  //#endregion
632
611
  //#region src/index.ts
633
612
  function createConfig(base) {
@@ -651,6 +630,5 @@ const finalPlugin = {
651
630
  ["strict-typescript"]: createConfig(strict_typescript_exports)
652
631
  }
653
632
  };
654
-
655
633
  //#endregion
656
- export { finalPlugin as default };
634
+ 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.3",
3
+ "version": "5.24.5",
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.3",
40
- "@eslint-react/core": "5.24.3",
41
- "@eslint-react/eslint": "5.24.3",
42
- "@eslint-react/shared": "5.24.3",
43
- "@eslint-react/var": "5.24.3",
39
+ "@eslint-react/ast": "5.24.5",
40
+ "@eslint-react/core": "5.24.5",
41
+ "@eslint-react/eslint": "5.24.5",
42
+ "@eslint-react/shared": "5.24.5",
43
+ "@eslint-react/var": "5.24.5",
44
44
  "@typescript-eslint/types": "^8.71.0",
45
45
  "@typescript-eslint/utils": "^8.71.0"
46
46
  },