Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
README: Add information about eslint behaviour when configFile is set…
Browse files Browse the repository at this point in the history
… directly (#129) (#130)
  • Loading branch information
hinok authored and MoOx committed Dec 7, 2016
1 parent ddab805 commit dcdb4ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -54,7 +54,7 @@ module.exports = {
}
```

[webpack@2.1.0-beta.23 has breaking changes](https://github.com/webpack/webpack/releases).
[webpack@2.1.0-beta.23 has breaking changes](https://github.com/webpack/webpack/releases).
`preLoaders` is removed from the webpack^2.1.0-beta.23. so move it to `loaders` and using [enforce: "pre"] instead.

```js
Expand Down Expand Up @@ -260,6 +260,14 @@ 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.

### Defining `configFile` or using `eslint -c path/.eslintrc`

Bear in mind that when you define `configFile`, `eslint` doesn't automatically look for
`.eslintrc` files in the directory of the file to be linted. More information is available
in official eslint documentation in section [_Using Configuration Files_](http://eslint.org/docs/user-guide/configuring#using-configuration-files).

Related issues: [#129](https://github.com/MoOx/eslint-loader/issues/129).

## [Changelog](CHANGELOG.md)

## [License](LICENSE)

0 comments on commit dcdb4ad

Please sign in to comment.