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

tslint-microsoft-contrib

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-microsoft-contrib - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

5

chaiVagueErrorsRule.js

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -73,3 +74,3 @@ var ChaiVagueErrorsRuleWalker = (function (_super) {

return ChaiVagueErrorsRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=chaiVagueErrorsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -30,3 +31,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -93,4 +94,4 @@ var ExportNameWalker = (function (_super) {

return ExportNameWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
exports.ExportNameWalker = ExportNameWalker;
//# sourceMappingURL=exportNameRule.js.map

7

jqueryDeferredMustCompleteRule.js

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -35,3 +36,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -74,3 +75,3 @@ var JQueryDeferredAnalyzer = (function (_super) {

return JQueryDeferredAnalyzer;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
var DeferredCompletionWalker = (function (_super) {

@@ -159,3 +160,3 @@ __extends(DeferredCompletionWalker, _super);

return DeferredCompletionWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=jqueryDeferredMustCompleteRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -34,3 +35,3 @@ var MissingJSDocWalker = (function (_super) {

return MissingJSDocWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=missingJsdocRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -63,3 +64,3 @@ var MissingOptionalAnnotationWalker = (function (_super) {

return MissingOptionalAnnotationWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=missingOptionalAnnotationRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -20,3 +21,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -47,3 +48,3 @@ var MochaAvoidOnlyRuleWalker = (function (_super) {

return MochaAvoidOnlyRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=mochaAvoidOnlyRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -21,3 +22,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -44,3 +45,3 @@ var NoBackboneGetSetOutsideModelRuleWalker = (function (_super) {

return NoBackboneGetSetOutsideModelRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noBackboneGetSetOutsideModelRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -20,4 +21,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;
//# sourceMappingURL=noBannedTermsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -70,3 +71,3 @@ var NoConstantConditionRuleWalker = (function (_super) {

return NoConstantConditionRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noConstantConditionRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -55,3 +56,3 @@ var NoControlRegexRuleWalker = (function (_super) {

return NoControlRegexRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noControlRegexRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -22,3 +23,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -39,3 +40,3 @@ var NoCookiesWalker = (function (_super) {

var typeAsString = this.typeChecker.typeToString(leftSideType);
if (leftSideType.flags === 1 || typeAsString === 'Document') {
if (leftSideType.flags === ts.TypeFlags.Any || typeAsString === 'Document') {
this.addFailure(this.createFailure(leftSide.getStart(), leftSide.getWidth(), Rule.FAILURE_STRING));

@@ -53,3 +54,3 @@ }

return NoCookiesWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noCookiesRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -20,3 +21,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -48,3 +49,3 @@ var NoDeleteExpression = (function (_super) {

return NoDeleteExpression;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noDeleteExpressionRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -35,3 +36,3 @@ var NoDisableAutoSanitizationWalker = (function (_super) {

return NoDisableAutoSanitizationWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noDisableAutoSanitizationRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -24,3 +25,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -41,3 +42,3 @@ var NoDocumentWriteWalker = (function (_super) {

var typeAsString = this.typeChecker.typeToString(leftSideType);
if (leftSideType.flags === 1 || typeAsString === 'Document') {
if (leftSideType.flags === ts.TypeFlags.Any || typeAsString === 'Document') {
if (functionName === 'write') {

@@ -55,3 +56,3 @@ this.addFailure(this.createFailure(leftSide.getStart(), leftSide.getWidth(), Rule.WRITE_FAILURE));

return NoDocumentWriteWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noDocumentWriteRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -47,3 +48,3 @@ var NoDuplicateCaseRuleWalker = (function (_super) {

return NoDuplicateCaseRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noDuplicateCaseRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -62,3 +63,3 @@ var NoDuplicateParameterNamesWalker = (function (_super) {

return NoDuplicateParameterNamesWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noDuplicateParameterNamesRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -42,3 +43,3 @@ var NoEmptyInterfacesRuleWalker = (function (_super) {

return NoEmptyInterfacesRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noEmptyInterfacesRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -40,3 +41,3 @@ var NoEvalScriptWalker = (function (_super) {

return NoEvalScriptWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noExecScriptRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -33,3 +34,3 @@ var NoForInRuleWalker = (function (_super) {

return NoForInRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noForInRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -23,3 +24,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -43,3 +44,3 @@ var NoFunctionConstructorWithStringArgsWalker = (function (_super) {

return NoFunctionConstructorWithStringArgsWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noFunctionConstructorWithStringArgsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -37,3 +38,3 @@ var NoFunctionExpressionRuleWalker = (function (_super) {

return NoFunctionExpressionRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
var SingleFunctionWalker = (function (_super) {

@@ -56,3 +57,3 @@ __extends(SingleFunctionWalker, _super);

return SingleFunctionWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noFunctionExpressionRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -20,3 +21,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -57,3 +58,3 @@ var NoHttpStringWalker = (function (_super) {

return NoHttpStringWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noHttpStringRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -43,3 +44,3 @@ var NoIncrementDecrementWalker = (function (_super) {

return NoIncrementDecrementWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noIncrementDecrementRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -41,3 +42,3 @@ var NoInvalidRegexpRuleWalker = (function (_super) {

try {
var regex = new RegExp(regexpText);
new RegExp(regexpText);
}

@@ -52,3 +53,3 @@ catch (e) {

return NoInvalidRegexpRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noInvalidRegexpRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -53,3 +54,3 @@ var MissingVisibilityModifierWalker = (function (_super) {

return MissingVisibilityModifierWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noMissingVisibilityModifiersRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -37,3 +38,3 @@ var NoMultilineStringWalker = (function (_super) {

return NoMultilineStringWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noMultilineStringRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -33,3 +34,3 @@ var NoMultipleVarDeclRuleWalker = (function (_super) {

return NoMultipleVarDeclRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noMultipleVarDeclRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -20,3 +21,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -44,3 +45,3 @@ var NoOctalLiteral = (function (_super) {

return NoOctalLiteral;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noOctalLiteralRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -35,3 +36,3 @@ var NoRegexSpacesRuleWalker = (function (_super) {

return NoRegexSpacesRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noRegexSpacesRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -38,4 +39,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;
//# sourceMappingURL=noReservedKeywordsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -20,3 +21,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -42,3 +43,3 @@ var NoSparseArraysRuleWalker = (function (_super) {

return NoSparseArraysRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noSparseArraysRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -22,4 +23,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;
//# sourceMappingURL=noStringBasedSetImmediateRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -22,4 +23,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;
//# sourceMappingURL=noStringBasedSetIntervalRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -22,4 +23,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;
//# sourceMappingURL=noStringBasedSetTimeoutRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -18,3 +19,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -95,5 +96,4 @@ var NoUnexternalizedStringsRuleWalker = (function (_super) {

NoUnexternalizedStringsRuleWalker.SINGLE_QUOTE = '\'';
NoUnexternalizedStringsRuleWalker.DOUBLE_QUOTE = '"';
return NoUnexternalizedStringsRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noUnexternalizedStringsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -30,3 +31,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -63,3 +64,3 @@ var NoUnnecessaryBindRuleWalker = (function (_super) {

return NoUnnecessaryBindRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
var TypeScriptFunctionAnalyzer = (function () {

@@ -80,3 +81,3 @@ function TypeScriptFunctionAnalyzer() {

return TypeScriptFunctionAnalyzer;
})();
}());
var UnderscoreStaticAnalyzer = (function () {

@@ -128,3 +129,3 @@ function UnderscoreStaticAnalyzer() {

return UnderscoreStaticAnalyzer;
})();
}());
var UnderscoreInstanceAnalyzer = (function () {

@@ -170,3 +171,3 @@ function UnderscoreInstanceAnalyzer() {

return UnderscoreInstanceAnalyzer;
})();
}());
function isFunctionLiteral(expression) {

@@ -173,0 +174,0 @@ if (expression.kind === SyntaxKind.current().FunctionExpression) {

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -34,3 +35,3 @@ var NoUnnecessarySemicolonsWalker = (function (_super) {

return NoUnnecessarySemicolonsWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noUnnecessarySemicolonsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -30,3 +31,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -57,3 +58,3 @@ var GatherNoRequireImportsWalker = (function (_super) {

return GatherNoRequireImportsWalker;
})(Lint.RuleWalker);
}(Lint.RuleWalker));
var NoUnusedImportsWalker = (function (_super) {

@@ -82,3 +83,3 @@ __extends(NoUnusedImportsWalker, _super);

return NoUnusedImportsWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noUnusedImportsRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -34,3 +35,3 @@ var NoWithStatementWalker = (function (_super) {

return NoWithStatementWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=noWithStatementRule.js.map
{
"name": "tslint-microsoft-contrib",
"version": "2.0.1",
"version": "2.0.2",
"description": "TSLint Rules for Microsoft",

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

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -21,3 +22,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -49,3 +50,3 @@ var NoGenericArrayWalker = (function (_super) {

return NoGenericArrayWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=preferArrayLiteralRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -21,3 +22,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -73,3 +74,3 @@ var PromiseAnalyzer = (function (_super) {

return PromiseAnalyzer;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
var PromiseCompletionWalker = (function (_super) {

@@ -163,3 +164,3 @@ __extends(PromiseCompletionWalker, _super);

return PromiseCompletionWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=promiseMustCompleteRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -31,3 +32,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -84,3 +85,3 @@ var NoDangerousHtmlWalker = (function (_super) {

return NoDangerousHtmlWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=reactNoDangerousHtmlRule.js.map

@@ -11,10 +11,10 @@ [![npm version](https://badge.fury.io/js/tslint-microsoft-contrib.svg)](https://badge.fury.io/js/tslint-microsoft-contrib)

Version 2.0.1
Version 2.0.2
-------------
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.2.x users**: use project tslint-microsoft-contrib version 2.x
**TSLint version 3.1.x users**: Unsupported
**TSLint version 3.0.x users**: Unsupported
**TSLint version 2.x users**: use project tslint-microsoft-contrib version 1.x
* **TSLint version >= 3.2.x users**: use project tslint-microsoft-contrib version 2.x
* **TSLint version 3.1.x users**: Unsupported
* **TSLint version 3.0.x users**: Unsupported
* **TSLint version 2.x users**: use project tslint-microsoft-contrib version 1.x

@@ -29,2 +29,3 @@ Installation

* [Latest Development Version](https://github.com/Microsoft/tslint-microsoft-contrib/tree/releases)
* [2.0.1](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-2.0.1)
* [2.0.0](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-2.0.0)

@@ -31,0 +32,0 @@ * [1.0.0](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-1.0.0)

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -37,3 +38,3 @@ var UseIsnanRuleWalker = (function (_super) {

return UseIsnanRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=useIsnanRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -19,3 +20,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -40,3 +41,3 @@ var UseNamedParameterWalker = (function (_super) {

return UseNamedParameterWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=useNamedParameterRule.js.map

@@ -0,1 +1,2 @@

"use strict";
var ts = require('typescript');

@@ -87,15 +88,15 @@ var SyntaxKind = require('./SyntaxKind');

function isPrivate(node) {
return !!(node.flags & 32);
return !!(node.flags & ts.NodeFlags.Private);
}
AstUtils.isPrivate = isPrivate;
function isProtected(node) {
return !!(node.flags & 64);
return !!(node.flags & ts.NodeFlags.Protected);
}
AstUtils.isProtected = isProtected;
function isPublic(node) {
return !!(node.flags & 16);
return !!(node.flags & ts.NodeFlags.Public);
}
AstUtils.isPublic = isPublic;
function isStatic(node) {
return !!(node.flags & 128);
return !!(node.flags & ts.NodeFlags.Static);
}

@@ -102,0 +103,0 @@ AstUtils.isStatic = isStatic;

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -60,4 +61,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return BannedTermWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
module.exports = BannedTermWalker;
//# sourceMappingURL=BannedTermWalker.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -32,4 +33,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return ErrorTolerantWalker;
})(Lint.RuleWalker);
}(Lint.RuleWalker));
module.exports = ErrorTolerantWalker;
//# sourceMappingURL=ErrorTolerantWalker.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -30,4 +31,4 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return NoStringParameterToFunctionCallWalker;
})(ScopedSymbolTrackingWalker);
}(ScopedSymbolTrackingWalker));
module.exports = NoStringParameterToFunctionCallWalker;
//# sourceMappingURL=NoStringParameterToFunctionCallWalker.js.map

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -57,3 +58,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

ScopedSymbolTrackingWalker.prototype.isTypeFunction = function (expressionType, typeChecker) {
var signatures = typeChecker.getSignaturesOfType(expressionType, 0);
var signatures = typeChecker.getSignaturesOfType(expressionType, ts.SignatureKind.Call);
if (signatures != null && signatures.length > 0) {

@@ -139,3 +140,3 @@ var signatureDeclaration = signatures[0].declaration;

return ScopedSymbolTrackingWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
function isDeclarationFunctionType(node) {

@@ -174,3 +175,3 @@ if (node.type != null) {

return GlobalReferenceCollector;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
var Scope = (function () {

@@ -218,4 +219,4 @@ function Scope(parent) {

return Scope;
})();
}());
module.exports = ScopedSymbolTrackingWalker;
//# sourceMappingURL=ScopedSymbolTrackingWalker.js.map

@@ -0,1 +1,2 @@

"use strict";
var ts = require('typescript');

@@ -855,2 +856,303 @@ var SyntaxKind;

};
var SyntaxKind_1_8 = {
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,
GlobalKeyword: 134,
OfKeyword: 135,
QualifiedName: 136,
ComputedPropertyName: 137,
TypeParameter: 138,
Parameter: 139,
Decorator: 140,
PropertySignature: 141,
PropertyDeclaration: 142,
MethodSignature: 143,
MethodDeclaration: 144,
Constructor: 145,
GetAccessor: 146,
SetAccessor: 147,
CallSignature: 148,
ConstructSignature: 149,
IndexSignature: 150,
TypePredicate: 151,
TypeReference: 152,
FunctionType: 153,
ConstructorType: 154,
TypeQuery: 155,
TypeLiteral: 156,
ArrayType: 157,
TupleType: 158,
UnionType: 159,
IntersectionType: 160,
ParenthesizedType: 161,
ThisType: 162,
StringLiteralType: 163,
ObjectBindingPattern: 164,
ArrayBindingPattern: 165,
BindingElement: 166,
ArrayLiteralExpression: 167,
ObjectLiteralExpression: 168,
PropertyAccessExpression: 169,
ElementAccessExpression: 170,
CallExpression: 171,
NewExpression: 172,
TaggedTemplateExpression: 173,
TypeAssertionExpression: 174,
ParenthesizedExpression: 175,
FunctionExpression: 176,
ArrowFunction: 177,
DeleteExpression: 178,
TypeOfExpression: 179,
VoidExpression: 180,
AwaitExpression: 181,
PrefixUnaryExpression: 182,
PostfixUnaryExpression: 183,
BinaryExpression: 184,
ConditionalExpression: 185,
TemplateExpression: 186,
YieldExpression: 187,
SpreadElementExpression: 188,
ClassExpression: 189,
OmittedExpression: 190,
ExpressionWithTypeArguments: 191,
AsExpression: 192,
TemplateSpan: 193,
SemicolonClassElement: 194,
Block: 195,
VariableStatement: 196,
EmptyStatement: 197,
ExpressionStatement: 198,
IfStatement: 199,
DoStatement: 200,
WhileStatement: 201,
ForStatement: 202,
ForInStatement: 203,
ForOfStatement: 204,
ContinueStatement: 205,
BreakStatement: 206,
ReturnStatement: 207,
WithStatement: 208,
SwitchStatement: 209,
LabeledStatement: 210,
ThrowStatement: 211,
TryStatement: 212,
DebuggerStatement: 213,
VariableDeclaration: 214,
VariableDeclarationList: 215,
FunctionDeclaration: 216,
ClassDeclaration: 217,
InterfaceDeclaration: 218,
TypeAliasDeclaration: 219,
EnumDeclaration: 220,
ModuleDeclaration: 221,
ModuleBlock: 222,
CaseBlock: 223,
ImportEqualsDeclaration: 224,
ImportDeclaration: 225,
ImportClause: 226,
NamespaceImport: 227,
NamedImports: 228,
ImportSpecifier: 229,
ExportAssignment: 230,
ExportDeclaration: 231,
NamedExports: 232,
ExportSpecifier: 233,
MissingDeclaration: 234,
ExternalModuleReference: 235,
JsxElement: 236,
JsxSelfClosingElement: 237,
JsxOpeningElement: 238,
JsxText: 239,
JsxClosingElement: 240,
JsxAttribute: 241,
JsxSpreadAttribute: 242,
JsxExpression: 243,
CaseClause: 244,
DefaultClause: 245,
HeritageClause: 246,
CatchClause: 247,
PropertyAssignment: 248,
ShorthandPropertyAssignment: 249,
EnumMember: 250,
SourceFile: 251,
JSDocTypeExpression: 252,
JSDocAllType: 253,
JSDocUnknownType: 254,
JSDocArrayType: 255,
JSDocUnionType: 256,
JSDocTupleType: 257,
JSDocNullableType: 258,
JSDocNonNullableType: 259,
JSDocRecordType: 260,
JSDocRecordMember: 261,
JSDocTypeReference: 262,
JSDocOptionalType: 263,
JSDocFunctionType: 264,
JSDocVariadicType: 265,
JSDocConstructorType: 266,
JSDocThisType: 267,
JSDocComment: 268,
JSDocTag: 269,
JSDocParameterTag: 270,
JSDocReturnTag: 271,
JSDocTypeTag: 272,
JSDocTemplateTag: 273,
SyntaxList: 274,
Count: 275,
FirstAssignment: 56,
LastAssignment: 68,
FirstReservedWord: 70,
LastReservedWord: 105,
FirstKeyword: 70,
LastKeyword: 135,
FirstFutureReservedWord: 106,
LastFutureReservedWord: 114,
FirstTypeNode: 151,
LastTypeNode: 163,
FirstPunctuation: 15,
LastPunctuation: 68,
FirstToken: 0,
LastToken: 135,
FirstTriviaToken: 2,
LastTriviaToken: 7,
FirstLiteralToken: 8,
LastLiteralToken: 11,
FirstTemplateToken: 11,
LastTemplateToken: 14,
FirstBinaryOperator: 25,
LastBinaryOperator: 68,
FirstNode: 136
};
function current() {

@@ -867,2 +1169,5 @@ if (cachedKinds == null) {

}
else if (/1\.8\..*/.test(ts.version)) {
cachedKinds = SyntaxKind_1_8;
}
else {

@@ -869,0 +1174,0 @@ throw new Error('Unsupported TypeScript version: ' + ts.version);

@@ -0,1 +1,2 @@

"use strict";
var Utils;

@@ -2,0 +3,0 @@ (function (Utils) {

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -21,3 +22,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return Rule;
})(Lint.Rules.AbstractRule);
}(Lint.Rules.AbstractRule));
exports.Rule = Rule;

@@ -67,3 +68,3 @@ var ValidTypeofRuleWalker = (function (_super) {

return ValidTypeofRuleWalker;
})(ErrorTolerantWalker);
}(ErrorTolerantWalker));
//# sourceMappingURL=validTypeofRule.js.map

Sorry, the diff of this file is not supported yet

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