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 0.9.1 to 1.0.0

8

index.js

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

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