eslint-plugin-react-debug 2.3.10 → 2.3.11-beta.1
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.
- package/dist/index.js +4 -7
- package/package.json +11 -11
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.
|
|
44
|
+
var version = "2.3.11-beta.1";
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "2.3.11-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"./package.json"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@typescript-eslint/scope-manager": "^8.48.
|
|
42
|
-
"@typescript-eslint/type-utils": "^8.48.
|
|
43
|
-
"@typescript-eslint/types": "^8.48.
|
|
44
|
-
"@typescript-eslint/utils": "^8.48.
|
|
41
|
+
"@typescript-eslint/scope-manager": "^8.48.1",
|
|
42
|
+
"@typescript-eslint/type-utils": "^8.48.1",
|
|
43
|
+
"@typescript-eslint/types": "^8.48.1",
|
|
44
|
+
"@typescript-eslint/utils": "^8.48.1",
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-pattern": "^5.9.0",
|
|
47
|
-
"@eslint-react/ast": "2.3.
|
|
48
|
-
"@eslint-react/core": "2.3.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/var": "2.3.
|
|
47
|
+
"@eslint-react/ast": "2.3.11-beta.1",
|
|
48
|
+
"@eslint-react/core": "2.3.11-beta.1",
|
|
49
|
+
"@eslint-react/eff": "2.3.11-beta.1",
|
|
50
|
+
"@eslint-react/shared": "2.3.11-beta.1",
|
|
51
|
+
"@eslint-react/var": "2.3.11-beta.1"
|
|
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.
|
|
56
|
+
"tsdown": "^0.17.0-beta.5",
|
|
57
57
|
"@local/configs": "0.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|