Skip to content

Commit a3df4f9

Browse files
Merge branch 'master' into feat-types
2 parents 2951b55 + db526be commit a3df4f9

27 files changed

+6140
-5077
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.0.0](https://github.com/webpack-contrib/eslint-webpack-plugin/compare/v1.0.0...v2.0.0) (2020-07-26)
6+
7+
8+
### Features
9+
10+
* ESLint class migration ([#11](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/11)) ([efd5e7d](https://github.com/webpack-contrib/eslint-webpack-plugin/commit/efd5e7d01b8569c5dcb2808f618f56e4857fcf52)), closes [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10) [#10](https://github.com/webpack-contrib/eslint-webpack-plugin/issues/10)
11+
12+
### ⚠ BREAKING CHANGES
13+
14+
* minimum supported eslint version is `7`
15+
516
## [1.0.0](https://github.com/webpack-contrib/eslint-webpack-plugin/compare/v0.1.0...v1.0.0) (2020-05-04)
617

718
### ⚠ BREAKING CHANGES

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ module.exports = {
5454

5555
## Options
5656

57-
You can pass [eslint options](http://eslint.org/docs/developer-guide/nodejs-api#cliengine).
57+
You can pass [eslint options](https://eslint.org/docs/developer-guide/nodejs-api#%E2%97%86-new-eslint-options).
5858

59-
Note that the config option you provide will be passed to the `CLIEngine`.
59+
Note that the config option you provide will be passed to the `ESLint` class.
6060
This is a different set of options than what you'd specify in `package.json` or `.eslintrc`.
61-
See the [eslint docs](http://eslint.org/docs/developer-guide/nodejs-api#cliengine) for more detail.
61+
See the [eslint docs](https://eslint.org/docs/developer-guide/nodejs-api#%E2%97%86-new-eslint-options) for more details.
62+
63+
**Warning**: In eslint-webpack-plugin version 1 the options were passed to the now deprecated [CLIEngine](https://eslint.org/docs/developer-guide/nodejs-api#cliengine).
6264

6365
### `context`
6466

@@ -79,7 +81,9 @@ Path to `eslint` instance that will be used for linting. If the `eslintPath` is
7981
- Type: `String|Array[String]`
8082
- Default: `'.'`
8183

82-
Specify the files and/or directories to traverse. Must be relative to `options.context`.
84+
Specify directories, files, or globs. Must be relative to `options.context`.
85+
Directories are traveresed recursively looking for files matching `options.extensions`.
86+
File and glob patterns ignore `options.extensions`.
8387

8488
### `fix`
8589

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
'*.js': ['prettier --write', 'eslint --fix'],
3-
'*.{json,md,yml,css,ts}': ['prettier --write'],
2+
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3+
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'],
44
};

0 commit comments

Comments
 (0)