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

tslint-immutable

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-immutable - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

package.json
{
"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);

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