eslint-plugin-react-debug 3.0.0-next.63 → 3.0.0-next.65

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 +6 -6
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ var __exportAll = (all, no_symbols) => {
24
24
  //#endregion
25
25
  //#region package.json
26
26
  var name$1 = "eslint-plugin-react-debug";
27
- var version = "3.0.0-next.63";
27
+ var version = "3.0.0-next.65";
28
28
 
29
29
  //#endregion
30
30
  //#region src/utils/create-rule.ts
@@ -84,9 +84,9 @@ function create$4(context) {
84
84
  hint: core.DEFAULT_COMPONENT_DETECTION_HINT
85
85
  });
86
86
  return defineRuleListener(visitor, { "Program:exit"(program) {
87
- for (const { name = "anonymous", displayName, flag, hookCalls, node } of ctx.getAllComponents(program)) context.report({
87
+ for (const { name, displayName, flag, hookCalls, node } of ctx.getAllComponents(program)) context.report({
88
88
  data: { json: stringify({
89
- name,
89
+ name: name ?? "anonymous",
90
90
  displayName: displayName == null ? "none" : context.sourceCode.getText(displayName),
91
91
  forwardRef: (flag & core.ComponentFlag.ForwardRef) > 0n,
92
92
  hookCalls: hookCalls.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "3.0.0-next.63",
3
+ "version": "3.0.0-next.65",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,11 +43,11 @@
43
43
  "@typescript-eslint/types": "canary",
44
44
  "@typescript-eslint/utils": "canary",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/core": "3.0.0-next.63",
47
- "@eslint-react/ast": "3.0.0-next.63",
48
- "@eslint-react/eff": "3.0.0-next.63",
49
- "@eslint-react/shared": "3.0.0-next.63",
50
- "@eslint-react/var": "3.0.0-next.63"
46
+ "@eslint-react/ast": "3.0.0-next.65",
47
+ "@eslint-react/core": "3.0.0-next.65",
48
+ "@eslint-react/eff": "3.0.0-next.65",
49
+ "@eslint-react/shared": "3.0.0-next.65",
50
+ "@eslint-react/var": "3.0.0-next.65"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",