Files
FilesReadSystem/frontend/.rules/toast-hook.yml

12 lines
358 B
YAML

id: use-toast-import
message: Use 'import { toast } from "sonner"' instead of "@/hooks/use-toast"
severity: error
language: Tsx
note: |
The new shadcn/ui pattern uses sonner for toast notifications.
Replace: import { toast } from "@/hooks/use-toast"
With: import { toast } from "sonner"
rule:
pattern: import { $$$IMPORTS } from "@/hooks/use-toast"