@eslint-react/jsx 5.18.2 → 5.18.4
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 +8 -8
package/dist/index.js
CHANGED
|
@@ -589,7 +589,8 @@ function findSpreadProperty(context, argument, name, seen = /* @__PURE__ */ new
|
|
|
589
589
|
if (property.type === AST_NODE_TYPES.Property) {
|
|
590
590
|
const { key } = property;
|
|
591
591
|
if (property.computed) {
|
|
592
|
-
|
|
592
|
+
const keyScope = context.sourceCode.getScope(key);
|
|
593
|
+
if (getStaticValue(key, keyScope)?.value === name) return property;
|
|
593
594
|
continue;
|
|
594
595
|
}
|
|
595
596
|
if (key.type === AST_NODE_TYPES.Identifier && key.name === name) return property;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.4",
|
|
4
4
|
"description": "ESLint React's TSESTree JSX utility module for static analysis of JSX patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typescript-eslint/types": "^8.
|
|
33
|
-
"@typescript-eslint/utils": "^8.
|
|
32
|
+
"@typescript-eslint/types": "^8.66.0",
|
|
33
|
+
"@typescript-eslint/utils": "^8.66.0",
|
|
34
34
|
"ts-pattern": "^5.9.0",
|
|
35
|
-
"@eslint-react/ast": "5.18.
|
|
36
|
-
"@eslint-react/
|
|
37
|
-
"@eslint-react/
|
|
38
|
-
"@eslint-react/
|
|
35
|
+
"@eslint-react/ast": "5.18.4",
|
|
36
|
+
"@eslint-react/var": "5.18.4",
|
|
37
|
+
"@eslint-react/shared": "5.18.4",
|
|
38
|
+
"@eslint-react/eslint": "5.18.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"eslint": "^10.8.
|
|
41
|
+
"eslint": "^10.8.1",
|
|
42
42
|
"tsdown": "^0.22.14",
|
|
43
43
|
"typescript": "6.0.3",
|
|
44
44
|
"@local/configs": "0.0.0",
|