Socket
Socket
Sign inDemoInstall

tslint-loader

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-loader - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

0

formatters/customFormatter.js

@@ -0,0 +0,0 @@ var Lint = require("tslint/lib/lint");

8

index.js

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

2

package.json
{
"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

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