Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-factorial

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-factorial - npm Package Compare versions

Comparing version 2.0.19 to 2.0.20

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc