7

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?

tanguy_k
  • 11,307
  • 6
  • 54
  • 58
Cupid Chan
  • 496
  • 4
  • 15

2 Answers2

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