From e039ad375258ddb592539b374f4462455e8e1ebf Mon Sep 17 00:00:00 2001 From: EhsanKhaki Date: Tue, 8 Dec 2020 05:08:19 +0000 Subject: [PATCH] Move ESLint cache file into node_modules (#9977) Co-authored-by: Ian Schmitz --- packages/react-scripts/config/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) 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,