eslint-plugin-react-x 5.3.3-beta.1 → 5.3.3-beta.2
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 +3 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ const rules$7 = {
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region package.json
|
|
145
145
|
var name$6 = "eslint-plugin-react-x";
|
|
146
|
-
var version = "5.3.3-beta.
|
|
146
|
+
var version = "5.3.3-beta.2";
|
|
147
147
|
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region src/rules/component-hook-factories/lib.ts
|
|
@@ -3629,11 +3629,11 @@ function collectUsedPropKeysOfIdentifier(context, usedPropKeys, identifier) {
|
|
|
3629
3629
|
if (variable == null) return false;
|
|
3630
3630
|
for (const ref of variable.references) {
|
|
3631
3631
|
if (ref.identifier === identifier) continue;
|
|
3632
|
-
if (!collectUsedPropKeysOfReference(context, usedPropKeys,
|
|
3632
|
+
if (!collectUsedPropKeysOfReference(context, usedPropKeys, ref)) return false;
|
|
3633
3633
|
}
|
|
3634
3634
|
return true;
|
|
3635
3635
|
}
|
|
3636
|
-
function collectUsedPropKeysOfReference(context, usedPropKeys,
|
|
3636
|
+
function collectUsedPropKeysOfReference(context, usedPropKeys, ref) {
|
|
3637
3637
|
let valueNode = ref.identifier;
|
|
3638
3638
|
while (Check.isTypeExpression(valueNode.parent) || valueNode.parent.type === AST_NODE_TYPES.ChainExpression) valueNode = valueNode.parent;
|
|
3639
3639
|
const parent = valueNode.parent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.3.3-beta.
|
|
3
|
+
"version": "5.3.3-beta.2",
|
|
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",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-api-utils": "^2.5.0",
|
|
48
48
|
"ts-pattern": "^5.9.0",
|
|
49
|
-
"@eslint-react/ast": "5.3.3-beta.
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/shared": "5.3.3-beta.
|
|
54
|
-
"@eslint-react/var": "5.3.3-beta.
|
|
49
|
+
"@eslint-react/ast": "5.3.3-beta.2",
|
|
50
|
+
"@eslint-react/core": "5.3.3-beta.2",
|
|
51
|
+
"@eslint-react/eslint": "5.3.3-beta.2",
|
|
52
|
+
"@eslint-react/jsx": "5.3.3-beta.2",
|
|
53
|
+
"@eslint-react/shared": "5.3.3-beta.2",
|
|
54
|
+
"@eslint-react/var": "5.3.3-beta.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.2.14",
|