eslint-plugin-react-debug 2.8.2-next.4 → 2.8.2-next.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.
- package/dist/index.js +11 -11
- package/package.json +6 -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.8.2-next.
|
|
44
|
+
var version = "2.8.2-next.5";
|
|
45
45
|
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/utils/create-rule.ts
|
|
@@ -63,7 +63,7 @@ var class_component_default = createRule({
|
|
|
63
63
|
meta: {
|
|
64
64
|
type: "problem",
|
|
65
65
|
docs: { description: "Reports all class components in JSON format." },
|
|
66
|
-
messages: {
|
|
66
|
+
messages: { default: "{{json}}" },
|
|
67
67
|
schema: []
|
|
68
68
|
},
|
|
69
69
|
name: RULE_NAME$4,
|
|
@@ -74,7 +74,7 @@ function create$4(context) {
|
|
|
74
74
|
const { ctx, visitor } = core.useComponentCollectorLegacy(context);
|
|
75
75
|
return defineRuleListener(visitor, { "Program:exit"(program) {
|
|
76
76
|
for (const { name = "anonymous", node: component } of ctx.getAllComponents(program)) context.report({
|
|
77
|
-
messageId: "
|
|
77
|
+
messageId: "default",
|
|
78
78
|
node: component,
|
|
79
79
|
data: { json: stringify({ name }) }
|
|
80
80
|
});
|
|
@@ -88,7 +88,7 @@ var function_component_default = createRule({
|
|
|
88
88
|
meta: {
|
|
89
89
|
type: "problem",
|
|
90
90
|
docs: { description: "Reports all function components in JSON format." },
|
|
91
|
-
messages: {
|
|
91
|
+
messages: { default: "{{json}}" },
|
|
92
92
|
schema: []
|
|
93
93
|
},
|
|
94
94
|
name: RULE_NAME$3,
|
|
@@ -102,7 +102,7 @@ function create$3(context) {
|
|
|
102
102
|
});
|
|
103
103
|
return defineRuleListener(visitor, { "Program:exit"(program) {
|
|
104
104
|
for (const { name = "anonymous", node, displayName, flag, hookCalls } of ctx.getAllComponents(program)) context.report({
|
|
105
|
-
messageId: "
|
|
105
|
+
messageId: "default",
|
|
106
106
|
node,
|
|
107
107
|
data: { json: stringify({
|
|
108
108
|
name,
|
|
@@ -122,7 +122,7 @@ var hook_default = createRule({
|
|
|
122
122
|
meta: {
|
|
123
123
|
type: "problem",
|
|
124
124
|
docs: { description: "Reports all React Hooks in JSON format." },
|
|
125
|
-
messages: {
|
|
125
|
+
messages: { default: "{{json}}" },
|
|
126
126
|
schema: []
|
|
127
127
|
},
|
|
128
128
|
name: RULE_NAME$2,
|
|
@@ -133,7 +133,7 @@ function create$2(context) {
|
|
|
133
133
|
const { ctx, visitor } = core.useHookCollector(context);
|
|
134
134
|
return defineRuleListener(visitor, { "Program:exit"(program) {
|
|
135
135
|
for (const { name, node, hookCalls } of ctx.getAllHooks(program)) context.report({
|
|
136
|
-
messageId: "
|
|
136
|
+
messageId: "default",
|
|
137
137
|
node,
|
|
138
138
|
data: { json: stringify({
|
|
139
139
|
name,
|
|
@@ -150,7 +150,7 @@ var is_from_react_default = createRule({
|
|
|
150
150
|
meta: {
|
|
151
151
|
type: "problem",
|
|
152
152
|
docs: { description: "Reports all identifiers initialized from React in JSON format." },
|
|
153
|
-
messages: {
|
|
153
|
+
messages: { default: "{{json}}" },
|
|
154
154
|
schema: []
|
|
155
155
|
},
|
|
156
156
|
name: RULE_NAME$1,
|
|
@@ -164,7 +164,7 @@ function create$1(context) {
|
|
|
164
164
|
const name = node.name;
|
|
165
165
|
if (!isFromReact(node, context.sourceCode.getScope(node), importSource)) return;
|
|
166
166
|
context.report({
|
|
167
|
-
messageId: "
|
|
167
|
+
messageId: "default",
|
|
168
168
|
node,
|
|
169
169
|
data: { json: stringify({
|
|
170
170
|
name,
|
|
@@ -201,7 +201,7 @@ var jsx_default = createRule({
|
|
|
201
201
|
meta: {
|
|
202
202
|
type: "problem",
|
|
203
203
|
docs: { description: "Reports all JSX elements and fragments in JSON format." },
|
|
204
|
-
messages: {
|
|
204
|
+
messages: { default: "{{json}}" },
|
|
205
205
|
schema: []
|
|
206
206
|
},
|
|
207
207
|
name: RULE_NAME,
|
|
@@ -217,7 +217,7 @@ function create(context) {
|
|
|
217
217
|
};
|
|
218
218
|
function getReportDescriptor(context) {
|
|
219
219
|
return (node) => ({
|
|
220
|
-
messageId: "
|
|
220
|
+
messageId: "default",
|
|
221
221
|
node,
|
|
222
222
|
data: { json: stringify({
|
|
223
223
|
kind: match(node).with({ type: AST_NODE_TYPES$1.JSXElement }, (n) => core.isJsxFragmentElement(context, n, jsxConfig) ? "fragment" : "element").with({ type: AST_NODE_TYPES$1.JSXFragment }, () => "fragment").exhaustive(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "2.8.2-next.
|
|
3
|
+
"version": "2.8.2-next.5",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,13 +42,12 @@
|
|
|
42
42
|
"@typescript-eslint/type-utils": "^8.54.0",
|
|
43
43
|
"@typescript-eslint/types": "^8.54.0",
|
|
44
44
|
"@typescript-eslint/utils": "^8.54.0",
|
|
45
|
-
"string-ts": "^2.3.1",
|
|
46
45
|
"ts-pattern": "^5.9.0",
|
|
47
|
-
"@eslint-react/ast": "2.8.2-next.
|
|
48
|
-
"@eslint-react/eff": "2.8.2-next.
|
|
49
|
-
"@eslint-react/shared": "2.8.2-next.
|
|
50
|
-
"@eslint-react/var": "2.8.2-next.
|
|
51
|
-
"@eslint-react/core": "2.8.2-next.
|
|
46
|
+
"@eslint-react/ast": "2.8.2-next.5",
|
|
47
|
+
"@eslint-react/eff": "2.8.2-next.5",
|
|
48
|
+
"@eslint-react/shared": "2.8.2-next.5",
|
|
49
|
+
"@eslint-react/var": "2.8.2-next.5",
|
|
50
|
+
"@eslint-react/core": "2.8.2-next.5"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
53
|
"@types/react": "^19.2.10",
|