tslint-loader
Advanced tools
Comparing version 0.9.1 to 1.0.0
@@ -47,3 +47,3 @@ /* | ||
if(this.options.tslint) { | ||
merge(options.configuration, this.options.tslint); | ||
merge(options, this.options.tslint); | ||
} | ||
@@ -53,8 +53,8 @@ | ||
var query = loaderUtils.parseQuery(this.query); | ||
merge(options.configuration, query); | ||
merge(options, query); | ||
var linter = new Linter(this.resourcePath, input, options); | ||
var result = linter.lint(); | ||
var emitter = options.configuration.emitErrors ? this.emitError : this.emitWarning; | ||
report(result, emitter, options.configuration.failOnHint); | ||
var emitter = options.emitErrors ? this.emitError : this.emitWarning; | ||
report(result, emitter, options.failOnHint); | ||
} | ||
@@ -61,0 +61,0 @@ |
{ | ||
"name": "tslint-loader", | ||
"version": "0.9.1", | ||
"version": "1.0.0", | ||
"description": "tslint loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,6 +19,6 @@ # tslint loader for webpack | ||
tslint: { | ||
// any tslint option https://www.npmjs.com/package/tslint#supported-rules | ||
// i. e. | ||
rules: { | ||
quotemark: [true, "double"] | ||
configuration: { | ||
rules: { | ||
quotemark: [true, "double"] | ||
} | ||
}, | ||
@@ -31,5 +31,11 @@ | ||
// tslint does not interrupt the compilation by default | ||
// if you want any file with jshint errors to fail | ||
// if you want any file with tslint errors to fail | ||
// set failOnHint to true | ||
failOnHint: true, | ||
// name of your formatter (optional) | ||
formatter: "yourformatter", | ||
// path to directory contating formatter (optional) | ||
formattersDirectory: "node_modules/tslint-loader/formatters/" | ||
} | ||
@@ -36,0 +42,0 @@ } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5803
1
53