Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
(MOB): Correct eslint use of cache
Browse files Browse the repository at this point in the history
Correction following this correction on react-scripts facebook/create-react-app#9911 (merged)
Cache location inspired of what will certainly will be in react-scrips facebook/create-react-app#9977 (not merged at this time)
   but it doesn't really matter
  • Loading branch information
apibrac committed Nov 23, 2020
1 parent e4d1911 commit 4495ca4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,8 @@ module.exports = function (webpackEnv) {
formatter: require.resolve('react-dev-utils/eslintFormatter'),
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 4495ca4

Please sign in to comment.