Onto-Med / top-frontend

JavaScript based frontend of the TOP Framework
MIT License
0 stars 1 forks source link

Speed up ESLint #337

Closed KonradHoeffner closed 8 months ago

KonradHoeffner commented 8 months ago

On an Intel Core i9-12900k, yarn lint takes 28 seconds, which is more time than it takes to compile a Rust release build with 294 dependencies on that machine. Can we somehow speed this up?

ChristophB commented 8 months ago

We could use yarn lint --cache, this will create a .eslintcache file and future calls to eslint will only process changed files.

KonradHoeffner commented 8 months ago

Sounds great!

ChristophB commented 8 months ago

I think easiest way is to add .eslintcache to .gitignore and update the lint entry in package.json.

BTW I am not sure if this helps with your Docker setup :/

ChristophB commented 8 months ago

Need to update the quasar configs as well, as they do not use the ESLint cache feature and delete .eslintcache automatically.