diff --git a/web/.eslintrc.cjs b/web/.eslintrc.cjs index 9fe5f9c..b80fbaa 100644 --- a/web/.eslintrc.cjs +++ b/web/.eslintrc.cjs @@ -1,12 +1,10 @@ /* eslint-env node */ -require('@rushstack/eslint-patch/modern-module-resolution') - module.exports = { root: true, extends: [ 'plugin:vue/vue3-essential', 'eslint:recommended', - '@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended', ], parser: 'vue-eslint-parser', parserOptions: { diff --git a/web/src/components/calendar/CalendarBlock.vue b/web/src/components/calendar/CalendarBlock.vue index f4b90e8..f5eab03 100644 --- a/web/src/components/calendar/CalendarBlock.vue +++ b/web/src/components/calendar/CalendarBlock.vue @@ -2,7 +2,7 @@ import { computed } from 'vue' import type { CalendarBlock } from '@/types' import { hslBgFromHue, hslBorderFromHue } from '@/lib/color' -import { formatTime, formatDuration } from '@/lib/utils' +import { formatDuration } from '@/lib/utils' const props = defineProps<{ block: CalendarBlock diff --git a/web/src/components/dashboard/DateRangeFilter.vue b/web/src/components/dashboard/DateRangeFilter.vue index 9c3c04c..c5e2a84 100644 --- a/web/src/components/dashboard/DateRangeFilter.vue +++ b/web/src/components/dashboard/DateRangeFilter.vue @@ -3,7 +3,7 @@ import Button from '@/components/ui/Button.vue' type Preset = 'today' | '7d' | '30d' | 'custom' -const props = defineProps<{ +defineProps<{ preset: Preset customFrom: string customTo: string diff --git a/web/src/components/tasks/KanbanCard.vue b/web/src/components/tasks/KanbanCard.vue index a0c5fcd..ace8c0c 100644 --- a/web/src/components/tasks/KanbanCard.vue +++ b/web/src/components/tasks/KanbanCard.vue @@ -2,7 +2,7 @@ import Tooltip from '@/components/ui/Tooltip.vue' import type { Task } from '@/types' -const props = defineProps<{ task: Task; dragging: boolean }>() +defineProps<{ task: Task; dragging: boolean }>() const emit = defineEmits<{ edit: [task: Task] }>() const priorityDot: Record = { @@ -12,14 +12,6 @@ const priorityDot: Record = { 4: 'bg-slate-300', 5: 'bg-slate-300', } - -const statusLabel: Record = { - todo: '', - doing: 'in progress', - testing: 'testing', - done: 'done', - cancelled: 'cancelled', -}