eslint-loader
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,8 +0,14 @@ | ||
# 0.6.0 - 2015-02-11 | ||
# 0.7.0 - 2015-03-15 | ||
- Changed: `reporter` now automatically drop lines that contains the filename in the reporter output | ||
That mean you can use official or community reporters without worring to see lot of lines with `<text>` as filename :) | ||
- Changed: upgrade to eslint 0.17.x | ||
- Added: `failOnError` option | ||
- Added: `failOnWarning` option | ||
# 0.5.0 - 2015-02-11 | ||
# 0.6.0 - 2015-03-11 | ||
- Changed: `reporter` now automatically drop lines that contains the filename in the reporter output. | ||
That mean you can use official or community reporters without worrying to see lot of lines with `<text>` as filename :) | ||
# 0.5.0 - 2015-03-11 | ||
- Changed: upgrade to eslint 0.16.x | ||
@@ -9,0 +15,0 @@ - Changed: `emitErrors` is now `emitError` |
@@ -53,2 +53,8 @@ "use strict"; | ||
emitter(messages) | ||
if (webpack.options.eslint.failOnError && res.errorCount) { | ||
throw new Error("Module failed because of a eslint error."); | ||
} | ||
else if (webpack.options.eslint.failOnWarning && res.warningCount) { | ||
throw new Error("Module failed because of a eslint warning."); | ||
} | ||
} | ||
@@ -55,0 +61,0 @@ else { |
{ | ||
"name": "eslint-loader", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "eslint loader (for webpack)", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"eslint": "^0.16.0" | ||
"eslint": "^0.17.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"eslint": "^0.16.0", | ||
"eslint": "^0.17.0", | ||
"eslint-friendly-formatter": "^1.0.3", | ||
@@ -37,0 +37,0 @@ "tape": "^3.0.3", |
@@ -60,3 +60,3 @@ # eslint-loader [![Build Status](http://img.shields.io/travis/MoOx/eslint-loader.svg)](https://travis-ci.org/MoOx/eslint-loader) | ||
// community reporter | ||
reporter: require("eslint-friendly-formatter") | ||
reporter: require("eslint-friendly-formatter"), | ||
@@ -80,3 +80,3 @@ // custom reporter | ||
on eslint errors/warnings counts.** | ||
You can still force this behavior | ||
You can still force this behavior by using `emitError` **or** `emitWarning` options: | ||
@@ -119,4 +119,36 @@ ##### `emitError` (default: `false`) | ||
##### `failOnWarning` (default: `false`) | ||
Loader will cause the module build to fail if there are any eslint warnings. | ||
```js | ||
module.exports = { | ||
entry: "...", | ||
module: { | ||
// ... | ||
} | ||
eslint: { | ||
failOnWarning: true | ||
} | ||
} | ||
``` | ||
##### `failOnError` (default: `false`) | ||
Loader will cause the module build to fail if there are any eslint errors. | ||
```js | ||
module.exports = { | ||
entry: "...", | ||
module: { | ||
// ... | ||
} | ||
eslint: { | ||
failOnError: true | ||
} | ||
} | ||
``` | ||
## [Changelog](CHANGELOG.md) | ||
## [License](LICENSE) |
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
8663
72
152