Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-loader

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-loader - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

4

CHANGELOG.md

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

12

package.json
{
"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)
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