How to delete .eslintcache file in react?

It seems as new issue in React App (this issue opened on Nov 27, 2020)

Put .eslintcache in .gitignore also do:

git rm -rf --cached .eslintcache
git add .

git rm: remove files from working tree ...

-r: recursive removal in case of a directory name ...

-f or -force: Override the up-to-date check.

Details: https://git-scm.com/docs/git-rm


It is part of the CRA bundle. I'd recommend just adding it to the .gitignore file if it isn't in there already.

From the ESLint docs:

Store the info about processed files in order to only operate on the changed ones. The cache is stored in .eslintcache by default. Enabling this option can dramatically improve ESLint's running time by ensuring that only changed files are linted.


This file is part of the new version of create-react-app package, you can't avoid it to be added, just like other files being added. This is the bundle.


This is part of the new version in react. I also had files "reportWebVitals" and "setupTests", I deleted them and everything works properly.

With "reportWebVitals" you can track real user performance on your site. And with "setupTests" you are Initializing Test Environment

this feature is available with [email protected] and higher

I do not need these properties, just deleted them and that's it, the eslintcache can not be deleted is part of the bundle.

Tags:

Reactjs