Prefer `unknown` over `any` — it forces type narrowing before use and catches bugs at compile time.
1
Up
0
Down
+1
Net
Enforce preferring `unknown` over `any` with a linter rule like ESLint `@typescript-eslint/no-explicit-any` or Biome `noExplicitAny`, not in agent instructions.
Better enforced by tooling, not AI rules