Problem: Dead code
Problem: Dead code. (code that isn't called)
🚫 It's a sign of a bug
🚫 Creates a maintenance burden
🚫 Wastes time during refactoring
🚫 Adds noise to files and the filesystem
Solution: Find dead TS code via ts-prune.
https://github.com/nadeesha/ts-prune
Another good reason to hunt down dead code: Once you have no unused code, you can use tools like ts-prune to check for unused code on each PR.
This can help catch mistakes.
It can find spots where people forgot to delete old code, or forgot to call new code.