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

tslint

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

0

build/formatters/jsonFormatter.js

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

6

build/rules/noUnusedVariableRule.js

@@ -7,2 +7,4 @@ var __extends = this.__extends || function (d, b) {

};
var OPTION_CHECK_PARAMETERS = "check-parameters";
var Rule = (function (_super) {

@@ -83,5 +85,5 @@ __extends(Rule, _super);

var variableName = node.identifier.text();
var position = this.positionAfter(node.modifiers);
var position = this.positionAfter(node.dotDotDotToken, node.modifiers) + node.leadingTriviaWidth();
if (!this.hasModifier(node.modifiers, "public") && !this.skipParameterDeclaration) {
if (!this.hasModifier(node.modifiers, "public") && !this.skipParameterDeclaration && this.hasOption(OPTION_CHECK_PARAMETERS)) {
this.validateReferencesForVariable(variableName, position);

@@ -88,0 +90,0 @@ }

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) {

Change Log
===
v0.4.5
---
* [feature] `no-unused-variable` no longer checks parameters by defualt. Parameters are now only checked if the `check-parameters` option is set.
* [bug] `no-unused-variable` parameter check no longer fails on variable argument parameters (like ...args) and on cases where the parameters are broken up by newlines.
v0.4.4

@@ -5,0 +10,0 @@ ---

{
"name": "tslint",
"version": "0.4.4",
"version": "0.4.5",
"description": "a static analysis linter for TypeScript",

@@ -5,0 +5,0 @@ "bin": {

@@ -41,2 +41,4 @@ TSLint [![NPM version](https://badge.fury.io/js/tslint.png)](http://badge.fury.io/js/tslint) [![Builds](https://api.travis-ci.org/repositories/palantir/tslint.png?branch=master)](https://travis-ci.org/palantir/tslint)

* `no-unused-variable` disallows unused imports, variables, functions and private class members.
* `"check-parameters"` disallows unused function and constructor parameters.
* NOTE: this option is experimental and does not work with classes that use abstract method declarations, among other things. Use at your own risk.
* `no-unreachable` disallows unreachable code after `break`, `catch`, `throw`, and `return` statements.

@@ -43,0 +45,0 @@ * `no-use-before-declare` disallows usage of variables before their declaration.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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