tslint-microsoft-contrib
Advanced tools
Comparing version 2.0.11 to 2.0.12
{ | ||
"name": "tslint-microsoft-contrib", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "TSLint Rules for Microsoft", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -9,5 +9,5 @@ "use strict"; | ||
var Lint = require('tslint/lib/lint'); | ||
var _ = require('underscore'); | ||
var ErrorTolerantWalker_1 = require('./utils/ErrorTolerantWalker'); | ||
var SyntaxKind_1 = require('./utils/SyntaxKind'); | ||
var Utils_1 = require('./utils/Utils'); | ||
var NO_HASH_FAILURE_STRING = 'Do not use # as anchor href.'; | ||
@@ -61,3 +61,3 @@ var LINK_TEXT_TOO_SHORT_FAILURE_STRING = 'Link text should be at least 4 characters long.'; | ||
current.text !== anchorInfo.text && | ||
!_(sameHrefDifferentTexts).include(anchorInfo)) { | ||
!Utils_1.Utils.contains(sameHrefDifferentTexts, anchorInfo)) { | ||
sameHrefDifferentTexts.push(anchorInfo); | ||
@@ -68,3 +68,3 @@ _this.addFailure(_this.createFailure(anchorInfo.start, anchorInfo.width, SAME_HREF_SAME_TEXT_FAILURE_STRING + _this.firstPosition(current))); | ||
current.text === anchorInfo.text && | ||
!_(differentHrefSameText).include(anchorInfo)) { | ||
!Utils_1.Utils.contains(differentHrefSameText, anchorInfo)) { | ||
differentHrefSameText.push(anchorInfo); | ||
@@ -76,3 +76,3 @@ _this.addFailure(_this.createFailure(anchorInfo.start, anchorInfo.width, DIFFERENT_HREF_DIFFERENT_TEXT_FAILURE_STRING + _this.firstPosition(current))); | ||
var this_1 = this; | ||
while (_(this.anchorInfoList).isEmpty() === false) { | ||
while (this.anchorInfoList.length > 0) { | ||
_loop_1(); | ||
@@ -79,0 +79,0 @@ } |
@@ -11,3 +11,3 @@ [![npm version](https://badge.fury.io/js/tslint-microsoft-contrib.svg)](https://badge.fury.io/js/tslint-microsoft-contrib) | ||
Version 2.0.11 (Stable) | ||
Version 2.0.12 (Stable) | ||
------------- | ||
@@ -18,3 +18,3 @@ The project has been in use for over a year on multiple projects. Please report any bugs or false positives you might find! | ||
Version 2.0.12 (In-Development) | ||
Version 2.0.13 (In-Development) | ||
------------- | ||
@@ -21,0 +21,0 @@ The [Latest Development Version](https://github.com/Microsoft/tslint-microsoft-contrib/tree/releases) is available online. |
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
529949