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 5.9.0 to 5.9.1

2

lib/configs/recommended.js

@@ -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

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