1
0

feat: reduce eslint warnings (#2396)

Also added `Destructuring the 'props' will cause the value to lose reactivity` as a warning to prepare for the removal of the propsDestructure option in vite.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2396
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
This commit is contained in:
Dominik Pschenitschni
2024-06-17 09:18:02 +00:00
committed by konrad
parent c6e934bd6b
commit 2004d129c3
12 changed files with 37 additions and 29 deletions

View File

@ -126,7 +126,7 @@ import AbstractMigrationFileService from '@/services/migrator/abstractMigrationF
import {formatDateLong} from '@/helpers/time/formatDate'
import {parseDateOrNull} from '@/helpers/parseDateOrNull'
import {MIGRATORS, Migrator} from './migrators'
import {MIGRATORS, type Migrator} from './migrators'
import {useTitle} from '@/composables/useTitle'
import {useProjectStore} from '@/stores/projects'
@ -150,9 +150,9 @@ const migrationJustStarted = ref(false)
const migrator = computed<Migrator>(() => MIGRATORS[props.service])
// eslint-disable-next-line vue/no-ref-object-destructure
// eslint-disable-next-line vue/no-ref-object-reactivity-loss
const migrationService = shallowReactive(new AbstractMigrationService(migrator.value.id))
// eslint-disable-next-line vue/no-ref-object-destructure
// eslint-disable-next-line vue/no-ref-object-reactivity-loss
const migrationFileService = shallowReactive(new AbstractMigrationFileService(migrator.value.id))
useTitle(() => t('migrate.titleService', {name: migrator.value.name}))

View File

@ -52,10 +52,10 @@
>
<div class="p-2">
<SingleTaskInProject
v-for="t in tasks"
:key="t.id"
v-for="task in tasks"
:key="task.id"
:show-project="true"
:the-task="t"
:the-task="task"
@taskUpdated="updateTasks"
/>
</div>