tslint-immutable
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "tslint-immutable", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "TSLint rules to disable all mutation in TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -29,3 +29,6 @@ "use strict"; | ||
if (node && node.kind === ts.SyntaxKind.ExpressionStatement) { | ||
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); | ||
var children = node.getChildren(); | ||
if (children.every(function (n) { return n.kind !== ts.SyntaxKind.YieldExpression; })) { | ||
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); | ||
} | ||
} | ||
@@ -32,0 +35,0 @@ _super.prototype.visitNode.call(this, node); |
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
23288
232