eslint-plugin-react-debug 2.3.10 → 2.3.11-next.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 +4 -7
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
41
41
  //#endregion
42
42
  //#region package.json
43
43
  var name = "eslint-plugin-react-debug";
44
- var version = "2.3.10";
44
+ var version = "2.3.11-next.0";
45
45
 
46
46
  //#endregion
47
47
  //#region src/utils/create-rule.ts
@@ -79,8 +79,7 @@ function create$4(context) {
79
79
  return {
80
80
  ...listeners,
81
81
  "Program:exit"(program) {
82
- const components = ctx.getAllComponents(program);
83
- for (const { name: name$2 = "anonymous", node: component } of components.values()) context.report({
82
+ for (const { name: name$2 = "anonymous", node: component } of ctx.getAllComponents(program)) context.report({
84
83
  messageId: "classComponent",
85
84
  node: component,
86
85
  data: { json: stringify({ name: name$2 }) }
@@ -116,8 +115,7 @@ function create$3(context) {
116
115
  return {
117
116
  ...listeners,
118
117
  "Program:exit"(program) {
119
- const components = ctx.getAllComponents(program);
120
- for (const { name: name$2 = "anonymous", node, displayName, flag, hookCalls } of components.values()) context.report({
118
+ for (const { name: name$2 = "anonymous", node, displayName, flag, hookCalls } of ctx.getAllComponents(program)) context.report({
121
119
  messageId: "functionComponent",
122
120
  node,
123
121
  data: { json: stringify({
@@ -155,8 +153,7 @@ function create$2(context) {
155
153
  return {
156
154
  ...listeners,
157
155
  "Program:exit"(program) {
158
- const allHooks = ctx.getAllHooks(program);
159
- for (const { name: name$2, node, hookCalls } of allHooks.values()) context.report({
156
+ for (const { name: name$2, node, hookCalls } of ctx.getAllHooks(program)) context.report({
160
157
  messageId: "hook",
161
158
  node,
162
159
  data: { json: stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "2.3.10",
3
+ "version": "2.3.11-next.0",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -44,16 +44,16 @@
44
44
  "@typescript-eslint/utils": "^8.48.0",
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-pattern": "^5.9.0",
47
- "@eslint-react/ast": "2.3.10",
48
- "@eslint-react/core": "2.3.10",
49
- "@eslint-react/shared": "2.3.10",
50
- "@eslint-react/eff": "2.3.10",
51
- "@eslint-react/var": "2.3.10"
47
+ "@eslint-react/ast": "2.3.11-next.0",
48
+ "@eslint-react/eff": "2.3.11-next.0",
49
+ "@eslint-react/shared": "2.3.11-next.0",
50
+ "@eslint-react/var": "2.3.11-next.0",
51
+ "@eslint-react/core": "2.3.11-next.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.7",
55
55
  "@types/react-dom": "^19.2.3",
56
- "tsdown": "^0.17.0-beta.4",
56
+ "tsdown": "^0.17.0-beta.5",
57
57
  "@local/configs": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {