tslint-loader
Advanced tools
Comparing version 3.5.3 to 3.5.4
# 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 @@ |
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
65551
161
1