深度理解 TypeScript 类型系统的 AI 代理。
捕获类型错误,验证泛型,并执行严格模式模式。
发现编译器遗漏但会导致运行时错误的问题。
检测全栈 TypeScript 应用程序中的安全漏洞。
识别类型级别的性能问题和构建优化问题。
执行团队的 TypeScript 标准。禁止不安全模式,要求严格类型。
rules:
- id: ts_no_unsafe_any
agent: bugs
title: No unsafe type assertions
description: Avoid 'as any' and prefer
type guards or unknown
importance: 9
match:
file_glob:
- '**/*.ts'
- '**/*.tsx'
checklist:
- No 'as any' assertions
- Use type guards for narrowing
- Prefer unknown over any
tags:
- typescript
- type-safety
- strict-mode