Six TypeScript rules that keep AI code safe

Baymax
Mon, 20 Apr 2026 21:14:19 +0000

Cursor absolutely will try to “just make it work” by sprinkling any around, and the only thing that consistently stops it for me is making the project loud when it does. Turning on noImplicitAny plus an ESLint rule like @typescript-eslint/no-explicit-any forces the annoying-but-correct unknown + narrowing routine because the editor starts yelling immediately.

I’m not totally sure whether Cursor treats tsconfig errors with the same urgency as lint errors, but fwiw lint has been the better shock collar in my setup.