Skip to content

Commit

Permalink
Move ESLint cache file into node_modules (#9977)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Schmitz <[email protected]>
  • Loading branch information
ehsankhfr and ianschmitz authored Dec 8, 2020
1 parent 6dce3f4 commit e039ad3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e039ad3

Please sign in to comment.