eslint-plugin-react-x 2.7.5-beta.5 → 2.7.5-beta.9
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 +7 -7
package/dist/index.js
CHANGED
|
@@ -68,7 +68,7 @@ const rules$7 = {
|
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region package.json
|
|
70
70
|
var name$6 = "eslint-plugin-react-x";
|
|
71
|
-
var version = "2.7.5-beta.
|
|
71
|
+
var version = "2.7.5-beta.9";
|
|
72
72
|
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/utils/create-rule.ts
|
|
@@ -1294,7 +1294,7 @@ function create$35(context) {
|
|
|
1294
1294
|
} };
|
|
1295
1295
|
}
|
|
1296
1296
|
/**
|
|
1297
|
-
*
|
|
1297
|
+
* Determine whether the given CallExpression can be safely auto-fixed by replacing
|
|
1298
1298
|
* the usage of `forwardRef` with passing `ref` as a prop
|
|
1299
1299
|
*
|
|
1300
1300
|
* @param context The rule context object
|
|
@@ -1776,7 +1776,7 @@ function create$28(context) {
|
|
|
1776
1776
|
} });
|
|
1777
1777
|
}
|
|
1778
1778
|
/**
|
|
1779
|
-
*
|
|
1779
|
+
* Determine whether the node is inside JSX attribute value
|
|
1780
1780
|
* @param node The AST node to check
|
|
1781
1781
|
* @returns `true` if the node is inside JSX attribute value
|
|
1782
1782
|
*/
|
|
@@ -1784,7 +1784,7 @@ function isInsideJSXAttributeValue(node) {
|
|
|
1784
1784
|
return node.parent.type === AST_NODE_TYPES.JSXAttribute || findParentJsxAttribute(node, (n) => n.value?.type === AST_NODE_TYPES.JSXExpressionContainer) != null;
|
|
1785
1785
|
}
|
|
1786
1786
|
/**
|
|
1787
|
-
*
|
|
1787
|
+
* Check whether a given node is declared inside a class component's render block
|
|
1788
1788
|
* Ex: class C extends React.Component { render() { const Nested = () => <div />; } }
|
|
1789
1789
|
* @param node The AST node being checked
|
|
1790
1790
|
* @returns `true` if the node is inside a class component's render block
|
|
@@ -1793,7 +1793,7 @@ function isInsideRenderMethod(node) {
|
|
|
1793
1793
|
return AST.findParentNode(node, (n) => isRenderMethodLike(n) && isClassComponent(n.parent.parent)) != null;
|
|
1794
1794
|
}
|
|
1795
1795
|
/**
|
|
1796
|
-
*
|
|
1796
|
+
* Determine whether the node is inside `createElement`'s props argument
|
|
1797
1797
|
* @param context The rule context
|
|
1798
1798
|
* @param node The AST node to check
|
|
1799
1799
|
* @returns `true` if the node is inside `createElement`'s props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.7.5-beta.
|
|
3
|
+
"version": "2.7.5-beta.9",
|
|
4
4
|
"description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-api-utils": "^2.4.0",
|
|
48
48
|
"ts-pattern": "^5.9.0",
|
|
49
|
-
"@eslint-react/ast": "2.7.5-beta.
|
|
50
|
-
"@eslint-react/core": "2.7.5-beta.
|
|
51
|
-
"@eslint-react/eff": "2.7.5-beta.
|
|
52
|
-
"@eslint-react/shared": "2.7.5-beta.
|
|
53
|
-
"@eslint-react/var": "2.7.5-beta.
|
|
49
|
+
"@eslint-react/ast": "2.7.5-beta.9",
|
|
50
|
+
"@eslint-react/core": "2.7.5-beta.9",
|
|
51
|
+
"@eslint-react/eff": "2.7.5-beta.9",
|
|
52
|
+
"@eslint-react/shared": "2.7.5-beta.9",
|
|
53
|
+
"@eslint-react/var": "2.7.5-beta.9"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@types/react": "^19.2.
|
|
56
|
+
"@types/react": "^19.2.10",
|
|
57
57
|
"@types/react-dom": "^19.2.3",
|
|
58
58
|
"tsdown": "^0.20.1",
|
|
59
59
|
"@local/configs": "0.0.0"
|