Knip finds unused JS and TS code


Knip finds unused JS and TS code. It's wonderful.

But here's a tip: Configure Knip to ignore your tests.

This way, if you have code that's only referenced by tests, Knip reports it as unused.

I just found a surprising amount of unused code in a project using this technique.

View original on X