Let's see if we can speed up linting. Right now, on my M2 MBAir linting takes ~50s, which significantly impacts our builds and running the full test setup.
I had a quick look and found out, that an easy win would be to use caching with --cache --cache-strategy content so that eslint only checks modified files. A quick test showed a significant drop from ~50s to ~1s when no files modified and ~6s with one modified file. What's also great is that we can add it to our CI pipe, significantly shortening our build times.
Let's see if we can speed up linting. Right now, on my M2 MBAir linting takes ~50s, which significantly impacts our builds and running the full test setup.
I had a quick look and found out, that an easy win would be to use caching with
--cache --cache-strategy contentso that eslint only checks modified files. A quick test showed a significant drop from ~50s to ~1s when no files modified and ~6s with one modified file. What's also great is that we can add it to our CI pipe, significantly shortening our build times.