@eslint-react/jsx
Advanced tools
Comparing version 1.30.1-next.1 to 1.30.1
@@ -73,3 +73,3 @@ 'use strict'; | ||
const variable = VAR__namespace.findVariable(attr.argument.name, initialScope); | ||
const variableNode = VAR__namespace.getVariableNode(variable, 0); | ||
const variableNode = VAR__namespace.getVariableInitNode(variable, 0); | ||
if (variableNode?.type === types.AST_NODE_TYPES.ObjectExpression) { | ||
@@ -241,3 +241,3 @@ return VAR__namespace.findPropertyInProperties(name, variableNode.properties, initialScope) != null; | ||
const variable = VAR__namespace.findVariable(name, jsxCtx.getScope(node)); | ||
const variableNode = variable && VAR__namespace.getVariableNode(variable, 0); | ||
const variableNode = variable && VAR__namespace.getVariableInitNode(variable, 0); | ||
return !!variableNode && isJSXValue(variableNode, jsxCtx, hint); | ||
@@ -244,0 +244,0 @@ } |
{ | ||
"name": "@eslint-react/jsx", | ||
"version": "1.30.1-next.1", | ||
"version": "1.30.1", | ||
"description": "ESLint React's TSESTree AST utility module for static analysis of JSX.", | ||
@@ -42,5 +42,5 @@ "homepage": "https://github.com/Rel1cx/eslint-react", | ||
"ts-pattern": "^5.6.2", | ||
"@eslint-react/ast": "1.30.1-next.1", | ||
"@eslint-react/eff": "1.30.1-next.1", | ||
"@eslint-react/var": "1.30.1-next.1" | ||
"@eslint-react/ast": "1.30.1", | ||
"@eslint-react/eff": "1.30.1", | ||
"@eslint-react/var": "1.30.1" | ||
}, | ||
@@ -47,0 +47,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
34541
+ Added@eslint-react/ast@1.30.1(transitive)
+ Added@eslint-react/eff@1.30.1(transitive)
+ Added@eslint-react/var@1.30.1(transitive)
- Removed@eslint-react/ast@1.30.1-next.1(transitive)
- Removed@eslint-react/eff@1.30.1-next.1(transitive)
- Removed@eslint-react/var@1.30.1-next.1(transitive)
Updated@eslint-react/ast@1.30.1
Updated@eslint-react/eff@1.30.1
Updated@eslint-react/var@1.30.1