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

Commit dcdb4ad

Browse files
hinokMoOx
authored andcommitted
README: Add information about eslint behaviour when configFile is set directly (#129) (#130)
1 parent ddab805 commit dcdb4ad

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
}
5555
```
5656

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

6060
```js
@@ -260,6 +260,14 @@ will fail the build. No matter what error settings are used for `eslint-loader`.
260260
So if you want to see ESLint warnings in console during development using `WebpackDevServer`
261261
remove `NoErrorsPlugin` from webpack config.
262262

263+
### Defining `configFile` or using `eslint -c path/.eslintrc`
264+
265+
Bear in mind that when you define `configFile`, `eslint` doesn't automatically look for
266+
`.eslintrc` files in the directory of the file to be linted. More information is available
267+
in official eslint documentation in section [_Using Configuration Files_](http://eslint.org/docs/user-guide/configuring#using-configuration-files).
268+
269+
Related issues: [#129](https://github.com/MoOx/eslint-loader/issues/129).
270+
263271
## [Changelog](CHANGELOG.md)
264272

265273
## [License](LICENSE)

0 commit comments

Comments
 (0)