eslint-plugin-react-debug 3.0.0-next.4 → 3.0.0-next.41
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 +12 -12
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region package.json
|
|
44
44
|
var name = "eslint-plugin-react-debug";
|
|
45
|
-
var version = "3.0.0-next.
|
|
45
|
+
var version = "3.0.0-next.41";
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/utils/create-rule.ts
|
|
@@ -58,7 +58,7 @@ function stringify(value) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region src/rules/class-component.ts
|
|
61
|
+
//#region src/rules/class-component/class-component.ts
|
|
62
62
|
const RULE_NAME$5 = "class-component";
|
|
63
63
|
var class_component_default = createRule({
|
|
64
64
|
meta: {
|
|
@@ -83,7 +83,7 @@ function create$5(context) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
//#endregion
|
|
86
|
-
//#region src/rules/function-component.ts
|
|
86
|
+
//#region src/rules/function-component/function-component.ts
|
|
87
87
|
const RULE_NAME$4 = "function-component";
|
|
88
88
|
var function_component_default = createRule({
|
|
89
89
|
meta: {
|
|
@@ -117,7 +117,7 @@ function create$4(context) {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
//#endregion
|
|
120
|
-
//#region src/rules/hook.ts
|
|
120
|
+
//#region src/rules/hook/hook.ts
|
|
121
121
|
const RULE_NAME$3 = "hook";
|
|
122
122
|
var hook_default = createRule({
|
|
123
123
|
meta: {
|
|
@@ -145,7 +145,7 @@ function create$3(context) {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
//#endregion
|
|
148
|
-
//#region src/rules/is-from-react.ts
|
|
148
|
+
//#region src/rules/is-from-react/is-from-react.ts
|
|
149
149
|
const RULE_NAME$2 = "is-from-react";
|
|
150
150
|
var is_from_react_default = createRule({
|
|
151
151
|
meta: {
|
|
@@ -173,10 +173,10 @@ function create$2(context) {
|
|
|
173
173
|
}) }
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
return {
|
|
176
|
+
return defineRuleListener({
|
|
177
177
|
Identifier: visitorFunction,
|
|
178
178
|
JSXIdentifier: visitorFunction
|
|
179
|
-
};
|
|
179
|
+
});
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* Check if an identifier node is initialized from React
|
|
@@ -195,7 +195,7 @@ function isFromReact(node, initialScope, importSource = "react") {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
//#endregion
|
|
198
|
-
//#region src/rules/is-from-ref.ts
|
|
198
|
+
//#region src/rules/is-from-ref/is-from-ref.ts
|
|
199
199
|
const RULE_NAME$1 = "is-from-ref";
|
|
200
200
|
var is_from_ref_default = createRule({
|
|
201
201
|
meta: {
|
|
@@ -223,10 +223,10 @@ function create$1(context) {
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
return {
|
|
226
|
+
return defineRuleListener({
|
|
227
227
|
Identifier: visitorFunction,
|
|
228
228
|
JSXIdentifier: visitorFunction
|
|
229
|
-
};
|
|
229
|
+
});
|
|
230
230
|
}
|
|
231
231
|
function getRefInitNode(node, initialScope) {
|
|
232
232
|
const name = node.name;
|
|
@@ -238,7 +238,7 @@ function getRefInitNode(node, initialScope) {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
//#endregion
|
|
241
|
-
//#region src/rules/jsx.ts
|
|
241
|
+
//#region src/rules/jsx/jsx.ts
|
|
242
242
|
const { JsxEmit } = core;
|
|
243
243
|
const RULE_NAME = "jsx";
|
|
244
244
|
var jsx_default = createRule({
|
|
@@ -274,7 +274,7 @@ function create(context) {
|
|
|
274
274
|
}) }
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
return { "JSXElement, JSXFragment": flow(getReportDescriptor(context), report(context)) };
|
|
277
|
+
return defineRuleListener({ "JSXElement, JSXFragment": flow(getReportDescriptor(context), report(context)) });
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.41",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"./package.json"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@typescript-eslint/scope-manager": "
|
|
42
|
-
"@typescript-eslint/type-utils": "
|
|
43
|
-
"@typescript-eslint/types": "
|
|
44
|
-
"@typescript-eslint/utils": "
|
|
41
|
+
"@typescript-eslint/scope-manager": "canary",
|
|
42
|
+
"@typescript-eslint/type-utils": "canary",
|
|
43
|
+
"@typescript-eslint/types": "canary",
|
|
44
|
+
"@typescript-eslint/utils": "canary",
|
|
45
45
|
"ts-pattern": "^5.9.0",
|
|
46
|
-
"@eslint-react/ast": "3.0.0-next.
|
|
47
|
-
"@eslint-react/shared": "3.0.0-next.
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/core": "3.0.0-next.
|
|
50
|
-
"@eslint-react/
|
|
46
|
+
"@eslint-react/ast": "3.0.0-next.41",
|
|
47
|
+
"@eslint-react/shared": "3.0.0-next.41",
|
|
48
|
+
"@eslint-react/var": "3.0.0-next.41",
|
|
49
|
+
"@eslint-react/core": "3.0.0-next.41",
|
|
50
|
+
"@eslint-react/eff": "3.0.0-next.41"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.2.14",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "tsdown",
|
|
70
70
|
"lint:publish": "publint",
|
|
71
|
-
"lint:ts": "
|
|
71
|
+
"lint:ts": "tsl"
|
|
72
72
|
}
|
|
73
73
|
}
|