eslint-plugin-factorial
Advanced tools
Comparing version 2.0.19 to 2.0.20
{ | ||
"name": "eslint-plugin-factorial", | ||
"version": "2.0.19", | ||
"version": "2.0.20", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -6,7 +6,8 @@ module.exports = { | ||
const allEqual = node.members.reduce((memo, item) => { | ||
if (!item.initializer) return true | ||
if (!item.initializer.type.includes('Literal')) return false | ||
if (!item.initializer) return memo | ||
if (item.initializer.type !== 'Literal' && item.initializer.type !== 'StringLiteral') return false | ||
if (item.id.type !== 'Identifier') return false | ||
return memo && item.id.name.toLowerCase() === item.initializer.value.toLowerCase() | ||
return memo && item.id.name.toLowerCase() === item.initializer.value.toString().toLowerCase() | ||
}, true) | ||
@@ -13,0 +14,0 @@ |
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
14452