tslint-loader
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,0 +0,0 @@ var Lint = require("tslint/lib/lint"); |
@@ -7,2 +7,3 @@ /* | ||
var Linter = require("tslint"); | ||
var tslintConfig = require("tslint/lib/configuration"); | ||
var stripJsonComments = require("strip-json-comments"); | ||
@@ -28,3 +29,8 @@ var loaderUtils = require("loader-utils"); | ||
var file = fs.readFileSync(configPath, "utf8"); | ||
options.configuration = JSON.parse(stripJsonComments(file)); | ||
var config = JSON.parse(stripJsonComments(file)); | ||
options.configuration = config; | ||
if(config.rulesDirectory) { | ||
var resolvedDirectories = tslintConfig.getRulesDirectories(config.rulesDirectory, path.dirname(configPath)); | ||
options.rulesDirectory = resolvedDirectories; | ||
} | ||
} | ||
@@ -31,0 +37,0 @@ |
{ | ||
"name": "tslint-loader", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "tslint loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,3 +38,3 @@ # tslint loader for webpack | ||
// path to directory containing formatter (optional) | ||
formattersDirectory: "node_modules/tslint-loader/formatters/" | ||
formattersDirectory: "node_modules/tslint-loader/formatters/", | ||
@@ -55,3 +55,3 @@ // These options are useful if you want to save output to files | ||
// Useful for some report formats. | ||
header: "<?xml version="1.0" encoding="utf-8"?>\n<checkstyle version="5.7">", | ||
header: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<checkstyle version=\"5.7\">", | ||
@@ -58,0 +58,0 @@ // A string to include at the bottom of every report file. |
Sorry, the diff of this file is not supported yet
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
8586
141