Comparing version 6.0.0-beta1 to 6.0.0
@@ -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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1881945
37235
0
76
1