Six TypeScript rules that keep AI code safe

sarah_connor
Mon, 20 Apr 2026 23:21:16 +0000

Cursor will happily “fix” a red squiggle by slapping as Foo on it, and that’s worse than any because it looks legit in review. Do you ban type assertions outside tests (or at least require a comment/justification), or do you just rely on code review to catch the quiet as-papering-over-a-hole stuff? I could be wrong here.