Comparing version 5.9.0 to 5.9.1
@@ -185,3 +185,3 @@ "use strict"; | ||
}, | ||
"typeof-compare": true, | ||
"typeof-compare": false, | ||
"unified-signatures": true, | ||
@@ -188,0 +188,0 @@ "use-isnan": true, |
@@ -230,3 +230,3 @@ "use strict"; | ||
}; | ||
Linter.VERSION = "5.9.0"; | ||
Linter.VERSION = "5.9.1"; | ||
Linter.findConfiguration = configuration_1.findConfiguration; | ||
@@ -233,0 +233,0 @@ Linter.findConfigurationPath = configuration_1.findConfigurationPath; |
import { IOptions, IRule, RuleConstructor } from "./language/rule/rule"; | ||
export declare function loadRules(ruleOptionsList: IOptions[], rulesDirectories?: string | string[], isJs?: boolean): IRule[]; | ||
/** @internal private API */ | ||
export declare function findRule(name: string, rulesDirectories?: string | string[]): RuleConstructor | undefined; |
@@ -69,2 +69,3 @@ "use strict"; | ||
exports.loadRules = loadRules; | ||
/** @internal private API */ | ||
function findRule(name, rulesDirectories) { | ||
@@ -110,9 +111,9 @@ var camelizedName = transformName(name); | ||
} | ||
// get absolute path | ||
// treat directory as a relative path (which needs to be resolved) if it's a custom rule directory | ||
var absolutePath = directory; | ||
if (isCustomPath) { | ||
if (!fs.existsSync(directory)) { | ||
throw new error_1.FatalError("Could not find custom rule directory: " + directory); | ||
absolutePath = path.resolve(directory); | ||
if (!fs.existsSync(absolutePath)) { | ||
throw new error_1.FatalError("Could not find custom rule directory: " + absolutePath); | ||
} | ||
absolutePath = path.resolve(directory); | ||
} | ||
@@ -119,0 +120,0 @@ var Rule = loadRule(absolutePath, ruleName); |
{ | ||
"name": "tslint", | ||
"version": "5.9.0", | ||
"version": "5.9.1", | ||
"description": "An extensible static analysis linter for the TypeScript language", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
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
1359611
27748