eslint-plugin-react-debug 5.12.0-beta.2 → 5.12.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 +5 -5
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region package.json
|
|
31
31
|
var name$1 = "eslint-plugin-react-debug";
|
|
32
|
-
var version = "5.12.
|
|
32
|
+
var version = "5.12.1";
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/utils/create-rule.ts
|
|
@@ -401,8 +401,8 @@ var jsx_default = createRule({
|
|
|
401
401
|
});
|
|
402
402
|
function create(context) {
|
|
403
403
|
const jsxConfig = core.getJsxConfig(context);
|
|
404
|
-
function
|
|
405
|
-
return
|
|
404
|
+
function visit(node) {
|
|
405
|
+
return {
|
|
406
406
|
data: { json: stringify({
|
|
407
407
|
kind: match(node).with({ type: AST_NODE_TYPES.JSXElement }, (n) => isFragmentElement(n, jsxConfig.jsxFragmentFactory) ? "fragment" : "element").with({ type: AST_NODE_TYPES.JSXFragment }, () => "fragment").exhaustive(),
|
|
408
408
|
type: getElementFullType(node),
|
|
@@ -414,9 +414,9 @@ function create(context) {
|
|
|
414
414
|
}) },
|
|
415
415
|
messageId: "default",
|
|
416
416
|
node
|
|
417
|
-
}
|
|
417
|
+
};
|
|
418
418
|
}
|
|
419
|
-
return { "JSXElement, JSXFragment": flow(
|
|
419
|
+
return { "JSXElement, JSXFragment": flow(visit, report(context)) };
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
41
|
-
"@typescript-eslint/types": "^8.
|
|
42
|
-
"@typescript-eslint/utils": "^8.
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.63.0",
|
|
41
|
+
"@typescript-eslint/types": "^8.63.0",
|
|
42
|
+
"@typescript-eslint/utils": "^8.63.0",
|
|
43
43
|
"ts-pattern": "^5.9.0",
|
|
44
|
-
"@eslint-react/ast": "5.12.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/shared": "5.12.
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "5.12.1",
|
|
45
|
+
"@eslint-react/eslint": "5.12.1",
|
|
46
|
+
"@eslint-react/jsx": "5.12.1",
|
|
47
|
+
"@eslint-react/shared": "5.12.1",
|
|
48
|
+
"@eslint-react/var": "5.12.1",
|
|
49
|
+
"@eslint-react/core": "5.12.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.2.17",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"eslint": "^10.6.0",
|
|
56
56
|
"tsdown": "^0.22.3",
|
|
57
57
|
"typescript": "6.0.3",
|
|
58
|
-
"@local/
|
|
59
|
-
"@local/
|
|
58
|
+
"@local/eff": "0.0.0",
|
|
59
|
+
"@local/configs": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"eslint": "*",
|