14

What is eslintcache

Why it is always auto generating on the react app.

eslintcache

1 Answer 1

25

eslint goes over your code and reports stylistic errors. Usually going over the whole code is unneccessary, because you only changed a few files since the last run. To be able to track which files changed, and which errors occured in the files which were not changed, eslint is writing a cache (into the file you found).

Usually that file is supposed to be in /node_modules/.cache/, so you usually won't notice it. That it resides in your working directory is a bug.

1
  • Not a bug: The cache is stored in .eslintcache by default. Commented Jul 10, 2023 at 11:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.