Skip to content

Commit

Permalink
chore: add lint --fix command to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspalma committed Sep 17, 2024
1 parent dceb9d4 commit 0155ca1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/toaster.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast'
import { useToast } from './use-toast'

Expand Down
3 changes: 0 additions & 3 deletions src/components/ui/use-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -33,7 +31,6 @@ function genId() {
return count.toString()
}

// eslint-disable-next-line no-console
type ActionType = typeof actionTypes

type Action =
Expand Down

0 comments on commit 0155ca1

Please sign in to comment.