eslint-plugin-react-x 5.24.8 → 5.24.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 +2 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -135,7 +135,7 @@ const rules$6 = {
|
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region package.json
|
|
137
137
|
var name$6 = "eslint-plugin-react-x";
|
|
138
|
-
var version = "5.24.
|
|
138
|
+
var version = "5.24.9";
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/utils/create-rule.ts
|
|
141
141
|
function getDocsUrl(ruleName) {
|
|
@@ -6584,6 +6584,7 @@ function isArgumentUsingRefValue(context, node) {
|
|
|
6584
6584
|
case AST_NODE_TYPES.Identifier: return isInitializedFromRef(context, n.name, context.sourceCode.getScope(n));
|
|
6585
6585
|
case AST_NODE_TYPES.MemberExpression: return isUsingRefValue(n.object);
|
|
6586
6586
|
case AST_NODE_TYPES.CallExpression: return isUsingRefValue(n.callee) || getNestedIdentifiers(n).some(isUsingRefValue);
|
|
6587
|
+
case AST_NODE_TYPES.ChainExpression: return isUsingRefValue(n.expression);
|
|
6587
6588
|
case AST_NODE_TYPES.BinaryExpression:
|
|
6588
6589
|
case AST_NODE_TYPES.LogicalExpression: return isUsingRefValue(n.left) || isUsingRefValue(n.right);
|
|
6589
6590
|
case AST_NODE_TYPES.UnaryExpression:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.9",
|
|
4
4
|
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eslint-react/ast": "5.24.
|
|
40
|
-
"@eslint-react/core": "5.24.
|
|
41
|
-
"@eslint-react/eslint": "5.24.
|
|
42
|
-
"@eslint-react/jsx": "5.24.
|
|
43
|
-
"@eslint-react/shared": "5.24.
|
|
44
|
-
"@eslint-react/var": "5.24.
|
|
39
|
+
"@eslint-react/ast": "5.24.9",
|
|
40
|
+
"@eslint-react/core": "5.24.9",
|
|
41
|
+
"@eslint-react/eslint": "5.24.9",
|
|
42
|
+
"@eslint-react/jsx": "5.24.9",
|
|
43
|
+
"@eslint-react/shared": "5.24.9",
|
|
44
|
+
"@eslint-react/var": "5.24.9",
|
|
45
45
|
"@typescript-eslint/scope-manager": "^8.71.1",
|
|
46
46
|
"@typescript-eslint/types": "^8.71.1",
|
|
47
47
|
"@typescript-eslint/typescript-estree": "^8.71.1",
|