Socket
Socket
Sign inDemoInstall

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 6.0.0-beta1 to 6.0.0

4

lib/linter.js

@@ -196,3 +196,3 @@ "use strict";

}
fs.writeFileSync(filePath, fileNewSource);
fs.writeFileSync(path.resolve(filePath), fileNewSource);
_this.updateProgram(filePath);

@@ -247,3 +247,3 @@ });

};
Linter.VERSION = "6.0.0-beta1";
Linter.VERSION = "6.0.0";
Linter.findConfiguration = configuration_1.findConfiguration;

@@ -250,0 +250,0 @@ Linter.findConfigurationPath = configuration_1.findConfigurationPath;

@@ -27,5 +27,5 @@ "use strict";

pass: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n const x: string = '11';\n const dec: number = parseInt(x, 10);\n const bin: number = parseInt(x, 2);\n const hex: number = parseInt(x, 16);\n "], ["\n const x: string = '11';\n const dec: number = parseInt(x, 10);\n const bin: number = parseInt(x, 2);\n const hex: number = parseInt(x, 16);\n "]))),
fail: Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n const x: string = '11';\n const dec: number = parseInt(x);\n const bin: number = parseInt(x, 2);\n const hex: number = parseInt(x, 16);\n "], ["\n const x: string = '11';\n const dec: number = parseInt(x);\n const bin: number = parseInt(x, 2);\n const hex: number = parseInt(x, 16);\n "]))),
fail: Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n const x: string = '11';\n const dec: number = parseInt(x);\n "], ["\n const x: string = '11';\n const dec: number = parseInt(x);\n "]))),
},
];
var templateObject_1, templateObject_2, templateObject_3;

@@ -40,2 +40,5 @@ "use strict";

}
if (this.contentTags === undefined) {
return false;
}
var matcherBody = this.contentTags[tagWithContent[0]];

@@ -42,0 +45,0 @@ if (matcherBody === undefined) {

@@ -107,3 +107,3 @@ "use strict";

var NEW_LINE_FOLLOWING_HEADER = /^.*((\r)?\n){2,}$/gm;
return (entireComment !== undefined && NEW_LINE_FOLLOWING_HEADER.test(entireComment) !== null);
return entireComment !== undefined && !NEW_LINE_FOLLOWING_HEADER.test(entireComment);
};

@@ -110,0 +110,0 @@ Rule.prototype.getFileHeaderText = function (text, offset, allowSingleLineComments) {

{
"name": "tslint",
"version": "6.0.0-beta1",
"version": "6.0.0",
"description": "An extensible static analysis linter for the TypeScript language",

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

@@ -10,6 +10,8 @@ [![NPM version](https://badge.fury.io/js/tslint.svg)](https://badge.fury.io/js/tslint)

:warning: __TSLint is deprecated.__
> See this issue for more details: [Roadmap: TSLint → ESLint](https://github.com/palantir/tslint/issues/4534). If you're interested in helping with the TSLint/ESLint migration, please check out our [OSS Fellowship](https://medium.com/palantir/fellowships-for-open-source-developers-3892e6b75ee1) program.
TSLint is an extensible static analysis tool that checks [TypeScript](https://github.com/Microsoft/TypeScript) code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.
:warning: __TSLint will be deprecated some time in 2019__. See this issue for more details: [Roadmap: TSLint → ESLint](https://github.com/palantir/tslint/issues/4534). If you're interested in helping with the TSLint/ESLint migration, please check out our [OSS Fellowship](https://medium.com/palantir/fellowships-for-open-source-developers-3892e6b75ee1) program.
TSLint currently supports:

@@ -16,0 +18,0 @@

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