@jessitron/tslint
Advanced tools
Comparing version 5.12.1 to 5.12.2
@@ -157,2 +157,5 @@ "use strict"; | ||
(options.allowNullUnion || options.allowUndefinedUnion)) { | ||
if (type.symbol && type.symbol.name === "Promise") { | ||
ctx.addFailureAtNode(node, "This type is not allowed in the 'if' condition because it is a Promise | undefined | null. Promises are never never allowed."); | ||
} | ||
// OK; It might be null/undefined. | ||
@@ -159,0 +162,0 @@ return; |
{ | ||
"name": "@jessitron/tslint", | ||
"version": "5.12.1", | ||
"version": "5.12.2", | ||
"description": "An extensible static analysis linter for the TypeScript language", | ||
@@ -91,2 +91,2 @@ "bin": { | ||
"license": "Apache-2.0" | ||
} | ||
} |
1698479
34172