Socket
Socket
Sign inDemoInstall

tslint-loader

Package Overview
Dependencies
Maintainers
3
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 3.5.3 to 3.5.4

.idea/encodings.xml

5

CHANGELOG.md
# Changelog
### 3.5.3
Convert legacy rules for Tslint 5,
fixes [#73](https://github.com/wbuchwalter/tslint-loader/issues/73)
### 3.5.2

@@ -4,0 +9,0 @@

6

index.js

@@ -24,3 +24,3 @@ /*

function resolveOptions(webpackInstance) {
var tslintOptions = webpackInstance.options.tslint ? webpackInstance.options.tslint : {};
var tslintOptions = webpackInstance.options && webpackInstance.options.tslint ? webpackInstance.options.tslint : {};
var query = loaderUtils.getOptions(webpackInstance);

@@ -60,5 +60,5 @@

formattersDirectory: options.formattersDirectory,
rulesDirectory: ''
rulesDirectory: options.rulesDirectory
};
var bailEnabled = (webpackInstance.options.bail === true);
var bailEnabled = (webpackInstance.options && webpackInstance.options.bail === true);

@@ -65,0 +65,0 @@ var program;

{
"name": "tslint-loader",
"version": "3.5.3",
"version": "3.5.4",
"description": "tslint loader for webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,2 +21,40 @@ # tslint-loader

### Webpack 4
```javascript
module.exports = {
module: {
rules: [
{
test: /\.ts$/,
enforce: 'pre',
use: [
{
loader: 'tslint-loader',
options: { /* Loader options go here */ }
}
]
}
]
}
}
```
### Webpack 3
```javascript
module.exports = {
module: {
loaders: [
{
test: /\.ts$/,
enforce: 'pre',
loader: 'tslint-loader',
options: { /* Loader options go here */ }
}
]
}
}
```
### Webpack 2

@@ -23,0 +61,0 @@

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