@eslint-react/var
Advanced tools
Comparing version 1.23.3-next.5 to 1.23.3-next.6
@@ -44,6 +44,6 @@ 'use strict'; | ||
const scope = scopeManager.acquire(node, inner); | ||
if (scope) { | ||
if (scope != null) { | ||
return scope; | ||
} | ||
if (parent) { | ||
if (parent != null) { | ||
return getScope(parent, scopeManager); | ||
@@ -84,3 +84,3 @@ } | ||
return def.node; | ||
case ("init" in def.node && def.node.init && !("declarations" in def.node.init)): | ||
case ("init" in def.node && def.node.init != null && !("declarations" in def.node.init)): | ||
return def.node.init; | ||
@@ -109,3 +109,3 @@ default: | ||
const { node, parent } = latestDef.value; | ||
if (node.type === types.AST_NODE_TYPES.VariableDeclarator && node.init) { | ||
if (node.type === types.AST_NODE_TYPES.VariableDeclarator && node.init != null) { | ||
const { init } = node; | ||
@@ -112,0 +112,0 @@ if (init.type === types.AST_NODE_TYPES.MemberExpression && init.object.type === types.AST_NODE_TYPES.Identifier) { |
{ | ||
"name": "@eslint-react/var", | ||
"version": "1.23.3-next.5", | ||
"version": "1.23.3-next.6", | ||
"description": "ESLint React's TSESTree AST utility module for static analysis of variables", | ||
@@ -41,5 +41,5 @@ "homepage": "https://github.com/rEl1cx/eslint-react", | ||
"ts-pattern": "^5.6.0", | ||
"@eslint-react/ast": "1.23.3-next.5", | ||
"@eslint-react/types": "1.23.3-next.5", | ||
"@eslint-react/eff": "1.23.3-next.5" | ||
"@eslint-react/ast": "1.23.3-next.6", | ||
"@eslint-react/eff": "1.23.3-next.6", | ||
"@eslint-react/types": "1.23.3-next.6" | ||
}, | ||
@@ -46,0 +46,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35677
+ Added@eslint-react/ast@1.23.3-next.6(transitive)
+ Added@eslint-react/eff@1.23.3-next.6(transitive)
+ Added@eslint-react/types@1.23.3-next.6(transitive)
- Removed@eslint-react/ast@1.23.3-next.5(transitive)
- Removed@eslint-react/eff@1.23.3-next.5(transitive)
- Removed@eslint-react/types@1.23.3-next.5(transitive)