From 0155ca145d014e7acf327908c4600f94eff6f007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Palma?= Date: Mon, 16 Sep 2024 17:32:04 +0100 Subject: [PATCH] chore: add lint --fix command to package.json --- package.json | 1 + src/components/ui/toaster.tsx | 1 - src/components/ui/use-toast.ts | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 39607613..57161321 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "dev": "vite --host", "build": "tsc && vite build", "lint": "eslint .", + "lint:fix": "eslint . --fix", "preview": "vite preview", "check": "npx prettier --check .", "format": "npx prettier --write ." diff --git a/src/components/ui/toaster.tsx b/src/components/ui/toaster.tsx index d756b5bb..5e59ab19 100644 --- a/src/components/ui/toaster.tsx +++ b/src/components/ui/toaster.tsx @@ -1,4 +1,3 @@ -/* eslint-disable */ import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast' import { useToast } from './use-toast' diff --git a/src/components/ui/use-toast.ts b/src/components/ui/use-toast.ts index db51cb73..72f09f5d 100644 --- a/src/components/ui/use-toast.ts +++ b/src/components/ui/use-toast.ts @@ -17,14 +17,12 @@ type ToasterToast = ToastProps & { position?: string } -/* eslint-disable */ const actionTypes = { ADD_TOAST: "ADD_TOAST", UPDATE_TOAST: "UPDATE_TOAST", DISMISS_TOAST: "DISMISS_TOAST", REMOVE_TOAST: "REMOVE_TOAST", } as const -/* eslint-enable */ let count = 0 @@ -33,7 +31,6 @@ function genId() { return count.toString() } -// eslint-disable-next-line no-console type ActionType = typeof actionTypes type Action =