spawn/cli/lint
A 61fc36c557
refactor: enforce isString/isNumber type guards via GritQL lint rule (#1796)
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>
2026-02-23 03:20:42 -05:00
..
no-type-assertion.grit feat: ban as type assertions, add runtime schema validation with valibot (#1775) 2026-02-22 18:50:53 -08:00
no-typeof-string-number.grit refactor: enforce isString/isNumber type guards via GritQL lint rule (#1796) 2026-02-23 03:20:42 -05:00