diff options
Diffstat (limited to 'node_modules/tslint/lib/linter.js')
-rw-r--r-- | node_modules/tslint/lib/linter.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/node_modules/tslint/lib/linter.js b/node_modules/tslint/lib/linter.js index f67c0198c..7662ed8d4 100644 --- a/node_modules/tslint/lib/linter.js +++ b/node_modules/tslint/lib/linter.js @@ -38,7 +38,7 @@ var Linter = /** @class */ (function () { if (typeof options !== "object") { throw new Error("Unknown Linter options type: " + typeof options); } - if (options.configuration != null) { + if (options.configuration != undefined) { throw new Error("ILinterOptions does not contain the property `configuration` as of version 4. " + "Did you mean to pass the `IConfigurationFile` object to lint() ? "); } @@ -81,9 +81,7 @@ var Linter = /** @class */ (function () { fileFailures = this.applyAllFixes(enabledRules, fileFailures, sourceFile, fileName); } // add rule severity to failures - var ruleSeverityMap = new Map(enabledRules.map( - // tslint:disable-next-line no-unnecessary-type-assertion - function (rule) { return [rule.getOptions().ruleName, rule.getOptions().ruleSeverity]; })); + var ruleSeverityMap = new Map(enabledRules.map(function (rule) { return [rule.getOptions().ruleName, rule.getOptions().ruleSeverity]; })); for (var _i = 0, fileFailures_1 = fileFailures; _i < fileFailures_1.length; _i++) { var failure = fileFailures_1[_i]; var severity = ruleSeverityMap.get(failure.getRuleName()); @@ -210,7 +208,7 @@ var Linter = /** @class */ (function () { } var _a; }; - Linter.VERSION = "5.7.0"; + Linter.VERSION = "5.8.0"; Linter.findConfiguration = configuration_1.findConfiguration; Linter.findConfigurationPath = configuration_1.findConfigurationPath; Linter.getRulesDirectories = configuration_1.getRulesDirectories; |