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 e314df7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef, useState, useContext } from 'react'
import { ChevronUpDownIcon, LockClosedIcon, LockOpenIcon } from '@heroicons//react/24/solid'
import { CourseInfo, CourseOption } from '../../../../@types'
import MultipleOptionsContext from '../../../../contexts/MultipleOptionsContext'
import { teacherIdsFromCourseInfo, getClassDisplayText } from '../../../../utils'
import { getClassDisplayText } from '../../../../utils'
import { Button } from '../../../ui/button'
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '../../../ui/dropdown-menu'
import { AnalyticsTracker, Feature } from '../../../../utils/AnalyticsTracker'
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 e314df7

Please sign in to comment.