eslint-plugin-react-jsx 5.12.0 → 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 +4 -4
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name$2 = "eslint-plugin-react-jsx";
|
|
29
|
-
var version = "5.12.
|
|
29
|
+
var version = "5.12.1";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/create-rule.ts
|
|
@@ -563,7 +563,7 @@ function create(context, [option]) {
|
|
|
563
563
|
* and* "contains less than two children").
|
|
564
564
|
* @param node The fragment node to inspect.
|
|
565
565
|
*/
|
|
566
|
-
function
|
|
566
|
+
function visit(node) {
|
|
567
567
|
if (isHostElement(node.parent)) context.report({
|
|
568
568
|
data: { reason: "placed inside a host component" },
|
|
569
569
|
fix: buildFix(node),
|
|
@@ -581,10 +581,10 @@ function create(context, [option]) {
|
|
|
581
581
|
JSXElement(node) {
|
|
582
582
|
if (!isFragmentElement(node, jsxConfig.jsxFragmentFactory)) return;
|
|
583
583
|
if (hasAnyAttribute(context, node, ["key", "ref"])) return;
|
|
584
|
-
|
|
584
|
+
visit(node);
|
|
585
585
|
},
|
|
586
586
|
JSXFragment(node) {
|
|
587
|
-
|
|
587
|
+
visit(node);
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
590
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@typescript-eslint/types": "^8.63.0",
|
|
41
41
|
"@typescript-eslint/utils": "^8.63.0",
|
|
42
|
-
"@eslint-react/ast": "5.12.
|
|
43
|
-
"@eslint-react/core": "5.12.
|
|
44
|
-
"@eslint-react/eslint": "5.12.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "5.12.1",
|
|
43
|
+
"@eslint-react/core": "5.12.1",
|
|
44
|
+
"@eslint-react/eslint": "5.12.1",
|
|
45
|
+
"@eslint-react/shared": "5.12.1",
|
|
46
|
+
"@eslint-react/jsx": "5.12.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/react": "^19.2.17",
|