前后端基本架构和完全excel表的解析及统计图表的生成以及excel表的到出
This commit is contained in:
11
frontend/.rules/toast-hook.yml
Normal file
11
frontend/.rules/toast-hook.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user