tslint-loader
Advanced tools
Comparing version 3.5.2 to 3.5.3
# Changelog | ||
### 3.5.2 | ||
Remove empty error for Tslint 5, | ||
fixes [#71](https://github.com/wbuchwalter/tslint-loader/issues/71) | ||
### 3.5.1 | ||
@@ -4,0 +9,0 @@ |
14
index.js
@@ -35,3 +35,3 @@ /* | ||
options.formattersDirectory = options.formattersDirectory || __dirname + '/formatters/'; | ||
options.configuration = options.configuration || Lint.Linter.findConfiguration(configFile, webpackInstance.resourcePath).results; | ||
options.configuration = parseConfigFile(webpackInstance, configFile, options); | ||
options.tsConfigFile = options.tsConfigFile || 'tsconfig.json'; | ||
@@ -43,2 +43,14 @@ options.fix = options.fix || false; | ||
function parseConfigFile(webpackInstance, configFile, options) { | ||
if (!options.configuration) { | ||
return Lint.Linter.findConfiguration(configFile, webpackInstance.resourcePath).results; | ||
} | ||
if (semver.satisfies(Lint.Linter.VERSION, '>=5.0.0')) { | ||
return Lint.Configuration.parseConfigFile(options.configuration); | ||
} | ||
return options.configuration; | ||
} | ||
function lint(webpackInstance, input, options) { | ||
@@ -45,0 +57,0 @@ var lintOptions = { |
{ | ||
"name": "tslint-loader", | ||
"version": "3.5.2", | ||
"version": "3.5.3", | ||
"description": "tslint loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
60779
135