eslint-plugin-standard
Advanced tools
Comparing version 3.0.1 to 3.1.0
{ | ||
"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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
27739
8
607
1