When running ESLint, nothing is print out until the whole process is done. How can I see the progress as it processed different files, instead of waiting until everything is done?
Asked
Active
Viewed 2,013 times
7
-
Link to ESLint issue: https://github.com/eslint/eslint/issues/1101 – tanguy_k Jul 04 '23 at 14:49
2 Answers
8
On my mind, --debug
output is too spammy, try to reduce it:
# eslint ./src & ./config folders with printing the processed files
DEBUG=eslint:cli-engine yarn eslint ./{src,config}
# OR:
# for NPM or other dependency manager
# eslint ./src & ./config folders with printing the processed files
DEBUG=eslint:cli-engine eslint ./{src,config}
As a result, you will have a list of files that processed by CLI.

Oleksandr Kucherenko
- 1,921
- 1
- 17
- 21
-
Hi @Oleksandr Kucherenko, I like your suggestion! to complement your `yarn` method, here is what I did for `npm` by running this: `DEBUG=eslint:cli-engine eslint .` instead. – Cupid Chan Sep 09 '22 at 14:59
3
Use debug option will print out the progress:
npx eslint . --debug
Edit after @Oleksandr Kucherenko suggestion to see a more concise result:
DEBUG=eslint:cli-engine eslint .

Cupid Chan
- 496
- 4
- 15