@eslint-react/core 3.0.0-next.29 → 3.0.0-next.32

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
@@ -369,8 +369,8 @@ function getJsxAttribute(context, node, initialScope) {
369
369
  if (attr.type === AST_NODE_TYPES.JSXAttribute) return getJsxAttributeName(context, attr) === name;
370
370
  switch (attr.argument.type) {
371
371
  case AST_NODE_TYPES.Identifier: {
372
- const variableNode = getVariableInitializer(findVariable(attr.argument.name, scope), 0);
373
- if (variableNode?.type === AST_NODE_TYPES.ObjectExpression) return findProperty(name, variableNode.properties, scope) != null;
372
+ const initNode = getVariableInitializer(findVariable(attr.argument.name, scope), 0);
373
+ if (initNode?.type === AST_NODE_TYPES.ObjectExpression) return findProperty(name, initNode.properties, scope) != null;
374
374
  return false;
375
375
  }
376
376
  case AST_NODE_TYPES.ObjectExpression: return findProperty(name, attr.argument.properties, scope) != null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "3.0.0-next.29",
3
+ "version": "3.0.0-next.32",
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": {
@@ -34,10 +34,10 @@
34
34
  "@typescript-eslint/types": "canary",
35
35
  "@typescript-eslint/utils": "canary",
36
36
  "ts-pattern": "^5.9.0",
37
- "@eslint-react/ast": "3.0.0-next.29",
38
- "@eslint-react/var": "3.0.0-next.29",
39
- "@eslint-react/eff": "3.0.0-next.29",
40
- "@eslint-react/shared": "3.0.0-next.29"
37
+ "@eslint-react/ast": "3.0.0-next.32",
38
+ "@eslint-react/eff": "3.0.0-next.32",
39
+ "@eslint-react/var": "3.0.0-next.32",
40
+ "@eslint-react/shared": "3.0.0-next.32"
41
41
  },
42
42
  "devDependencies": {
43
43
  "tsdown": "^0.20.3",