Skip to content

Enable caching for ESLint

Inactive Account requested to merge winh-eslint-cache into master

What does this MR do?

Enable caching of ESLint results in package.json.

Thanks to #119106 (comment 263147427) for pointing out!

Before

$ eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .
✨  Done in 107.17s.

After

first run:

$ eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .
✨  Done in 100.79s.

second run (without file changes):

$ eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .
✨  Done in 4.46s.

Merge request reports