@eslint-react/core 5.24.0-beta.0 → 5.24.0-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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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 propsObject = Extract.unwrap(propsArg);
355
- return propsObject.type === AST_NODE_TYPES.ObjectExpression ? propsObject : null;
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.24.0-beta.0",
3
+ "version": "5.24.0-beta.2",
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.24.0-beta.0",
33
- "@eslint-react/eslint": "5.24.0-beta.0",
34
- "@eslint-react/shared": "5.24.0-beta.0",
35
- "@eslint-react/var": "5.24.0-beta.0",
32
+ "@eslint-react/ast": "5.24.0-beta.2",
33
+ "@eslint-react/eslint": "5.24.0-beta.2",
34
+ "@eslint-react/shared": "5.24.0-beta.2",
35
+ "@eslint-react/var": "5.24.0-beta.2",
36
36
  "@typescript-eslint/types": "^8.71.0",
37
37
  "@typescript-eslint/utils": "^8.71.0",
38
38
  "ts-pattern": "^5.9.0"