tslint-microsoft-contrib
Advanced tools
Comparing version 1.0.0 to 2.0.0
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Utils = require('./utils/Utils'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var AstUtils = require('./utils/AstUtils'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var BannedTermWalker = require('./utils/BannedTermWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +9,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var AstUtils = require('./utils/AstUtils'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +9,0 @@ var AstUtils = require('./utils/AstUtils'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var AstUtils = require('./utils/AstUtils'); |
@@ -1,8 +0,7 @@ | ||
/// <reference path="references.ts" /> | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -9,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +9,0 @@ var AstUtils = require('./utils/AstUtils'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var AstUtils = require('./utils/AstUtils'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var BannedTermWalker = require('./utils/BannedTermWalker'); | ||
@@ -8,0 +8,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./utils/SyntaxKind'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var NoStringParameterToFunctionCallWalker = require('./utils/NoStringParameterToFunctionCallWalker'); | ||
@@ -8,0 +9,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var NoStringParameterToFunctionCallWalker = require('./utils/NoStringParameterToFunctionCallWalker'); | ||
@@ -8,0 +9,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var NoStringParameterToFunctionCallWalker = require('./utils/NoStringParameterToFunctionCallWalker'); | ||
@@ -8,0 +9,0 @@ var Rule = (function (_super) { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +9,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
{ | ||
"name": "tslint-microsoft-contrib", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "TSLint Rules for Microsoft", | ||
@@ -5,0 +5,0 @@ "repository": { |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +9,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
@@ -11,6 +11,10 @@ [![npm version](https://badge.fury.io/js/tslint-microsoft-contrib.svg)](https://badge.fury.io/js/tslint-microsoft-contrib) | ||
Version 1.0.0 | ||
Version 2.0.0 | ||
------------- | ||
The project has been in use for at least several months on multiple projects. Please report any bugs or false positives you might find! | ||
**TSLint version 3.x users**: use project tslint-microsoft-contrib version 2.x | ||
**TSLint version 2.x users**: use project tslint-microsoft-contrib version 1.x | ||
Installation | ||
@@ -24,3 +28,3 @@ ------------ | ||
* [Latest Development Version](https://github.com/Microsoft/tslint-microsoft-contrib/tree/releases) | ||
* [1.0](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-1.0) | ||
* [1.0.0](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-1.0.0) | ||
* [0.0.4](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-0.0.4) | ||
@@ -39,3 +43,3 @@ | ||
rulesDirectory: 'node_modules/tslint-microsoft-contrib', | ||
configuration: grunt.file.readJSON("tslint-contrib.json") | ||
configuration: grunt.file.readJSON("tslint.json") | ||
}, | ||
@@ -48,10 +52,9 @@ files: { | ||
The tslint-contrib.json file follows the same conventions as other tslint rules. | ||
The tslint.json file does not change format when using this package. Just add our rule definitions to your existing tslint.json file. | ||
A sample configuration file with all options is available here: [tslint.json](tslint.json) | ||
Supported Rules | ||
----- | ||
A sample configuration file with all options is available here: [tslint.json](tslint.json) | ||
Rule Name | Description | Since | ||
@@ -58,0 +61,0 @@ :---------- | :------------ | ------------- |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var SyntaxKind = require('./utils/SyntaxKind'); | ||
@@ -8,0 +8,0 @@ var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); |
@@ -0,1 +1,2 @@ | ||
var ts = require('typescript'); | ||
var SyntaxKind = require('./SyntaxKind'); | ||
@@ -2,0 +3,0 @@ var AstUtils; |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
@@ -7,0 +6,0 @@ var ErrorTolerantWalker = require('./ErrorTolerantWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = (function (_super) { | ||
@@ -8,0 +8,0 @@ __extends(ErrorTolerantWalker, _super); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
@@ -7,0 +6,0 @@ var ScopedSymbolTrackingWalker = require('./ScopedSymbolTrackingWalker'); |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var ErrorTolerantWalker = require('./ErrorTolerantWalker'); | ||
@@ -8,0 +8,0 @@ var SyntaxKind = require('./SyntaxKind'); |
@@ -0,1 +1,2 @@ | ||
var ts = require('typescript'); | ||
var SyntaxKind; | ||
@@ -556,2 +557,300 @@ (function (SyntaxKind) { | ||
}; | ||
var SyntaxKind_1_7 = { | ||
Unknown: 0, | ||
EndOfFileToken: 1, | ||
SingleLineCommentTrivia: 2, | ||
MultiLineCommentTrivia: 3, | ||
NewLineTrivia: 4, | ||
WhitespaceTrivia: 5, | ||
ShebangTrivia: 6, | ||
ConflictMarkerTrivia: 7, | ||
NumericLiteral: 8, | ||
StringLiteral: 9, | ||
RegularExpressionLiteral: 10, | ||
NoSubstitutionTemplateLiteral: 11, | ||
TemplateHead: 12, | ||
TemplateMiddle: 13, | ||
TemplateTail: 14, | ||
OpenBraceToken: 15, | ||
CloseBraceToken: 16, | ||
OpenParenToken: 17, | ||
CloseParenToken: 18, | ||
OpenBracketToken: 19, | ||
CloseBracketToken: 20, | ||
DotToken: 21, | ||
DotDotDotToken: 22, | ||
SemicolonToken: 23, | ||
CommaToken: 24, | ||
LessThanToken: 25, | ||
LessThanSlashToken: 26, | ||
GreaterThanToken: 27, | ||
LessThanEqualsToken: 28, | ||
GreaterThanEqualsToken: 29, | ||
EqualsEqualsToken: 30, | ||
ExclamationEqualsToken: 31, | ||
EqualsEqualsEqualsToken: 32, | ||
ExclamationEqualsEqualsToken: 33, | ||
EqualsGreaterThanToken: 34, | ||
PlusToken: 35, | ||
MinusToken: 36, | ||
AsteriskToken: 37, | ||
AsteriskAsteriskToken: 38, | ||
SlashToken: 39, | ||
PercentToken: 40, | ||
PlusPlusToken: 41, | ||
MinusMinusToken: 42, | ||
LessThanLessThanToken: 43, | ||
GreaterThanGreaterThanToken: 44, | ||
GreaterThanGreaterThanGreaterThanToken: 45, | ||
AmpersandToken: 46, | ||
BarToken: 47, | ||
CaretToken: 48, | ||
ExclamationToken: 49, | ||
TildeToken: 50, | ||
AmpersandAmpersandToken: 51, | ||
BarBarToken: 52, | ||
QuestionToken: 53, | ||
ColonToken: 54, | ||
AtToken: 55, | ||
EqualsToken: 56, | ||
PlusEqualsToken: 57, | ||
MinusEqualsToken: 58, | ||
AsteriskEqualsToken: 59, | ||
AsteriskAsteriskEqualsToken: 60, | ||
SlashEqualsToken: 61, | ||
PercentEqualsToken: 62, | ||
LessThanLessThanEqualsToken: 63, | ||
GreaterThanGreaterThanEqualsToken: 64, | ||
GreaterThanGreaterThanGreaterThanEqualsToken: 65, | ||
AmpersandEqualsToken: 66, | ||
BarEqualsToken: 67, | ||
CaretEqualsToken: 68, | ||
Identifier: 69, | ||
BreakKeyword: 70, | ||
CaseKeyword: 71, | ||
CatchKeyword: 72, | ||
ClassKeyword: 73, | ||
ConstKeyword: 74, | ||
ContinueKeyword: 75, | ||
DebuggerKeyword: 76, | ||
DefaultKeyword: 77, | ||
DeleteKeyword: 78, | ||
DoKeyword: 79, | ||
ElseKeyword: 80, | ||
EnumKeyword: 81, | ||
ExportKeyword: 82, | ||
ExtendsKeyword: 83, | ||
FalseKeyword: 84, | ||
FinallyKeyword: 85, | ||
ForKeyword: 86, | ||
FunctionKeyword: 87, | ||
IfKeyword: 88, | ||
ImportKeyword: 89, | ||
InKeyword: 90, | ||
InstanceOfKeyword: 91, | ||
NewKeyword: 92, | ||
NullKeyword: 93, | ||
ReturnKeyword: 94, | ||
SuperKeyword: 95, | ||
SwitchKeyword: 96, | ||
ThisKeyword: 97, | ||
ThrowKeyword: 98, | ||
TrueKeyword: 99, | ||
TryKeyword: 100, | ||
TypeOfKeyword: 101, | ||
VarKeyword: 102, | ||
VoidKeyword: 103, | ||
WhileKeyword: 104, | ||
WithKeyword: 105, | ||
ImplementsKeyword: 106, | ||
InterfaceKeyword: 107, | ||
LetKeyword: 108, | ||
PackageKeyword: 109, | ||
PrivateKeyword: 110, | ||
ProtectedKeyword: 111, | ||
PublicKeyword: 112, | ||
StaticKeyword: 113, | ||
YieldKeyword: 114, | ||
AbstractKeyword: 115, | ||
AsKeyword: 116, | ||
AnyKeyword: 117, | ||
AsyncKeyword: 118, | ||
AwaitKeyword: 119, | ||
BooleanKeyword: 120, | ||
ConstructorKeyword: 121, | ||
DeclareKeyword: 122, | ||
GetKeyword: 123, | ||
IsKeyword: 124, | ||
ModuleKeyword: 125, | ||
NamespaceKeyword: 126, | ||
RequireKeyword: 127, | ||
NumberKeyword: 128, | ||
SetKeyword: 129, | ||
StringKeyword: 130, | ||
SymbolKeyword: 131, | ||
TypeKeyword: 132, | ||
FromKeyword: 133, | ||
OfKeyword: 134, | ||
QualifiedName: 135, | ||
ComputedPropertyName: 136, | ||
TypeParameter: 137, | ||
Parameter: 138, | ||
Decorator: 139, | ||
PropertySignature: 140, | ||
PropertyDeclaration: 141, | ||
MethodSignature: 142, | ||
MethodDeclaration: 143, | ||
Constructor: 144, | ||
GetAccessor: 145, | ||
SetAccessor: 146, | ||
CallSignature: 147, | ||
ConstructSignature: 148, | ||
IndexSignature: 149, | ||
TypePredicate: 150, | ||
TypeReference: 151, | ||
FunctionType: 152, | ||
ConstructorType: 153, | ||
TypeQuery: 154, | ||
TypeLiteral: 155, | ||
ArrayType: 156, | ||
TupleType: 157, | ||
UnionType: 158, | ||
IntersectionType: 159, | ||
ParenthesizedType: 160, | ||
ObjectBindingPattern: 161, | ||
ArrayBindingPattern: 162, | ||
BindingElement: 163, | ||
ArrayLiteralExpression: 164, | ||
ObjectLiteralExpression: 165, | ||
PropertyAccessExpression: 166, | ||
ElementAccessExpression: 167, | ||
CallExpression: 168, | ||
NewExpression: 169, | ||
TaggedTemplateExpression: 170, | ||
TypeAssertionExpression: 171, | ||
ParenthesizedExpression: 172, | ||
FunctionExpression: 173, | ||
ArrowFunction: 174, | ||
DeleteExpression: 175, | ||
TypeOfExpression: 176, | ||
VoidExpression: 177, | ||
AwaitExpression: 178, | ||
PrefixUnaryExpression: 179, | ||
PostfixUnaryExpression: 180, | ||
BinaryExpression: 181, | ||
ConditionalExpression: 182, | ||
TemplateExpression: 183, | ||
YieldExpression: 184, | ||
SpreadElementExpression: 185, | ||
ClassExpression: 186, | ||
OmittedExpression: 187, | ||
ExpressionWithTypeArguments: 188, | ||
AsExpression: 189, | ||
TemplateSpan: 190, | ||
SemicolonClassElement: 191, | ||
Block: 192, | ||
VariableStatement: 193, | ||
EmptyStatement: 194, | ||
ExpressionStatement: 195, | ||
IfStatement: 196, | ||
DoStatement: 197, | ||
WhileStatement: 198, | ||
ForStatement: 199, | ||
ForInStatement: 200, | ||
ForOfStatement: 201, | ||
ContinueStatement: 202, | ||
BreakStatement: 203, | ||
ReturnStatement: 204, | ||
WithStatement: 205, | ||
SwitchStatement: 206, | ||
LabeledStatement: 207, | ||
ThrowStatement: 208, | ||
TryStatement: 209, | ||
DebuggerStatement: 210, | ||
VariableDeclaration: 211, | ||
VariableDeclarationList: 212, | ||
FunctionDeclaration: 213, | ||
ClassDeclaration: 214, | ||
InterfaceDeclaration: 215, | ||
TypeAliasDeclaration: 216, | ||
EnumDeclaration: 217, | ||
ModuleDeclaration: 218, | ||
ModuleBlock: 219, | ||
CaseBlock: 220, | ||
ImportEqualsDeclaration: 221, | ||
ImportDeclaration: 222, | ||
ImportClause: 223, | ||
NamespaceImport: 224, | ||
NamedImports: 225, | ||
ImportSpecifier: 226, | ||
ExportAssignment: 227, | ||
ExportDeclaration: 228, | ||
NamedExports: 229, | ||
ExportSpecifier: 230, | ||
MissingDeclaration: 231, | ||
ExternalModuleReference: 232, | ||
JsxElement: 233, | ||
JsxSelfClosingElement: 234, | ||
JsxOpeningElement: 235, | ||
JsxText: 236, | ||
JsxClosingElement: 237, | ||
JsxAttribute: 238, | ||
JsxSpreadAttribute: 239, | ||
JsxExpression: 240, | ||
CaseClause: 241, | ||
DefaultClause: 242, | ||
HeritageClause: 243, | ||
CatchClause: 244, | ||
PropertyAssignment: 245, | ||
ShorthandPropertyAssignment: 246, | ||
EnumMember: 247, | ||
SourceFile: 248, | ||
JSDocTypeExpression: 249, | ||
JSDocAllType: 250, | ||
JSDocUnknownType: 251, | ||
JSDocArrayType: 252, | ||
JSDocUnionType: 253, | ||
JSDocTupleType: 254, | ||
JSDocNullableType: 255, | ||
JSDocNonNullableType: 256, | ||
JSDocRecordType: 257, | ||
JSDocRecordMember: 258, | ||
JSDocTypeReference: 259, | ||
JSDocOptionalType: 260, | ||
JSDocFunctionType: 261, | ||
JSDocVariadicType: 262, | ||
JSDocConstructorType: 263, | ||
JSDocThisType: 264, | ||
JSDocComment: 265, | ||
JSDocTag: 266, | ||
JSDocParameterTag: 267, | ||
JSDocReturnTag: 268, | ||
JSDocTypeTag: 269, | ||
JSDocTemplateTag: 270, | ||
SyntaxList: 271, | ||
Count: 272, | ||
FirstAssignment: 56, | ||
LastAssignment: 68, | ||
FirstReservedWord: 70, | ||
LastReservedWord: 105, | ||
FirstKeyword: 70, | ||
LastKeyword: 134, | ||
FirstFutureReservedWord: 106, | ||
LastFutureReservedWord: 114, | ||
FirstTypeNode: 151, | ||
LastTypeNode: 160, | ||
FirstPunctuation: 15, | ||
LastPunctuation: 68, | ||
FirstToken: 0, | ||
LastToken: 134, | ||
FirstTriviaToken: 2, | ||
LastTriviaToken: 7, | ||
FirstLiteralToken: 8, | ||
LastLiteralToken: 11, | ||
FirstTemplateToken: 11, | ||
LastTemplateToken: 14, | ||
FirstBinaryOperator: 25, | ||
LastBinaryOperator: 68, | ||
FirstNode: 135, | ||
}; | ||
function current() { | ||
@@ -565,4 +864,7 @@ if (cachedKinds == null) { | ||
} | ||
else if (/1\.7\..*/.test(ts.version)) { | ||
cachedKinds = SyntaxKind_1_7; | ||
} | ||
else { | ||
cachedKinds = SyntaxKind_1_6; | ||
throw new Error('Unsupported TypeScript version: ' + ts.version); | ||
} | ||
@@ -569,0 +871,0 @@ } |
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var Lint = require('tslint/lib/lint'); | ||
var ErrorTolerantWalker = require('./utils/ErrorTolerantWalker'); | ||
@@ -19,3 +19,3 @@ var SyntaxKind = require('./utils/SyntaxKind'); | ||
Rule.FAILURE_STRING = 'Invalid comparison in typeof. Did you mean '; | ||
Rule.VALID_TERMS = ['undefined', 'object', 'boolean', 'number', 'string', 'function']; | ||
Rule.VALID_TERMS = ['undefined', 'object', 'boolean', 'number', 'string', 'function', 'symbol']; | ||
return Rule; | ||
@@ -22,0 +22,0 @@ })(Lint.Rules.AbstractRule); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
173158
3720
141
0