当运行ESLint时,直到整个过程完成之前,没有任何输出。我如何在处理不同文件时看到进度,而不是等待一切都完成?
我觉得 --debug
输出的信息太多了,需要尝试减少它:
# 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}
因此,您将拥有经CLI处理的文件列表。
DEBUG=eslint:cli-engine eslint .
- Cupid Channpx eslint . --debug
根据@Oleksandr Kucherenko的建议进行编辑,以查看更简洁的结果:
DEBUG=eslint:cli-engine eslint .