eslint-plugin-uilib
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -24,7 +24,7 @@ const _ = require('lodash'); | ||
if (valueNode === false || _.isNil(valueNode) || valueNode.value !== undefined) { | ||
if (scope.block.body.length > 0) { | ||
if (scope && scope.block && scope.block.body && scope.block.body.length > 0) { | ||
scope.block.body.forEach(scopeNode => { | ||
if (scopeNode.type === 'ExpressionStatement') { | ||
if (scopeNode && scopeNode.type === 'ExpressionStatement') { | ||
const variableName = _.get(scopeNode, 'expression.left.name'); | ||
if (variableName === identifierName) { | ||
if (variableName === identifierName && scopeNode.expression && scopeNode.expression.right) { | ||
valueNode = scopeNode.expression.right; | ||
@@ -31,0 +31,0 @@ } |
{ | ||
"name": "eslint-plugin-uilib", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "uilib set of eslint rules", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
162061