Files
publisher-dashboard/.ast-grep/rule-tests/__snapshots__/zod-namespace-import-snapshot.yml
igm 587e151fbd Fix ast-grep tests and add no-countall-number test
- 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>
2026-01-12 13:45:14 +08:00

21 lines
418 B
YAML

id: zod-namespace-import
snapshots:
? |
import { z } from "zod";
: fixed: |
import * as z from "zod";
labels:
- source: import { z } from "zod";
style: primary
start: 0
end: 24
? |
import { z, ZodError } from "zod";
: fixed: |
import * as z from "zod";
labels:
- source: import { z, ZodError } from "zod";
style: primary
start: 0
end: 34