- Update zod-namespace-import snapshot (semicolon fix) - Add test cases for no-countall-number rule - Update rule pattern to match method calls on objects Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9 lines
338 B
YAML
9 lines
338 B
YAML
id: no-countall-number
|
|
language: typescript
|
|
severity: error
|
|
message: "Don't use countAll<number>() - use countAll() instead. PostgreSQL COUNT returns bigint (string), so the type annotation is misleading."
|
|
note: "Use Number() to convert the result if you need a number type."
|
|
rule:
|
|
pattern: $OBJ.countAll<number>()
|
|
fix: $OBJ.countAll()
|