Skip to content

Open source personal finance application

fix(lint): remove unused imports and fix top-level await

Ilya Komichev1c64e6394fed
diff --git a/app/components/wallets/page/List.vue b/app/components/wallets/page/List.vue
index 6c576e83..c76bdccb 100644
--- a/app/components/wallets/page/List.vue
+++ b/app/components/wallets/page/List.vue
@@ -6,7 +6,6 @@ import type { WalletId, WalletsGroupedBy } from '~/components/wallets/types'
import { useCurrenciesStore } from '~/components/currencies/useCurrenciesStore'
import { useTrnsStore } from '~/components/trns/useTrnsStore'
-import { useUserStore } from '~/components/user/useUserStore'
import { useWalletContextMenu } from '~/components/wallets/useWalletContextMenu'
import { useWalletsCounts } from '~/components/wallets/useWalletsCounts'
import { useWalletsFilter } from '~/components/wallets/useWalletsFilter'
@@ -24,7 +23,6 @@ useSeoMeta({
const walletsStore = useWalletsStore()
const currenciesStore = useCurrenciesStore()
-const userStore = useUserStore()
const trnsStore = useTrnsStore()
const isSortModalOpen = ref(false)
@@ -77,7 +75,6 @@ const groupedBy = useStorage<WalletsGroupedBy>('finapp-wallets-groupedBy', 'none
const {
currencyFiltered,
- onSelectFilterCurrency,
selectedWalletsIds,
selectedWalletsIdsWithCurrency,
setWalletViewType,
diff --git a/app/test-utils/setup-store.ts b/app/test-utils/setup-store.ts
index a99e20b7..9fd1564c 100644
--- a/app/test-utils/setup-store.ts
+++ b/app/test-utils/setup-store.ts
@@ -7,13 +7,9 @@
*
* Entity-specific mocks (Convex routes, cross-store deps) stay inline in each test file.
*/
+import { defineStore } from 'pinia'
import { vi } from 'vitest'
-
-// ---------------------------------------------------------------------------
-// 1. Vue / Pinia auto-imports
-// ---------------------------------------------------------------------------
-const { computed, ref, shallowRef, watch } = await import('vue')
-const { defineStore } = await import('pinia')
+import { computed, ref, shallowRef, watch } from 'vue'
vi.stubGlobal('computed', computed)
vi.stubGlobal('ref', ref)