From 1ed9dacb31f122b9add0aaabfe182973f39b4a6d Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Mon, 26 Feb 2018 10:54:18 +0100 Subject: [PATCH] 2.0.0 --- CHANGELOG.md | 7 +++++++ index.js | 2 +- package.json | 5 +++-- test/utils/conf.js | 2 -- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc1a6b..4c9d404 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 2.0.0 - 2018-02-26 + +- 🚨 Drop webpack@1.x support (by @wonism in [#212](https://github.com/webpack-contrib/eslint-loader/pull/212)) +- 🚨 Drop Node 4 supported (by @wonism in [#212](https://github.com/webpack-contrib/eslint-loader/pull/212)) +- ✨ Add webpack@4.x support (by @wonism in [#212](https://github.com/webpack-contrib/eslint-loader/pull/212)) +- 🐛 Respect `eslintPath` for formatter (by @lmnsg in [#195](https://github.com/webpack-contrib/eslint-loader/pull/195)) + # 1.9.0 - 2017-07-06 - Added: `eslintPath` option so you can provide your own eslint path. diff --git a/index.js b/index.js index e354774..d16086c 100644 --- a/index.js +++ b/index.js @@ -120,7 +120,7 @@ function printLinterOutput(res, config, webpack) { ) } - emitter(webpack.version === 2 ? new ESLintError(messages) : messages) + emitter(new ESLintError(messages)) } else { throw new Error( diff --git a/package.json b/package.json index 5a7b0cc..d1fec3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-loader", - "version": "1.9.0", + "version": "2.0.0", "description": "eslint loader (for webpack)", "keywords": [ "lint", @@ -16,7 +16,8 @@ "index.js" ], "peerDependencies": { - "eslint": ">=1.6.0 <5.0.0" + "eslint": ">=1.6.0 <5.0.0", + "webpack": ">=2.0.0 <5.0.0" }, "dependencies": { "loader-fs-cache": "^1.0.0", diff --git a/test/utils/conf.js b/test/utils/conf.js index 33aa772..ba39408 100644 --- a/test/utils/conf.js +++ b/test/utils/conf.js @@ -38,8 +38,6 @@ module.exports = function conf(webpackConf, loaderConf) { }, loaderConf), } - // webpack v1 allows loader option to be added directly to the root webpack - // config object // webpack v2 requires them to be added via the LoaderOptionsPlugin // webpack v4 needs mode option return assign(DEFAULT_CONFIG,