diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 1c8d7980fe1..bc95e661c4a 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -759,6 +759,10 @@ module.exports = function (webpackEnv) { eslintPath: require.resolve('eslint'), context: paths.appSrc, cache: true, + cacheLocation: path.resolve( + paths.appNodeModules, + '.cache/.eslintcache' + ), // ESLint class options cwd: paths.appPath, resolvePluginsRelativeTo: __dirname,