From 5e83aea1aa63d1a060b7a6575fc912aec7a1da89 Mon Sep 17 00:00:00 2001 From: Rafal Lesniak Date: Mon, 6 Nov 2023 14:01:06 +0100 Subject: [PATCH] fix lint --- packages/loot-core/src/server/importers/index.ts | 2 +- packages/loot-core/src/server/importers/wallet-types.d.ts | 1 + packages/loot-core/src/server/importers/wallet.ts | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/loot-core/src/server/importers/index.ts b/packages/loot-core/src/server/importers/index.ts index 57cedd87304..ed6cd25cc47 100644 --- a/packages/loot-core/src/server/importers/index.ts +++ b/packages/loot-core/src/server/importers/index.ts @@ -1,9 +1,9 @@ import { handlers } from '../main'; import importActual from './actual'; +import * as Wallet from './wallet'; import * as YNAB4 from './ynab4'; import * as YNAB5 from './ynab5'; -import * as Wallet from './wallet'; type ImportableBudgetType = 'ynab4' | 'ynab5' | 'actual' | 'wallet'; diff --git a/packages/loot-core/src/server/importers/wallet-types.d.ts b/packages/loot-core/src/server/importers/wallet-types.d.ts index 6c152d55a50..7159e84f659 100644 --- a/packages/loot-core/src/server/importers/wallet-types.d.ts +++ b/packages/loot-core/src/server/importers/wallet-types.d.ts @@ -1,3 +1,4 @@ +/* eslint-disable import/no-unused-modules */ export namespace Wallet { export type Transactions = Transaction[]; diff --git a/packages/loot-core/src/server/importers/wallet.ts b/packages/loot-core/src/server/importers/wallet.ts index a13e2bb65e6..79a698f98c5 100644 --- a/packages/loot-core/src/server/importers/wallet.ts +++ b/packages/loot-core/src/server/importers/wallet.ts @@ -10,7 +10,7 @@ import { Wallet } from './wallet-types'; function buildTransfers( data: Wallet.Transactions, entityIdMap: Map, - payees: any[], + payees: { transfer_acct: string; id: string }[], ) { const transfers = data.filter(t => t.category === 'TRANSFER'); @@ -59,8 +59,8 @@ function importAccounts( ) { const accounts = new Set(); - data.forEach(transation => { - accounts.add(transation.account); + data.forEach(transaction => { + accounts.add(transaction.account); }); return Promise.all(