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

eslint-plugin-standard

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-standard - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

6

package.json
{
"name": "eslint-plugin-standard",
"description": "ESlint Plugin for the Standard Linter",
"version": "3.0.1",
"version": "3.1.0",
"author": "Jamund Ferguson <jamund@gmail.com>",

@@ -11,4 +11,4 @@ "bugs": {

"devDependencies": {
"eslint": "^3.19.0",
"mocha": "^3.2.0",
"eslint": "^4.19.1",
"mocha": "^5.1.1",
"standard": "*"

@@ -15,0 +15,0 @@ },

@@ -17,3 +17,5 @@ 'use strict'

meta: {
docs: {}
docs: {
url: 'https://github.com/xjamundx/eslint-plugin-standard#rules-explanations'
}
},

@@ -20,0 +22,0 @@

@@ -14,3 +14,5 @@ 'use strict'

meta: {
docs: {}
docs: {
url: 'https://github.com/xjamundx/eslint-plugin-standard#rules-explanations'
}
},

@@ -17,0 +19,0 @@

@@ -51,3 +51,5 @@ /**

meta: {
docs: {}
docs: {
url: 'https://github.com/xjamundx/eslint-plugin-standard#rules-explanations'
}
},

@@ -66,10 +68,6 @@

var errorArg = node.arguments[0]
if (errorArg && isCallback(node.callee.name)) {
if (!couldBeError(errorArg)) {
context.report(node, 'Unexpected literal in error position of callback.')
} else if (node.arguments.length > 1 && errorArg.type === 'Identifier') {
if (errorArg.name === 'undefined') {
context.report(node, 'Expected "null" instead of "undefined" in error position of callback.')
}
}
var calleeName = node.callee.name
if (errorArg && !couldBeError(errorArg) && isCallback(calleeName)) {
context.report(node, 'Unexpected literal in error position of callback.')
}

@@ -76,0 +74,0 @@ }

@@ -17,3 +17,5 @@ 'use strict'

meta: {
docs: {}
docs: {
url: 'https://github.com/xjamundx/eslint-plugin-standard#rules-explanations'
}
},

@@ -20,0 +22,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