quasar
quasar copied to clipboard
Investigate and improve Vite ESLint plugin performance
I tried disabling ESLint in a project and it seemed to make a visible improvement. Linting is probably slow, especially when using TypeScript type-checking rules. We can utilize workers to get those out of the main thread, making everything else faster. Doing this async will make us unable to fail the build though. https://github.com/nabla/vite-plugin-eslint follows this approach. We can probably add an option to make the behavior toggleable. If the user is fine with the overhead of linting, they can choose the existing behavior. If they want to make it quicker, they can use the new behavior.
https://github.com/quasarframework/quasar/blob/dev/app-vite/lib/plugins/vite.eslint.js