mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-14 16:50:37 +00:00
Add `lint/no-typeof-string-number.grit` plugin that bans raw `typeof x === "string"` and `typeof x === "number"` checks. All occurrences replaced with `isString(x)` / `isNumber(x)` from `shared/type-guards.ts`. This makes narrowing patterns consistent and scannable — every type check uses the same vocabulary project-wide. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| no-type-assertion.grit | ||
| no-typeof-string-number.grit | ||