forked the unicorn lint plugin recently.
lots of good perf improvements and dropped a few dependencies.
many rules ran against the TSESLint repo in half the time 👀
lots of good perf improvements and dropped a few dependencies.
many rules ran against the TSESLint repo in half the time 👀
Comments
one of the big ones is that some rules had multiple listeners visiting same nodes, and some causing megamorphic calls (by changing object shape too often/arbitrarily). also some rules overmatching (visiting a _lot_ of nodes but only caring about a couple)
also just straight up rewrote some visitors to have more performant algorithms
some of the code optimisations are also pretty chunky changes so will be difficult to port back over