From 5a0326e3c82978cce83404481bb71a06d40e2d82 Mon Sep 17 00:00:00 2001 From: Brody McKee Date: Sun, 21 Feb 2021 16:07:46 +0200 Subject: [PATCH] Upgrade eslint-webpack-plugin to fix opt-out flag --- packages/react-scripts/config/webpack.config.js | 2 +- packages/react-scripts/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index ba8fd0b9b56..26c2a65aad0 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -759,7 +759,7 @@ module.exports = function (webpackEnv) { extensions: ['js', 'mjs', 'jsx', 'ts', 'tsx'], formatter: require.resolve('react-dev-utils/eslintFormatter'), eslintPath: require.resolve('eslint'), - emitWarning: isEnvDevelopment && emitErrorsAsWarnings, + failOnError: !(isEnvDevelopment && emitErrorsAsWarnings), context: paths.appSrc, cache: true, cacheLocation: path.resolve( diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index a3be55728cf..1e1a164ce69 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -53,7 +53,7 @@ "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-testing-library": "^3.9.2", - "eslint-webpack-plugin": "^2.1.0", + "eslint-webpack-plugin": "^2.5.2", "file-loader": "6.1.1", "fs-extra": "^9.0.1", "html-webpack-plugin": "4.5.0",