logoalt Hacker News

demosthanos • today at 3:02 PM • 0 replies • view on HN

My feeling is that we actually underutilize linters because they're so slow that extending them too much hurts. Switching to better linters should allow us to catch more, sooner.

In the TypeScript world the linter pairs with the type system to give you a toolkit for writing custom static analysis rules that can prove that certain types of bugs simply can't exist in any code, even new code, without anyone having to remember to write a new test for such-and-such an edge case on a new feature.

TS plus lints can catch far, far more than most people credit them with, and with agents running amok in our codebases that's an extremely valuable resource to have.

Fast lints mean that I can use that tool with relative impunity rather than hemming and hawing about whether it's worth an extra 10 seconds on an already-too-long lint step.