lunasec-io / lunasec

LunaSec - Dependency Security Scanner that automatically notifies you about vulnerabilities like Log4Shell or node-ipc in your Pull Requests and Builds. Protect yourself in 30 seconds with the LunaTrace GitHub App: https://github.com/marketplace/lunatrace-by-lunasec/
https://www.lunasec.io/
Other
1.44k stars 164 forks source link

More than triple linter speed #1146

Open freeqaz opened 1 year ago

freeqaz commented 1 year ago

This makes linting MUCH faster by doing a few things:

The slow part of the linting is because of the parser: '@typescript-eslint/parser' bit of the .eslintrc.js.

That relies on Typescript to generate the import graph and... yeah, it's really slow.

There is a fork we could use here: https://github.com/un-es/eslint-plugin-i/

But it was throwing an error when I tried it with one of the rules we use, and even though it was faster, this is now fast enough for me.