eslint-loader
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -0,1 +1,5 @@ | ||
# 0.10.0 - 2015-034-13 | ||
- Changed: upgrade to eslint 0.19.x | ||
# 0.9.0 - 2015-03-29 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "eslint-loader", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "eslint loader (for webpack)", | ||
@@ -27,13 +27,13 @@ "keywords": [ | ||
"peerDependencies": { | ||
"eslint": "^0.18.0" | ||
"eslint": "^0.19.0" | ||
}, | ||
"dependencies": { | ||
"loader-utils": "^0.2.6", | ||
"loader-utils": "^0.2.7", | ||
"object-assign": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^0.18.0", | ||
"eslint": "^0.19.0", | ||
"eslint-friendly-formatter": "^1.0.3", | ||
"tape": "^3.0.3", | ||
"webpack": "^1.4.13" | ||
"tape": "^4.0.0", | ||
"webpack": "^1.8.4" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
@@ -15,3 +15,3 @@ # eslint-loader [![Build Status](http://img.shields.io/travis/MoOx/eslint-loader.svg)](https://travis-ci.org/MoOx/eslint-loader) | ||
```js | ||
```javascript | ||
module.exports = { | ||
@@ -28,2 +28,33 @@ // ... | ||
When using with transpiling loaders (like `babel-loader`), make sure they are in correct order | ||
(bottom to top). Otherwise files will be check after being processed by `babel-loader` | ||
```javascript | ||
module.exports = { | ||
// ... | ||
module: { | ||
loaders: [ | ||
{test: /\.js$/, loader: "babel-loader", exclude: /node_modules/} | ||
{test: /\.js$/, loader: "eslint-loader", exclude: /node_modules/} | ||
] | ||
} | ||
// ... | ||
} | ||
``` | ||
To be safe, you can use `preLoaders` section to check source files, not modified | ||
by other loaders (like `babel-loader`) | ||
```js | ||
module.exports = { | ||
// ... | ||
module: { | ||
preLoaders: [ | ||
{test: /\.js$/, loader: "eslint-loader", exclude: /node_modules/} | ||
] | ||
} | ||
// ... | ||
} | ||
``` | ||
### Options | ||
@@ -38,3 +69,3 @@ | ||
module: { | ||
loaders: [ | ||
preLoaders: [ | ||
{ | ||
@@ -104,3 +135,3 @@ test: /\.js$/, | ||
Loader will always returns errors if this option is set to `true`. | ||
Loader will always return errors if this option is set to `true`. | ||
@@ -121,3 +152,3 @@ ```js | ||
Loader will always returns warning if option is set to `true`. | ||
Loader will always return warnings if option is set to `true`. | ||
@@ -172,4 +203,14 @@ #### `quiet` (default: `false`) | ||
## Gotchas | ||
### NoErrorsPlugin | ||
`NoErrorsPlugin` prevents Webpack from outputting anything into a bundle. So even ESLint warnings | ||
will fail the build. No matter what error settings are used for `eslint-loader`. | ||
So if you want to see ESLint warnings in console during development using `WebpackDevServer` | ||
remove `NoErrorsPlugin` from webpack config. | ||
## [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
10461
211
+ Addedes6-weak-map@2.0.3(transitive)
+ Addedescope@3.6.0(transitive)
+ Addedeslint@0.19.0(transitive)
+ Addedespree@2.2.5(transitive)
+ Addedesrecurse@4.3.0(transitive)
+ Addedestraverse@4.3.05.3.0(transitive)
- Removedd@0.1.1(transitive)
- Removedes6-iterator@0.1.3(transitive)
- Removedes6-symbol@2.0.1(transitive)
- Removedes6-weak-map@0.1.4(transitive)
- Removedescope@2.0.6(transitive)
- Removedeslint@0.18.0(transitive)
- Removedespree@1.12.3(transitive)
- Removedesrecurse@1.2.0(transitive)
- Removedutil-extend@1.0.3(transitive)
Updatedloader-utils@^0.2.7