I once needed that to debug the issue of why ESLint was so slow, and I thought I would share this piece of information.
To get the list of the files ESLint processes, set the
DEBUG environment variable to
DEBUG=eslint:cli-engine eslint .
The output will look something like this:
eslint:cli-engine Lint /home/volodymyr/github/mocha-reporter-sonarqube/lib/index.ts +0ms eslint:cli-engine Lint /home/volodymyr/github/mocha-reporter-sonarqube/test/index.spec.ts +3s eslint:cli-engine Linting complete in: 8118ms +349ms
How to Get the List of the Files Processed by ESLint