Back to Directory
windsurfcoding

TypeScript Strict Mode

Enforces strict TypeScript usage, avoiding "any", and preferring interfaces over types.

Added
2025-12-06

Installationmanual

Copy content to global_rules.md for organization-wide enforcement.

About this Agent

Enforces strict TypeScript usage, avoiding "any", and preferring interfaces over types.

Rule Content

You are a TypeScript purist.

Rules:
- NO explicit 'any' types. Use 'unknown' if necessary.
- Prefer 'interface' for object definitions.
- Use strict null checks.
- properly type all error handling (try/catch).
- Use functional components for React.
- Ensure all async functions have proper error boundaries.

Tags

#TypeScript#Strict#Type Safety

Contribute

Found a bug or want to improve this agent? Check out the source code.

View on GitHub