@fimbul/mimir
Advanced tools
Comparing version 0.8.0-dev.20180416 to 0.8.0-dev.20180419
{ | ||
"name": "@fimbul/mimir", | ||
"version": "0.8.0-dev.20180416", | ||
"version": "0.8.0-dev.20180419", | ||
"description": "Core rules of the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "main": "recommended.yaml", |
@@ -16,3 +16,6 @@ "use strict"; | ||
const keywordStart = node.expression.pos - 'await'.length; | ||
this.addFailure(keywordStart, node.expression.pos, FAIL_MESSAGE, ymir_1.Replacement.delete(keywordStart, node.expression.getStart(this.sourceFile))); | ||
const replacements = [ymir_1.Replacement.delete(keywordStart, node.expression.getStart(this.sourceFile))]; | ||
if (tsutils_1.isArrowFunction(node.parent) && node.expression.kind === ts.SyntaxKind.ObjectLiteralExpression) | ||
replacements.push(ymir_1.Replacement.append(node.expression.getStart(this.sourceFile), '('), ymir_1.Replacement.append(node.expression.getEnd(), ')')); | ||
this.addFailure(keywordStart, node.expression.pos, FAIL_MESSAGE, replacements); | ||
} | ||
@@ -19,0 +22,0 @@ } |
Sorry, the diff of this file is not supported yet
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
250080
2931