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 1.0.0 to 1.0.1

18

build/rules/noUseBeforeDeclareRule.js

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

var references = this.languageService.getReferencesAtPosition(this.fileName, position);
references.forEach(function (reference) {
var referencePosition = reference.textSpan.start();
if (_this.classStartPosition <= referencePosition && referencePosition < position) {
var failureString = Rule.FAILURE_STRING_PREFIX + name + Rule.FAILURE_STRING_POSTFIX;
var failure = _this.createFailure(referencePosition, name.length, failureString);
_this.addFailure(failure);
}
});
if (references) {
references.forEach(function (reference) {
var referencePosition = reference.textSpan.start();
if (_this.classStartPosition <= referencePosition && referencePosition < position) {
var failureString = Rule.FAILURE_STRING_PREFIX + name + Rule.FAILURE_STRING_POSTFIX;
var failure = _this.createFailure(referencePosition, name.length, failureString);
_this.addFailure(failure);
}
});
}
};
return NoUseBeforeDeclareWalker;
})(Lint.RuleWalker);

@@ -6,3 +6,7 @@ Change Log

---
* [bug] #238
v1.0.0
---
* upgrade TypeScript compiler to 1.3

@@ -9,0 +13,0 @@ * **BREAKING CHANGES**

{
"name": "tslint",
"version": "1.0.0",
"version": "1.0.1",
"description": "a static analysis linter for TypeScript",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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