@eslint-react/core 5.23.5 → 5.24.0-beta.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 +2 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -351,8 +351,8 @@ function getCreateElementPropsObject(context, node) {
|
|
|
351
351
|
if (!isCreateElementCall(context, node)) return null;
|
|
352
352
|
const propsArg = node.arguments[1];
|
|
353
353
|
if (propsArg == null) return null;
|
|
354
|
-
const
|
|
355
|
-
return
|
|
354
|
+
const expr = Extract.unwrap(propsArg);
|
|
355
|
+
return expr.type === AST_NODE_TYPES.ObjectExpression ? expr : null;
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
358
358
|
* Get the children arguments (the arguments after the props object) of a `createElement` call.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.24.0-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.
|
|
33
|
-
"@eslint-react/eslint": "5.
|
|
34
|
-
"@eslint-react/shared": "5.
|
|
35
|
-
"@eslint-react/var": "5.
|
|
32
|
+
"@eslint-react/ast": "5.24.0-beta.1",
|
|
33
|
+
"@eslint-react/eslint": "5.24.0-beta.1",
|
|
34
|
+
"@eslint-react/shared": "5.24.0-beta.1",
|
|
35
|
+
"@eslint-react/var": "5.24.0-beta.1",
|
|
36
36
|
"@typescript-eslint/types": "^8.71.0",
|
|
37
37
|
"@typescript-eslint/utils": "^8.71.0",
|
|
38
38
|
"ts-pattern": "^5.9.0"
|