Skip to content

Commit 18b5962

Browse files
authoredFeb 22, 2021
Upgrade eslint-webpack-plugin to fix opt-out flag (#10590)
1 parent 9722ef1 commit 18b5962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/react-scripts/config/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ module.exports = function (webpackEnv) {
759759
extensions: ['js', 'mjs', 'jsx', 'ts', 'tsx'],
760760
formatter: require.resolve('react-dev-utils/eslintFormatter'),
761761
eslintPath: require.resolve('eslint'),
762-
emitWarning: isEnvDevelopment && emitErrorsAsWarnings,
762+
failOnError: !(isEnvDevelopment && emitErrorsAsWarnings),
763763
context: paths.appSrc,
764764
cache: true,
765765
cacheLocation: path.resolve(

‎packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-plugin-react": "^7.21.5",
5454
"eslint-plugin-react-hooks": "^4.2.0",
5555
"eslint-plugin-testing-library": "^3.9.2",
56-
"eslint-webpack-plugin": "^2.1.0",
56+
"eslint-webpack-plugin": "^2.5.2",
5757
"file-loader": "6.1.1",
5858
"fs-extra": "^9.0.1",
5959
"html-webpack-plugin": "4.5.0",

0 commit comments

Comments
 (0)
Please sign in to comment.