From f33bce41eab04f90dec172aa3e701168c80ccb09 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Mon, 15 Jan 2024 08:24:33 +0000 Subject: [PATCH] :recycle: (typescript) enable strict mode everywhere (#2230) --- package.json | 5 +- packages/api/methods.test.ts | 1 + .../desktop-client/src/ResponsiveProvider.tsx | 1 + .../src/components/AnimatedRefresh.tsx | 1 + .../desktop-client/src/components/App.tsx | 1 + .../src/components/FatalError.tsx | 1 + .../src/components/FinancesApp.tsx | 1 + .../src/components/FixedSizeList.tsx | 1 + .../src/components/GlobalKeys.ts | 1 + .../src/components/KeyHandlers.tsx | 1 + .../src/components/LoggedInUser.tsx | 1 + .../src/components/ManageRules.tsx | 1 + .../desktop-client/src/components/Modals.tsx | 1 + .../desktop-client/src/components/Notes.tsx | 1 + .../src/components/NotesButton.tsx | 1 + .../src/components/Notifications.tsx | 1 + .../src/components/PrivacyFilter.tsx | 1 + .../src/components/ScrollProvider.tsx | 1 + .../src/components/ServerContext.tsx | 1 + .../src/components/Titlebar.tsx | 1 + .../src/components/UpdateNotification.tsx | 1 + .../desktop-client/src/components/alerts.tsx | 1 + .../autocomplete/AccountAutocomplete.tsx | 1 + .../components/autocomplete/Autocomplete.tsx | 1 + .../autocomplete/CategoryAutocomplete.tsx | 1 + .../autocomplete/PayeeAutocomplete.tsx | 1 + .../budget/BalanceWithCarryover.tsx | 1 + .../budget/BudgetMonthCountContext.tsx | 1 + .../components/budget/BudgetPageHeader.tsx | 1 + .../components/budget/DynamicBudgetTable.tsx | 1 + .../src/components/budget/ExpenseCategory.tsx | 1 + .../src/components/budget/ExpenseGroup.tsx | 1 + .../src/components/budget/IncomeCategory.tsx | 1 + .../src/components/budget/IncomeGroup.tsx | 1 + .../src/components/budget/MobileBudget.tsx | 1 + .../src/components/budget/MonthPicker.tsx | 1 + .../src/components/budget/MonthsContext.tsx | 1 + .../src/components/budget/RenderMonths.tsx | 1 + .../src/components/budget/SidebarCategory.tsx | 1 + .../src/components/budget/SidebarGroup.tsx | 1 + .../src/components/budget/index.tsx | 1 + .../budget/report/ReportComponents.tsx | 1 + .../budget/report/ReportContext.tsx | 1 + .../report/budgetsummary/BudgetSummary.tsx | 1 + .../report/budgetsummary/BudgetTotal.tsx | 1 + .../budget/report/budgetsummary/fraction.ts | 1 + .../budget/rollover/BalanceTooltip.tsx | 1 + .../budget/rollover/CoverTooltip.tsx | 1 + .../budget/rollover/HoldTooltip.tsx | 1 + .../budget/rollover/RolloverComponents.tsx | 1 + .../budget/rollover/RolloverContext.tsx | 1 + .../budget/rollover/TransferTooltip.tsx | 1 + .../rollover/budgetsummary/BudgetSummary.tsx | 1 + .../rollover/budgetsummary/ToBudget.tsx | 1 + .../src/components/budget/util.ts | 1 + .../src/components/common/AlignedText.tsx | 1 + .../src/components/common/Button.tsx | 1 + .../src/components/common/InitialFocus.ts | 1 + .../src/components/common/Input.tsx | 1 + .../components/common/InputWithContent.tsx | 1 + .../src/components/common/Link.tsx | 1 + .../src/components/common/Menu.tsx | 1 + .../src/components/common/MenuButton.tsx | 1 + .../src/components/common/MenuTooltip.tsx | 1 + .../src/components/common/Modal.tsx | 1 + .../src/components/common/Search.tsx | 1 + .../src/components/common/Stack.tsx | 1 + .../filters/CompactFiltersButton.tsx | 1 + .../src/components/filters/FiltersButton.tsx | 1 + .../src/components/manager/ConfigServer.tsx | 1 + .../src/components/manager/ImportActual.tsx | 1 + .../src/components/manager/ImportYNAB4.tsx | 1 + .../src/components/manager/ImportYNAB5.tsx | 1 + .../manager/subscribe/Bootstrap.tsx | 1 + .../manager/subscribe/ChangePassword.tsx | 1 + .../manager/subscribe/ConfirmPasswordForm.tsx | 1 + .../components/manager/subscribe/Error.tsx | 1 + .../components/manager/subscribe/Login.tsx | 1 + .../components/manager/subscribe/common.tsx | 1 + .../src/components/mobile/MobileNavTabs.tsx | 1 + .../components/modals/CategoryGroupMenu.tsx | 1 + .../src/components/modals/CategoryMenu.tsx | 1 + .../src/components/modals/CloseAccount.tsx | 1 + .../modals/ConfirmCategoryDelete.tsx | 1 + .../modals/ConfirmTransactionEdit.tsx | 1 + .../src/components/modals/CreateAccount.tsx | 1 + .../components/modals/CreateEncryptionKey.tsx | 1 + .../components/modals/CreateLocalAccount.tsx | 1 + .../components/modals/FixEncryptionKey.tsx | 1 + .../modals/GoCardlessExternalMsg.tsx | 1 + .../modals/GoCardlessInitialise.tsx | 1 + .../components/modals/ManageRulesModal.tsx | 1 + .../src/components/modals/Notes.tsx | 1 + .../components/modals/PlaidExternalMsg.tsx | 1 + .../src/components/modals/SingleInput.tsx | 1 + .../components/modals/SwitchBudgetType.tsx | 1 + .../src/components/payees/PayeeTable.tsx | 1 + .../src/components/payees/PayeeTableRow.tsx | 1 + .../components/reports/CategorySelector.tsx | 1 + .../src/components/reports/ChooseGraph.tsx | 1 + .../src/components/reports/Container.tsx | 1 + .../src/components/reports/GraphButton.tsx | 1 + .../src/components/reports/ReportCard.tsx | 1 + .../src/components/reports/ReportOptions.ts | 1 + .../src/components/reports/ReportSummary.tsx | 1 + .../src/components/reports/SaveReport.tsx | 1 + .../components/reports/graphs/AreaGraph.tsx | 1 + .../components/reports/graphs/BarGraph.tsx | 1 + .../reports/graphs/BarLineGraph.tsx | 1 + .../reports/graphs/CashFlowGraph.tsx | 1 + .../components/reports/graphs/DonutGraph.tsx | 1 + .../components/reports/graphs/LineGraph.tsx | 1 + .../reports/graphs/NetWorthGraph.tsx | 1 + .../components/reports/graphs/SankeyGraph.tsx | 1 + .../reports/graphs/StackedBarGraph.tsx | 1 + .../reports/graphs/adjustTextSize.ts | 1 + .../src/components/reports/graphs/common.tsx | 1 + .../reports/graphs/renderCustomLabel.tsx | 1 + .../reports/graphs/tableGraph/ReportTable.tsx | 1 + .../graphs/tableGraph/ReportTableHeader.tsx | 1 + .../graphs/tableGraph/ReportTableList.tsx | 1 + .../graphs/tableGraph/ReportTableTotals.tsx | 1 + .../components/reports/reports/CashFlow.tsx | 1 + .../reports/spreadsheets/calculateLegend.ts | 1 + .../spreadsheets/cash-flow-spreadsheet.tsx | 1 + .../category-spending-spreadsheet.tsx | 1 + .../spreadsheets/custom-spreadsheet.ts | 1 + .../spreadsheets/grouped-spreadsheet.ts | 1 + .../spreadsheets/net-worth-spreadsheet.ts | 1 + .../reports/spreadsheets/recalculate.ts | 1 + .../spreadsheets/sankey-spreadsheet.ts | 1 + .../src/components/reports/useReport.ts | 1 + .../src/components/reports/util.ts | 1 + .../src/components/rules/RuleRow.tsx | 1 + .../src/components/rules/RulesList.tsx | 1 + .../src/components/rules/SimpleTable.tsx | 1 + .../src/components/rules/Value.tsx | 1 + .../schedules/DiscoverSchedules.tsx | 1 + .../src/components/schedules/ScheduleLink.tsx | 1 + .../components/schedules/SchedulesTable.tsx | 1 + .../src/components/select/DateSelect.tsx | 1 + .../src/components/settings/Encryption.tsx | 1 + .../src/components/settings/Export.tsx | 1 + .../src/components/settings/FixSplits.tsx | 1 + .../src/components/settings/Format.tsx | 1 + .../src/components/settings/Global.tsx | 1 + .../src/components/settings/Reset.tsx | 1 + .../src/components/settings/index.tsx | 1 + .../src/components/sidebar/Account.tsx | 1 + .../src/components/sidebar/Accounts.tsx | 1 + .../src/components/sidebar/Item.tsx | 1 + .../src/components/sidebar/SecondaryItem.tsx | 1 + .../components/sidebar/SidebarWithData.tsx | 1 + .../src/components/sidebar/index.tsx | 1 + .../desktop-client/src/components/sort.tsx | 1 + .../src/components/spreadsheet/CellValue.tsx | 1 + .../src/components/spreadsheet/index.ts | 1 + .../components/spreadsheet/useSheetName.ts | 1 + .../components/spreadsheet/useSheetValue.ts | 1 + .../desktop-client/src/components/table.tsx | 1 + .../src/components/tooltips.tsx | 1 + .../src/components/util/AmountInput.tsx | 1 + .../src/components/util/DisplayId.tsx | 1 + packages/desktop-client/src/global-events.ts | 1 + packages/desktop-client/src/gocardless.ts | 1 + .../src/hooks/useFeatureFlag.ts | 1 + .../desktop-client/src/hooks/useFilters.ts | 1 + .../desktop-client/src/hooks/useMergedRefs.ts | 1 + .../src/hooks/useProperFocus.tsx | 1 + .../src/hooks/useResizeObserver.ts | 1 + .../desktop-client/src/hooks/useSelected.tsx | 1 + .../src/hooks/useSendPlatformRequest.ts | 1 + .../src/hooks/useSetThemeColor.ts | 1 + .../src/hooks/useSingleActiveEditForm.tsx | 1 + .../src/hooks/useStableCallback.ts | 1 + .../src/icons/index-template.ts | 1 + packages/desktop-client/src/icons/template.ts | 1 + packages/desktop-client/src/index.tsx | 1 + packages/desktop-client/src/style/styles.ts | 1 + packages/desktop-client/src/style/theme.tsx | 1 + packages/desktop-client/src/tokens.ts | 1 + packages/desktop-client/src/util/markdown.ts | 1 + packages/desktop-client/src/util/versions.ts | 1 + packages/desktop-client/vite.config.mts | 1 + .../src/client/SpreadsheetProvider.tsx | 1 + .../loot-core/src/client/actions/account.ts | 1 + packages/loot-core/src/client/actions/app.ts | 1 + .../loot-core/src/client/actions/backups.ts | 1 + .../loot-core/src/client/actions/budgets.ts | 1 + .../loot-core/src/client/actions/prefs.ts | 1 + .../loot-core/src/client/actions/queries.ts | 1 + packages/loot-core/src/client/actions/sync.ts | 1 + .../src/client/data-hooks/accounts.tsx | 1 + .../src/client/data-hooks/filters.ts | 1 + .../src/client/data-hooks/payees.tsx | 1 + .../src/client/data-hooks/schedules.tsx | 1 + packages/loot-core/src/client/queries.ts | 1 + .../src/client/query-helpers.test.ts | 1 + .../loot-core/src/client/query-helpers.ts | 1 + packages/loot-core/src/client/query-hooks.tsx | 1 + .../src/client/reducers/notifications.ts | 1 + .../loot-core/src/client/reducers/prefs.ts | 1 + .../loot-core/src/client/reducers/queries.ts | 1 + packages/loot-core/src/client/selectors.ts | 1 + .../loot-core/src/client/shared-listeners.ts | 1 + .../src/client/update-notification.ts | 1 + .../loot-core/src/mocks/arbitrary-schema.ts | 1 + packages/loot-core/src/mocks/budget.ts | 1 + packages/loot-core/src/mocks/index.ts | 1 + packages/loot-core/src/mocks/plaid.ts | 1 + packages/loot-core/src/mocks/redux.tsx | 1 + packages/loot-core/src/mocks/setup.ts | 1 + packages/loot-core/src/mocks/spreadsheet.ts | 1 + packages/loot-core/src/mocks/util.ts | 1 + .../client/fetch/__mocks__/index.web.ts | 1 + .../platform/client/fetch/index.browser.ts | 1 + .../src/platform/client/fetch/index.web.ts | 1 + .../server/asyncStorage/index.electron.ts | 1 + .../server/asyncStorage/index.testing.ts | 1 + .../platform/server/asyncStorage/index.web.ts | 1 + .../server/connection/index.electron.ts | 1 + .../server/connection/index.testing.ts | 1 + .../platform/server/connection/index.web.ts | 1 + .../platform/server/fetch/index.electron.ts | 1 + .../src/platform/server/fs/index.electron.ts | 1 + .../src/platform/server/fs/index.web.test.ts | 1 + .../src/platform/server/fs/index.web.ts | 1 + .../src/platform/server/fs/path-join.web.ts | 1 + .../src/platform/server/fs/shared.ts | 1 + .../platform/server/indexeddb/index.web.ts | 1 + .../platform/server/sqlite/index.electron.ts | 1 + .../platform/server/sqlite/index.web.test.ts | 1 + .../src/platform/server/sqlite/index.web.ts | 1 + .../loot-core/src/server/__mocks__/post.ts | 1 + .../src/server/accounts/export-to-csv.ts | 1 + .../loot-core/src/server/accounts/link.ts | 1 + .../loot-core/src/server/accounts/ofx2json.ts | 1 + .../src/server/accounts/parse-file.test.ts | 1 + .../src/server/accounts/parse-file.ts | 1 + .../loot-core/src/server/accounts/payees.ts | 1 + .../loot-core/src/server/accounts/qif2json.ts | 1 + .../src/server/accounts/rules.test.ts | 1 + .../loot-core/src/server/accounts/rules.ts | 1 + .../src/server/accounts/sync.test.ts | 1 + .../loot-core/src/server/accounts/sync.ts | 1 + .../src/server/accounts/title/index.ts | 1 + .../server/accounts/transaction-rules.test.ts | 1 + .../src/server/accounts/transaction-rules.ts | 1 + .../src/server/accounts/transactions.ts | 1 + .../src/server/accounts/transfer.test.ts | 1 + .../loot-core/src/server/accounts/transfer.ts | 1 + packages/loot-core/src/server/api-models.ts | 1 + packages/loot-core/src/server/api.ts | 1 + packages/loot-core/src/server/app.ts | 1 + .../loot-core/src/server/aql/compiler.test.ts | 1 + packages/loot-core/src/server/aql/compiler.ts | 1 + .../loot-core/src/server/aql/exec.test.ts | 1 + packages/loot-core/src/server/aql/exec.ts | 1 + .../src/server/aql/schema-helpers.ts | 1 + .../src/server/aql/schema/executors.test.ts | 1 + .../src/server/aql/schema/executors.ts | 1 + .../src/server/aql/schema/index.test.ts | 1 + .../loot-core/src/server/aql/schema/index.ts | 1 + .../src/server/aql/schema/run-query.ts | 1 + .../loot-core/src/server/aql/views.test.ts | 1 + packages/loot-core/src/server/aql/views.ts | 1 + packages/loot-core/src/server/backups.test.ts | 1 + packages/loot-core/src/server/backups.ts | 1 + packages/loot-core/src/server/bench.ts | 1 + .../loot-core/src/server/budget/actions.ts | 1 + .../loot-core/src/server/budget/base.test.ts | 1 + packages/loot-core/src/server/budget/base.ts | 1 + .../src/server/budget/cleanup-template.ts | 1 + .../src/server/budget/goals/goalsBy.ts | 1 + .../server/budget/goals/goalsPercentage.ts | 1 + .../src/server/budget/goals/goalsRemainder.ts | 1 + .../src/server/budget/goals/goalsSchedule.ts | 1 + .../src/server/budget/goals/goalsSimple.ts | 1 + .../src/server/budget/goals/goalsSpend.ts | 1 + .../src/server/budget/goals/goalsWeek.ts | 1 + .../src/server/budget/goaltemplates.ts | 1 + .../loot-core/src/server/budget/report.ts | 1 + .../loot-core/src/server/budget/rollover.ts | 1 + packages/loot-core/src/server/budget/util.ts | 1 + .../loot-core/src/server/cloud-storage.ts | 1 + .../loot-core/src/server/db/index.test.ts | 1 + packages/loot-core/src/server/db/index.ts | 1 + packages/loot-core/src/server/db/mappings.ts | 1 + packages/loot-core/src/server/db/sort.ts | 1 + packages/loot-core/src/server/db/util.ts | 1 + .../src/server/encryption-internals.ts | 1 + .../src/server/encryption-internals.web.ts | 1 + packages/loot-core/src/server/encryption.ts | 1 + packages/loot-core/src/server/errors.ts | 1 + packages/loot-core/src/server/filters/app.ts | 1 + .../loot-core/src/server/importers/actual.ts | 1 + .../loot-core/src/server/importers/index.ts | 1 + .../loot-core/src/server/importers/ynab4.ts | 1 + .../loot-core/src/server/importers/ynab5.ts | 1 + packages/loot-core/src/server/main.test.ts | 1 + packages/loot-core/src/server/main.ts | 1 + packages/loot-core/src/server/migrate/cli.ts | 1 + .../src/server/migrate/migrations.test.ts | 1 + .../src/server/migrate/migrations.ts | 1 + packages/loot-core/src/server/models.ts | 1 + packages/loot-core/src/server/mutators.ts | 1 + packages/loot-core/src/server/post.ts | 1 + packages/loot-core/src/server/prefs.ts | 1 + packages/loot-core/src/server/rules/app.ts | 1 + .../src/server/rules/types/handlers.ts | 1 + .../src/server/schedules/app.test.ts | 1 + .../loot-core/src/server/schedules/app.ts | 1 + .../src/server/schedules/find-schedules.ts | 1 + .../src/server/schedules/types/handlers.ts | 1 + packages/loot-core/src/server/sheet.test.ts | 1 + packages/loot-core/src/server/sheet.ts | 1 + .../spreadsheet/graph-data-structure.ts | 1 + .../server/spreadsheet/spreadsheet.test.ts | 1 + .../src/server/spreadsheet/spreadsheet.ts | 1 + .../loot-core/src/server/spreadsheet/util.ts | 1 + packages/loot-core/src/server/sync/encoder.ts | 1 + packages/loot-core/src/server/sync/index.ts | 1 + .../src/server/sync/make-test-message.ts | 1 + .../loot-core/src/server/sync/migrate.test.ts | 1 + packages/loot-core/src/server/sync/migrate.ts | 1 + packages/loot-core/src/server/sync/repair.ts | 1 + packages/loot-core/src/server/sync/reset.ts | 1 + .../src/server/sync/sync.property.test.ts | 1 + .../loot-core/src/server/sync/sync.test.ts | 1 + .../src/server/tests/mockSyncServer.ts | 1 + packages/loot-core/src/server/tools/app.ts | 1 + packages/loot-core/src/server/undo.ts | 1 + packages/loot-core/src/server/update.ts | 1 + .../loot-core/src/server/util/budget-name.ts | 1 + packages/loot-core/src/shared/arithmetic.ts | 1 + packages/loot-core/src/shared/async.test.ts | 1 + packages/loot-core/src/shared/async.ts | 1 + packages/loot-core/src/shared/categories.ts | 1 + packages/loot-core/src/shared/errors.ts | 1 + packages/loot-core/src/shared/months.ts | 1 + packages/loot-core/src/shared/query.ts | 1 + packages/loot-core/src/shared/rules.ts | 1 + packages/loot-core/src/shared/schedules.ts | 1 + packages/loot-core/src/shared/test-helpers.ts | 1 + .../loot-core/src/shared/transactions.test.ts | 1 + packages/loot-core/src/shared/transactions.ts | 1 + packages/loot-core/src/shared/util.ts | 1 + tsconfig.json | 10 +++- upcoming-release-notes/2230.md | 6 ++ yarn.lock | 56 ++++++++++++++++++- 350 files changed, 415 insertions(+), 8 deletions(-) create mode 100644 upcoming-release-notes/2230.md diff --git a/package.json b/package.json index 601b59594ab..db6163d7b54 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "rebuild-node": "yarn workspace loot-core rebuild", "lint": "eslint . --max-warnings 0", "lint:verbose": "DEBUG=eslint:cli-engine eslint . --max-warnings 0", - "typecheck": "yarn tsc", + "typecheck": "yarn tsc && tsc-strict", "jq": "./node_modules/node-jq/bin/jq" }, "devDependencies": { @@ -55,7 +55,8 @@ "prettier": "2.8.2", "react-refresh": "^0.14.0", "source-map-support": "^0.5.21", - "typescript": "^5.0.2" + "typescript": "^5.0.2", + "typescript-strict-plugin": "^2.2.2-beta.2" }, "engines": { "node": ">=18.0.0" diff --git a/packages/api/methods.test.ts b/packages/api/methods.test.ts index f38a6985e70..e68214d83d9 100644 --- a/packages/api/methods.test.ts +++ b/packages/api/methods.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as fs from 'fs/promises'; import * as path from 'path'; diff --git a/packages/desktop-client/src/ResponsiveProvider.tsx b/packages/desktop-client/src/ResponsiveProvider.tsx index d31ec6e3e3d..4a133866ca1 100644 --- a/packages/desktop-client/src/ResponsiveProvider.tsx +++ b/packages/desktop-client/src/ResponsiveProvider.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type ReactNode, createContext, useContext } from 'react'; import { useViewportSize } from '@react-aria/utils'; diff --git a/packages/desktop-client/src/components/AnimatedRefresh.tsx b/packages/desktop-client/src/components/AnimatedRefresh.tsx index 56dff953435..e94e3a319b1 100644 --- a/packages/desktop-client/src/components/AnimatedRefresh.tsx +++ b/packages/desktop-client/src/components/AnimatedRefresh.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { keyframes } from 'glamor'; diff --git a/packages/desktop-client/src/components/App.tsx b/packages/desktop-client/src/components/App.tsx index 2dbdfd2033f..9af53e519f0 100644 --- a/packages/desktop-client/src/components/App.tsx +++ b/packages/desktop-client/src/components/App.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useState } from 'react'; import { ErrorBoundary, diff --git a/packages/desktop-client/src/components/FatalError.tsx b/packages/desktop-client/src/components/FatalError.tsx index fc549542912..f15b6852610 100644 --- a/packages/desktop-client/src/components/FatalError.tsx +++ b/packages/desktop-client/src/components/FatalError.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { Block } from './common/Block'; diff --git a/packages/desktop-client/src/components/FinancesApp.tsx b/packages/desktop-client/src/components/FinancesApp.tsx index 60ca0d8fbe5..29c241a14da 100644 --- a/packages/desktop-client/src/components/FinancesApp.tsx +++ b/packages/desktop-client/src/components/FinancesApp.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactElement, useEffect, useMemo } from 'react'; import { DndProvider } from 'react-dnd'; import { HTML5Backend as Backend } from 'react-dnd-html5-backend'; diff --git a/packages/desktop-client/src/components/FixedSizeList.tsx b/packages/desktop-client/src/components/FixedSizeList.tsx index ad8fcb6623b..2e74b00d5f8 100644 --- a/packages/desktop-client/src/components/FixedSizeList.tsx +++ b/packages/desktop-client/src/components/FixedSizeList.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { createRef, PureComponent, diff --git a/packages/desktop-client/src/components/GlobalKeys.ts b/packages/desktop-client/src/components/GlobalKeys.ts index 33e2e6bd846..1109e4250cb 100644 --- a/packages/desktop-client/src/components/GlobalKeys.ts +++ b/packages/desktop-client/src/components/GlobalKeys.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useEffect } from 'react'; import * as Platform from 'loot-core/src/client/platform'; diff --git a/packages/desktop-client/src/components/KeyHandlers.tsx b/packages/desktop-client/src/components/KeyHandlers.tsx index 3a674e5f4b3..13affa3397a 100644 --- a/packages/desktop-client/src/components/KeyHandlers.tsx +++ b/packages/desktop-client/src/components/KeyHandlers.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useEffect, useContext } from 'react'; import hotkeys, { type KeyHandler as HotKeyHandler } from 'hotkeys-js'; diff --git a/packages/desktop-client/src/components/LoggedInUser.tsx b/packages/desktop-client/src/components/LoggedInUser.tsx index c4fa229c15f..a29cfb8bad0 100644 --- a/packages/desktop-client/src/components/LoggedInUser.tsx +++ b/packages/desktop-client/src/components/LoggedInUser.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/ManageRules.tsx b/packages/desktop-client/src/components/ManageRules.tsx index 6dbcea27150..6e82621f92f 100644 --- a/packages/desktop-client/src/components/ManageRules.tsx +++ b/packages/desktop-client/src/components/ManageRules.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect, diff --git a/packages/desktop-client/src/components/Modals.tsx b/packages/desktop-client/src/components/Modals.tsx index b78c56e8de6..b78573b3c64 100644 --- a/packages/desktop-client/src/components/Modals.tsx +++ b/packages/desktop-client/src/components/Modals.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect } from 'react'; import { useSelector } from 'react-redux'; import { useLocation } from 'react-router-dom'; diff --git a/packages/desktop-client/src/components/Notes.tsx b/packages/desktop-client/src/components/Notes.tsx index 7fa8e358e23..11a617f18f6 100644 --- a/packages/desktop-client/src/components/Notes.tsx +++ b/packages/desktop-client/src/components/Notes.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useRef } from 'react'; import ReactMarkdown from 'react-markdown'; diff --git a/packages/desktop-client/src/components/NotesButton.tsx b/packages/desktop-client/src/components/NotesButton.tsx index 6fb363db0f2..c68299ceac9 100644 --- a/packages/desktop-client/src/components/NotesButton.tsx +++ b/packages/desktop-client/src/components/NotesButton.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useLiveQuery } from 'loot-core/src/client/query-hooks'; diff --git a/packages/desktop-client/src/components/Notifications.tsx b/packages/desktop-client/src/components/Notifications.tsx index 745b2b07dcb..122a1231870 100644 --- a/packages/desktop-client/src/components/Notifications.tsx +++ b/packages/desktop-client/src/components/Notifications.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect, diff --git a/packages/desktop-client/src/components/PrivacyFilter.tsx b/packages/desktop-client/src/components/PrivacyFilter.tsx index 3f55382c66d..f8596b7c86d 100644 --- a/packages/desktop-client/src/components/PrivacyFilter.tsx +++ b/packages/desktop-client/src/components/PrivacyFilter.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useCallback, diff --git a/packages/desktop-client/src/components/ScrollProvider.tsx b/packages/desktop-client/src/components/ScrollProvider.tsx index 8cbe68c8cb9..f9e58e4bf56 100644 --- a/packages/desktop-client/src/components/ScrollProvider.tsx +++ b/packages/desktop-client/src/components/ScrollProvider.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, createContext, diff --git a/packages/desktop-client/src/components/ServerContext.tsx b/packages/desktop-client/src/components/ServerContext.tsx index 795a62b794d..a3db98801ea 100644 --- a/packages/desktop-client/src/components/ServerContext.tsx +++ b/packages/desktop-client/src/components/ServerContext.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useState, diff --git a/packages/desktop-client/src/components/Titlebar.tsx b/packages/desktop-client/src/components/Titlebar.tsx index 3d1af8b0efc..e3487eddac9 100644 --- a/packages/desktop-client/src/components/Titlebar.tsx +++ b/packages/desktop-client/src/components/Titlebar.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useState, diff --git a/packages/desktop-client/src/components/UpdateNotification.tsx b/packages/desktop-client/src/components/UpdateNotification.tsx index 10853e88440..1485a56a96b 100644 --- a/packages/desktop-client/src/components/UpdateNotification.tsx +++ b/packages/desktop-client/src/components/UpdateNotification.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/alerts.tsx b/packages/desktop-client/src/components/alerts.tsx index 34bed4e1745..831dc52a68f 100644 --- a/packages/desktop-client/src/components/alerts.tsx +++ b/packages/desktop-client/src/components/alerts.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentType, type ReactNode } from 'react'; import { SvgExclamationOutline, SvgInformationOutline } from '../icons/v1'; diff --git a/packages/desktop-client/src/components/autocomplete/AccountAutocomplete.tsx b/packages/desktop-client/src/components/autocomplete/AccountAutocomplete.tsx index 2cc9d25dab8..3b514ac2f01 100644 --- a/packages/desktop-client/src/components/autocomplete/AccountAutocomplete.tsx +++ b/packages/desktop-client/src/components/autocomplete/AccountAutocomplete.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { Fragment, type ComponentProps, type ReactNode } from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx b/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx index 10483817b1f..f7079b57c62 100644 --- a/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx +++ b/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useRef, diff --git a/packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx b/packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx index 2ac5fa7b6f1..2fca26a7a71 100644 --- a/packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx +++ b/packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps, Fragment, diff --git a/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx b/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx index 0df6e3bc109..b99009b3227 100644 --- a/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx +++ b/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { Fragment, useState, diff --git a/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx b/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx index c973ce1ad59..a20dea15d0a 100644 --- a/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx +++ b/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps } from 'react'; import { useFeatureFlag } from '../../hooks/useFeatureFlag'; diff --git a/packages/desktop-client/src/components/budget/BudgetMonthCountContext.tsx b/packages/desktop-client/src/components/budget/BudgetMonthCountContext.tsx index a69e40fb69f..5ddbfc1dc3b 100644 --- a/packages/desktop-client/src/components/budget/BudgetMonthCountContext.tsx +++ b/packages/desktop-client/src/components/budget/BudgetMonthCountContext.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, type Dispatch, diff --git a/packages/desktop-client/src/components/budget/BudgetPageHeader.tsx b/packages/desktop-client/src/components/budget/BudgetPageHeader.tsx index 881aa892e80..4f29b9e2d4c 100644 --- a/packages/desktop-client/src/components/budget/BudgetPageHeader.tsx +++ b/packages/desktop-client/src/components/budget/BudgetPageHeader.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps, memo } from 'react'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/budget/DynamicBudgetTable.tsx b/packages/desktop-client/src/components/budget/DynamicBudgetTable.tsx index a8655a5e4b0..1459d2be527 100644 --- a/packages/desktop-client/src/components/budget/DynamicBudgetTable.tsx +++ b/packages/desktop-client/src/components/budget/DynamicBudgetTable.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { forwardRef, useEffect, type ComponentProps } from 'react'; import { useSelector } from 'react-redux'; import AutoSizer from 'react-virtualized-auto-sizer'; diff --git a/packages/desktop-client/src/components/budget/ExpenseCategory.tsx b/packages/desktop-client/src/components/budget/ExpenseCategory.tsx index 462fb7d88ec..660f54646fd 100644 --- a/packages/desktop-client/src/components/budget/ExpenseCategory.tsx +++ b/packages/desktop-client/src/components/budget/ExpenseCategory.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps } from 'react'; import { type CategoryEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/budget/ExpenseGroup.tsx b/packages/desktop-client/src/components/budget/ExpenseGroup.tsx index 049a46032c6..d30e7c4f3d3 100644 --- a/packages/desktop-client/src/components/budget/ExpenseGroup.tsx +++ b/packages/desktop-client/src/components/budget/ExpenseGroup.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps } from 'react'; import { theme } from '../../style'; diff --git a/packages/desktop-client/src/components/budget/IncomeCategory.tsx b/packages/desktop-client/src/components/budget/IncomeCategory.tsx index d03e0b1307e..922c6f921b1 100644 --- a/packages/desktop-client/src/components/budget/IncomeCategory.tsx +++ b/packages/desktop-client/src/components/budget/IncomeCategory.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps } from 'react'; import { type CategoryEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/budget/IncomeGroup.tsx b/packages/desktop-client/src/components/budget/IncomeGroup.tsx index 5ae414ec64b..6a25adeff4c 100644 --- a/packages/desktop-client/src/components/budget/IncomeGroup.tsx +++ b/packages/desktop-client/src/components/budget/IncomeGroup.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { theme } from '../../style'; diff --git a/packages/desktop-client/src/components/budget/MobileBudget.tsx b/packages/desktop-client/src/components/budget/MobileBudget.tsx index 415652629b7..2a426909a4c 100644 --- a/packages/desktop-client/src/components/budget/MobileBudget.tsx +++ b/packages/desktop-client/src/components/budget/MobileBudget.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useState } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/budget/MonthPicker.tsx b/packages/desktop-client/src/components/budget/MonthPicker.tsx index d42a99b6584..ca8b8adc090 100644 --- a/packages/desktop-client/src/components/budget/MonthPicker.tsx +++ b/packages/desktop-client/src/components/budget/MonthPicker.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type CSSProperties, useState } from 'react'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/budget/MonthsContext.tsx b/packages/desktop-client/src/components/budget/MonthsContext.tsx index bca1acfe315..2d5e377402a 100644 --- a/packages/desktop-client/src/components/budget/MonthsContext.tsx +++ b/packages/desktop-client/src/components/budget/MonthsContext.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, type ReactNode } from 'react'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/budget/RenderMonths.tsx b/packages/desktop-client/src/components/budget/RenderMonths.tsx index 1960f7ccb0b..20aceb19922 100644 --- a/packages/desktop-client/src/components/budget/RenderMonths.tsx +++ b/packages/desktop-client/src/components/budget/RenderMonths.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useContext, type CSSProperties, diff --git a/packages/desktop-client/src/components/budget/SidebarCategory.tsx b/packages/desktop-client/src/components/budget/SidebarCategory.tsx index 1beef2ca4f6..04bd471d24b 100644 --- a/packages/desktop-client/src/components/budget/SidebarCategory.tsx +++ b/packages/desktop-client/src/components/budget/SidebarCategory.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type CSSProperties, type Ref, useState } from 'react'; import { type CategoryEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/budget/SidebarGroup.tsx b/packages/desktop-client/src/components/budget/SidebarGroup.tsx index c574e1e787f..c298e3d28e3 100644 --- a/packages/desktop-client/src/components/budget/SidebarGroup.tsx +++ b/packages/desktop-client/src/components/budget/SidebarGroup.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type CSSProperties, useState } from 'react'; import { type ConnectDragSource } from 'react-dnd'; diff --git a/packages/desktop-client/src/components/budget/index.tsx b/packages/desktop-client/src/components/budget/index.tsx index 959f63bc3c7..884567a27b5 100644 --- a/packages/desktop-client/src/components/budget/index.tsx +++ b/packages/desktop-client/src/components/budget/index.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { memo, useContext, diff --git a/packages/desktop-client/src/components/budget/report/ReportComponents.tsx b/packages/desktop-client/src/components/budget/report/ReportComponents.tsx index b33faba456d..079fe0d5753 100644 --- a/packages/desktop-client/src/components/budget/report/ReportComponents.tsx +++ b/packages/desktop-client/src/components/budget/report/ReportComponents.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { memo, useState } from 'react'; import { reportBudget } from 'loot-core/src/client/queries'; diff --git a/packages/desktop-client/src/components/budget/report/ReportContext.tsx b/packages/desktop-client/src/components/budget/report/ReportContext.tsx index e38b4da869f..c1c90e93d72 100644 --- a/packages/desktop-client/src/components/budget/report/ReportContext.tsx +++ b/packages/desktop-client/src/components/budget/report/ReportContext.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, createContext, useContext } from 'react'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetSummary.tsx b/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetSummary.tsx index de09c298c61..748367c8892 100644 --- a/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetSummary.tsx +++ b/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetSummary.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetTotal.tsx b/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetTotal.tsx index 8d6429e5e02..7edb74feeee 100644 --- a/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetTotal.tsx +++ b/packages/desktop-client/src/components/budget/report/budgetsummary/BudgetTotal.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type CSSProperties, type ComponentProps, diff --git a/packages/desktop-client/src/components/budget/report/budgetsummary/fraction.ts b/packages/desktop-client/src/components/budget/report/budgetsummary/fraction.ts index f68ea229450..b5f47c81a52 100644 --- a/packages/desktop-client/src/components/budget/report/budgetsummary/fraction.ts +++ b/packages/desktop-client/src/components/budget/report/budgetsummary/fraction.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function fraction(num, denom) { if (denom === 0) { if (num > 0) { diff --git a/packages/desktop-client/src/components/budget/rollover/BalanceTooltip.tsx b/packages/desktop-client/src/components/budget/rollover/BalanceTooltip.tsx index eb7a1a5432b..6376207ca99 100644 --- a/packages/desktop-client/src/components/budget/rollover/BalanceTooltip.tsx +++ b/packages/desktop-client/src/components/budget/rollover/BalanceTooltip.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { rolloverBudget } from 'loot-core/src/client/queries'; diff --git a/packages/desktop-client/src/components/budget/rollover/CoverTooltip.tsx b/packages/desktop-client/src/components/budget/rollover/CoverTooltip.tsx index 789da20a512..bd822c9cb96 100644 --- a/packages/desktop-client/src/components/budget/rollover/CoverTooltip.tsx +++ b/packages/desktop-client/src/components/budget/rollover/CoverTooltip.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps, useState } from 'react'; import { useCategories } from '../../../hooks/useCategories'; diff --git a/packages/desktop-client/src/components/budget/rollover/HoldTooltip.tsx b/packages/desktop-client/src/components/budget/rollover/HoldTooltip.tsx index f6909266bbc..350c7a85215 100644 --- a/packages/desktop-client/src/components/budget/rollover/HoldTooltip.tsx +++ b/packages/desktop-client/src/components/budget/rollover/HoldTooltip.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useContext, diff --git a/packages/desktop-client/src/components/budget/rollover/RolloverComponents.tsx b/packages/desktop-client/src/components/budget/rollover/RolloverComponents.tsx index 7f5b0bac23e..20be6272fbd 100644 --- a/packages/desktop-client/src/components/budget/rollover/RolloverComponents.tsx +++ b/packages/desktop-client/src/components/budget/rollover/RolloverComponents.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { memo, useState } from 'react'; import { rolloverBudget } from 'loot-core/src/client/queries'; diff --git a/packages/desktop-client/src/components/budget/rollover/RolloverContext.tsx b/packages/desktop-client/src/components/budget/rollover/RolloverContext.tsx index 3d825c834e2..636953b16ac 100644 --- a/packages/desktop-client/src/components/budget/rollover/RolloverContext.tsx +++ b/packages/desktop-client/src/components/budget/rollover/RolloverContext.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, createContext, useContext } from 'react'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/budget/rollover/TransferTooltip.tsx b/packages/desktop-client/src/components/budget/rollover/TransferTooltip.tsx index f52aee4c584..8671a1261c7 100644 --- a/packages/desktop-client/src/components/budget/rollover/TransferTooltip.tsx +++ b/packages/desktop-client/src/components/budget/rollover/TransferTooltip.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useContext, diff --git a/packages/desktop-client/src/components/budget/rollover/budgetsummary/BudgetSummary.tsx b/packages/desktop-client/src/components/budget/rollover/budgetsummary/BudgetSummary.tsx index b83dfdf1542..dc66bed7a9f 100644 --- a/packages/desktop-client/src/components/budget/rollover/budgetsummary/BudgetSummary.tsx +++ b/packages/desktop-client/src/components/budget/rollover/budgetsummary/BudgetSummary.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/budget/rollover/budgetsummary/ToBudget.tsx b/packages/desktop-client/src/components/budget/rollover/budgetsummary/ToBudget.tsx index 7364996619a..a07a2ee0f82 100644 --- a/packages/desktop-client/src/components/budget/rollover/budgetsummary/ToBudget.tsx +++ b/packages/desktop-client/src/components/budget/rollover/budgetsummary/ToBudget.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, type ComponentPropsWithoutRef } from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/budget/util.ts b/packages/desktop-client/src/components/budget/util.ts index b1e7d7d5c24..ed0f93bb953 100644 --- a/packages/desktop-client/src/components/budget/util.ts +++ b/packages/desktop-client/src/components/budget/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type useSpreadsheet } from 'loot-core/src/client/SpreadsheetProvider'; import { send } from 'loot-core/src/platform/client/fetch'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/common/AlignedText.tsx b/packages/desktop-client/src/components/common/AlignedText.tsx index a76812cc08a..dbd5c690a1d 100644 --- a/packages/desktop-client/src/components/common/AlignedText.tsx +++ b/packages/desktop-client/src/components/common/AlignedText.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type ComponentProps } from 'react'; import { type CSSProperties } from '../../style'; diff --git a/packages/desktop-client/src/components/common/Button.tsx b/packages/desktop-client/src/components/common/Button.tsx index 87606e6a562..f565e83a005 100644 --- a/packages/desktop-client/src/components/common/Button.tsx +++ b/packages/desktop-client/src/components/common/Button.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { forwardRef, type ElementType, type HTMLProps } from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/common/InitialFocus.ts b/packages/desktop-client/src/components/common/InitialFocus.ts index 1e8a0cb7062..c00eebd1fb5 100644 --- a/packages/desktop-client/src/components/common/InitialFocus.ts +++ b/packages/desktop-client/src/components/common/InitialFocus.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type ReactElement, type Ref, diff --git a/packages/desktop-client/src/components/common/Input.tsx b/packages/desktop-client/src/components/common/Input.tsx index aab2993a3d2..342c1e75c8f 100644 --- a/packages/desktop-client/src/components/common/Input.tsx +++ b/packages/desktop-client/src/components/common/Input.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useRef, type KeyboardEvent, diff --git a/packages/desktop-client/src/components/common/InputWithContent.tsx b/packages/desktop-client/src/components/common/InputWithContent.tsx index 0853c290a64..7f59fa3fba1 100644 --- a/packages/desktop-client/src/components/common/InputWithContent.tsx +++ b/packages/desktop-client/src/components/common/InputWithContent.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useState, type ComponentProps, type ReactNode } from 'react'; import { type CSSProperties, theme } from '../../style'; diff --git a/packages/desktop-client/src/components/common/Link.tsx b/packages/desktop-client/src/components/common/Link.tsx index 0d3a96b4c10..4a9410f30ca 100644 --- a/packages/desktop-client/src/components/common/Link.tsx +++ b/packages/desktop-client/src/components/common/Link.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, type ComponentProps } from 'react'; import { NavLink, useMatch } from 'react-router-dom'; diff --git a/packages/desktop-client/src/components/common/Menu.tsx b/packages/desktop-client/src/components/common/Menu.tsx index bb61e59eb2b..dc67988c626 100644 --- a/packages/desktop-client/src/components/common/Menu.tsx +++ b/packages/desktop-client/src/components/common/Menu.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type ReactNode, createElement, diff --git a/packages/desktop-client/src/components/common/MenuButton.tsx b/packages/desktop-client/src/components/common/MenuButton.tsx index 0906b48971a..30cd077226c 100644 --- a/packages/desktop-client/src/components/common/MenuButton.tsx +++ b/packages/desktop-client/src/components/common/MenuButton.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { SvgDotsHorizontalTriple } from '../../icons/v1'; diff --git a/packages/desktop-client/src/components/common/MenuTooltip.tsx b/packages/desktop-client/src/components/common/MenuTooltip.tsx index f8fa7044f78..a9d7f42be23 100644 --- a/packages/desktop-client/src/components/common/MenuTooltip.tsx +++ b/packages/desktop-client/src/components/common/MenuTooltip.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { Tooltip } from '../tooltips'; diff --git a/packages/desktop-client/src/components/common/Modal.tsx b/packages/desktop-client/src/components/common/Modal.tsx index 2aa11beb0c9..61c7026584f 100644 --- a/packages/desktop-client/src/components/common/Modal.tsx +++ b/packages/desktop-client/src/components/common/Modal.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useRef, diff --git a/packages/desktop-client/src/components/common/Search.tsx b/packages/desktop-client/src/components/common/Search.tsx index f0a9667d5a1..7068ef5783f 100644 --- a/packages/desktop-client/src/components/common/Search.tsx +++ b/packages/desktop-client/src/components/common/Search.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type ChangeEvent, type Ref } from 'react'; import { SvgRemove, SvgSearchAlternate } from '../../icons/v2'; diff --git a/packages/desktop-client/src/components/common/Stack.tsx b/packages/desktop-client/src/components/common/Stack.tsx index 82e25de59ee..6c9013380f0 100644 --- a/packages/desktop-client/src/components/common/Stack.tsx +++ b/packages/desktop-client/src/components/common/Stack.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { Children, type ComponentProps, diff --git a/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx b/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx index 401b8e3e8dc..8848ce8bd04 100644 --- a/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx +++ b/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { SvgFilter } from '../../icons/v1'; diff --git a/packages/desktop-client/src/components/filters/FiltersButton.tsx b/packages/desktop-client/src/components/filters/FiltersButton.tsx index b1bfb21cdda..f6f420f4889 100644 --- a/packages/desktop-client/src/components/filters/FiltersButton.tsx +++ b/packages/desktop-client/src/components/filters/FiltersButton.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { SvgSettingsSliderAlternate } from '../../icons/v2'; diff --git a/packages/desktop-client/src/components/manager/ConfigServer.tsx b/packages/desktop-client/src/components/manager/ConfigServer.tsx index 262565dda54..bdaa8586e7a 100644 --- a/packages/desktop-client/src/components/manager/ConfigServer.tsx +++ b/packages/desktop-client/src/components/manager/ConfigServer.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect } from 'react'; import { diff --git a/packages/desktop-client/src/components/manager/ImportActual.tsx b/packages/desktop-client/src/components/manager/ImportActual.tsx index da33ff6088a..665c4ea8ff3 100644 --- a/packages/desktop-client/src/components/manager/ImportActual.tsx +++ b/packages/desktop-client/src/components/manager/ImportActual.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; diff --git a/packages/desktop-client/src/components/manager/ImportYNAB4.tsx b/packages/desktop-client/src/components/manager/ImportYNAB4.tsx index 5e5e352e9b8..f95de762c22 100644 --- a/packages/desktop-client/src/components/manager/ImportYNAB4.tsx +++ b/packages/desktop-client/src/components/manager/ImportYNAB4.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; diff --git a/packages/desktop-client/src/components/manager/ImportYNAB5.tsx b/packages/desktop-client/src/components/manager/ImportYNAB5.tsx index ec37a3ee300..0e0a2be5cb3 100644 --- a/packages/desktop-client/src/components/manager/ImportYNAB5.tsx +++ b/packages/desktop-client/src/components/manager/ImportYNAB5.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; diff --git a/packages/desktop-client/src/components/manager/subscribe/Bootstrap.tsx b/packages/desktop-client/src/components/manager/subscribe/Bootstrap.tsx index 6832bc9dcb7..687c4bb2a0c 100644 --- a/packages/desktop-client/src/components/manager/subscribe/Bootstrap.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/Bootstrap.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; diff --git a/packages/desktop-client/src/components/manager/subscribe/ChangePassword.tsx b/packages/desktop-client/src/components/manager/subscribe/ChangePassword.tsx index 7c8f9df0227..a40f0a12fb3 100644 --- a/packages/desktop-client/src/components/manager/subscribe/ChangePassword.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/ChangePassword.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { send } from 'loot-core/src/platform/client/fetch'; diff --git a/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.tsx b/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.tsx index 0a77c49f155..06ee5e668cb 100644 --- a/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ChangeEvent, useState } from 'react'; import { ButtonWithLoading } from '../../common/Button'; diff --git a/packages/desktop-client/src/components/manager/subscribe/Error.tsx b/packages/desktop-client/src/components/manager/subscribe/Error.tsx index 9f16104a94a..014046c72f5 100644 --- a/packages/desktop-client/src/components/manager/subscribe/Error.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/Error.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { useLocation } from 'react-router-dom'; diff --git a/packages/desktop-client/src/components/manager/subscribe/Login.tsx b/packages/desktop-client/src/components/manager/subscribe/Login.tsx index c7298a547ee..45cc2405d42 100644 --- a/packages/desktop-client/src/components/manager/subscribe/Login.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/Login.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ChangeEvent, useState } from 'react'; import { useDispatch } from 'react-redux'; diff --git a/packages/desktop-client/src/components/manager/subscribe/common.tsx b/packages/desktop-client/src/components/manager/subscribe/common.tsx index af454ab1c35..8ebecc3e75f 100644 --- a/packages/desktop-client/src/components/manager/subscribe/common.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/common.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useState } from 'react'; import { useLocation } from 'react-router-dom'; diff --git a/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx b/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx index 78e9291dd58..93476f74420 100644 --- a/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx +++ b/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentType, useEffect } from 'react'; import { NavLink } from 'react-router-dom'; import { useSpring, animated, config } from 'react-spring'; diff --git a/packages/desktop-client/src/components/modals/CategoryGroupMenu.tsx b/packages/desktop-client/src/components/modals/CategoryGroupMenu.tsx index 21f91d18ecb..bd8d3e5d112 100644 --- a/packages/desktop-client/src/components/modals/CategoryGroupMenu.tsx +++ b/packages/desktop-client/src/components/modals/CategoryGroupMenu.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps, useState } from 'react'; import { useLiveQuery } from 'loot-core/src/client/query-hooks'; diff --git a/packages/desktop-client/src/components/modals/CategoryMenu.tsx b/packages/desktop-client/src/components/modals/CategoryMenu.tsx index 27531302cf5..f42bb96904b 100644 --- a/packages/desktop-client/src/components/modals/CategoryMenu.tsx +++ b/packages/desktop-client/src/components/modals/CategoryMenu.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useLiveQuery } from 'loot-core/src/client/query-hooks'; diff --git a/packages/desktop-client/src/components/modals/CloseAccount.tsx b/packages/desktop-client/src/components/modals/CloseAccount.tsx index 0dd220aa0ad..a4ed59ebe8a 100644 --- a/packages/desktop-client/src/components/modals/CloseAccount.tsx +++ b/packages/desktop-client/src/components/modals/CloseAccount.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { integerToCurrency } from 'loot-core/src/shared/util'; diff --git a/packages/desktop-client/src/components/modals/ConfirmCategoryDelete.tsx b/packages/desktop-client/src/components/modals/ConfirmCategoryDelete.tsx index cf758fa251d..e29c45964d6 100644 --- a/packages/desktop-client/src/components/modals/ConfirmCategoryDelete.tsx +++ b/packages/desktop-client/src/components/modals/ConfirmCategoryDelete.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { type CategoryGroupEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx b/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx index d28cf895db3..15cd79a2313 100644 --- a/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx +++ b/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { type CommonModalProps } from '../../types/modals'; diff --git a/packages/desktop-client/src/components/modals/CreateAccount.tsx b/packages/desktop-client/src/components/modals/CreateAccount.tsx index 167c2bce9ba..fab820fb99a 100644 --- a/packages/desktop-client/src/components/modals/CreateAccount.tsx +++ b/packages/desktop-client/src/components/modals/CreateAccount.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useState } from 'react'; import { authorizeBank } from '../../gocardless'; diff --git a/packages/desktop-client/src/components/modals/CreateEncryptionKey.tsx b/packages/desktop-client/src/components/modals/CreateEncryptionKey.tsx index 76672c99532..3a3b55e6029 100644 --- a/packages/desktop-client/src/components/modals/CreateEncryptionKey.tsx +++ b/packages/desktop-client/src/components/modals/CreateEncryptionKey.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/modals/CreateLocalAccount.tsx b/packages/desktop-client/src/components/modals/CreateLocalAccount.tsx index 837a77b8956..fe57fd6781d 100644 --- a/packages/desktop-client/src/components/modals/CreateLocalAccount.tsx +++ b/packages/desktop-client/src/components/modals/CreateLocalAccount.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { toRelaxedNumber } from 'loot-core/src/shared/util'; diff --git a/packages/desktop-client/src/components/modals/FixEncryptionKey.tsx b/packages/desktop-client/src/components/modals/FixEncryptionKey.tsx index b006ca1561a..367e3ad0076 100644 --- a/packages/desktop-client/src/components/modals/FixEncryptionKey.tsx +++ b/packages/desktop-client/src/components/modals/FixEncryptionKey.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { type FinanceModals } from 'loot-core/src/client/state-types/modals'; diff --git a/packages/desktop-client/src/components/modals/GoCardlessExternalMsg.tsx b/packages/desktop-client/src/components/modals/GoCardlessExternalMsg.tsx index f42877a04a8..b89c7835a48 100644 --- a/packages/desktop-client/src/components/modals/GoCardlessExternalMsg.tsx +++ b/packages/desktop-client/src/components/modals/GoCardlessExternalMsg.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useState, useRef } from 'react'; import { useDispatch } from 'react-redux'; diff --git a/packages/desktop-client/src/components/modals/GoCardlessInitialise.tsx b/packages/desktop-client/src/components/modals/GoCardlessInitialise.tsx index 2a8555522b3..a6d877b576f 100644 --- a/packages/desktop-client/src/components/modals/GoCardlessInitialise.tsx +++ b/packages/desktop-client/src/components/modals/GoCardlessInitialise.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { send } from 'loot-core/src/platform/client/fetch'; diff --git a/packages/desktop-client/src/components/modals/ManageRulesModal.tsx b/packages/desktop-client/src/components/modals/ManageRulesModal.tsx index 0242122d87d..97a8f9ff677 100644 --- a/packages/desktop-client/src/components/modals/ManageRulesModal.tsx +++ b/packages/desktop-client/src/components/modals/ManageRulesModal.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useLocation } from 'react-router-dom'; diff --git a/packages/desktop-client/src/components/modals/Notes.tsx b/packages/desktop-client/src/components/modals/Notes.tsx index a2d128a52de..e36f2315217 100644 --- a/packages/desktop-client/src/components/modals/Notes.tsx +++ b/packages/desktop-client/src/components/modals/Notes.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useEffect, useState } from 'react'; import { useLiveQuery } from 'loot-core/src/client/query-hooks'; diff --git a/packages/desktop-client/src/components/modals/PlaidExternalMsg.tsx b/packages/desktop-client/src/components/modals/PlaidExternalMsg.tsx index bc1dd416eed..72a2b3969f9 100644 --- a/packages/desktop-client/src/components/modals/PlaidExternalMsg.tsx +++ b/packages/desktop-client/src/components/modals/PlaidExternalMsg.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useRef } from 'react'; import { AnimatedLoading } from '../../icons/AnimatedLoading'; diff --git a/packages/desktop-client/src/components/modals/SingleInput.tsx b/packages/desktop-client/src/components/modals/SingleInput.tsx index 71e2943f5df..8c4daef9451 100644 --- a/packages/desktop-client/src/components/modals/SingleInput.tsx +++ b/packages/desktop-client/src/components/modals/SingleInput.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { styles } from '../../style'; diff --git a/packages/desktop-client/src/components/modals/SwitchBudgetType.tsx b/packages/desktop-client/src/components/modals/SwitchBudgetType.tsx index f2b11a8fa13..ecbb1e30ec7 100644 --- a/packages/desktop-client/src/components/modals/SwitchBudgetType.tsx +++ b/packages/desktop-client/src/components/modals/SwitchBudgetType.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/payees/PayeeTable.tsx b/packages/desktop-client/src/components/payees/PayeeTable.tsx index 048db5c066e..f3cd910aff8 100644 --- a/packages/desktop-client/src/components/payees/PayeeTable.tsx +++ b/packages/desktop-client/src/components/payees/PayeeTable.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { forwardRef, useCallback, diff --git a/packages/desktop-client/src/components/payees/PayeeTableRow.tsx b/packages/desktop-client/src/components/payees/PayeeTableRow.tsx index 525c9b28c98..64603fb52f7 100644 --- a/packages/desktop-client/src/components/payees/PayeeTableRow.tsx +++ b/packages/desktop-client/src/components/payees/PayeeTableRow.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { memo } from 'react'; import { type PayeeEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/reports/CategorySelector.tsx b/packages/desktop-client/src/components/reports/CategorySelector.tsx index 43a5d2c2ef5..21688b24845 100644 --- a/packages/desktop-client/src/components/reports/CategorySelector.tsx +++ b/packages/desktop-client/src/components/reports/CategorySelector.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { Fragment, useMemo, useState } from 'react'; import { diff --git a/packages/desktop-client/src/components/reports/ChooseGraph.tsx b/packages/desktop-client/src/components/reports/ChooseGraph.tsx index 7a91d01dc74..c02c5d8890c 100644 --- a/packages/desktop-client/src/components/reports/ChooseGraph.tsx +++ b/packages/desktop-client/src/components/reports/ChooseGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useRef } from 'react'; import { View } from '../common/View'; diff --git a/packages/desktop-client/src/components/reports/Container.tsx b/packages/desktop-client/src/components/reports/Container.tsx index f1108c72b4c..93b968fc1bc 100644 --- a/packages/desktop-client/src/components/reports/Container.tsx +++ b/packages/desktop-client/src/components/reports/Container.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useRef, type ReactNode } from 'react'; import AutoSizer from 'react-virtualized-auto-sizer'; diff --git a/packages/desktop-client/src/components/reports/GraphButton.tsx b/packages/desktop-client/src/components/reports/GraphButton.tsx index 9d14e37783c..0c155d2166d 100644 --- a/packages/desktop-client/src/components/reports/GraphButton.tsx +++ b/packages/desktop-client/src/components/reports/GraphButton.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type HTMLProps } from 'react'; import { type CSSProperties, theme } from '../../style'; diff --git a/packages/desktop-client/src/components/reports/ReportCard.tsx b/packages/desktop-client/src/components/reports/ReportCard.tsx index 0ff4e5e6074..db8b6b2429e 100644 --- a/packages/desktop-client/src/components/reports/ReportCard.tsx +++ b/packages/desktop-client/src/components/reports/ReportCard.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { theme } from '../../style'; diff --git a/packages/desktop-client/src/components/reports/ReportOptions.ts b/packages/desktop-client/src/components/reports/ReportOptions.ts index 014d011c847..0d4c6f6a4a5 100644 --- a/packages/desktop-client/src/components/reports/ReportOptions.ts +++ b/packages/desktop-client/src/components/reports/ReportOptions.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type AccountEntity, type CategoryEntity, diff --git a/packages/desktop-client/src/components/reports/ReportSummary.tsx b/packages/desktop-client/src/components/reports/ReportSummary.tsx index 96e56427b00..2ded9f97d4b 100644 --- a/packages/desktop-client/src/components/reports/ReportSummary.tsx +++ b/packages/desktop-client/src/components/reports/ReportSummary.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/reports/SaveReport.tsx b/packages/desktop-client/src/components/reports/SaveReport.tsx index a731442b5d8..3d1328e5742 100644 --- a/packages/desktop-client/src/components/reports/SaveReport.tsx +++ b/packages/desktop-client/src/components/reports/SaveReport.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { SvgExpandArrow } from '../../icons/v0'; diff --git a/packages/desktop-client/src/components/reports/graphs/AreaGraph.tsx b/packages/desktop-client/src/components/reports/graphs/AreaGraph.tsx index d293e7e5355..6ad6aeede02 100644 --- a/packages/desktop-client/src/components/reports/graphs/AreaGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/AreaGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/reports/graphs/BarGraph.tsx b/packages/desktop-client/src/components/reports/graphs/BarGraph.tsx index eadfe36a4df..02a0c7da9c7 100644 --- a/packages/desktop-client/src/components/reports/graphs/BarGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/BarGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/reports/graphs/BarLineGraph.tsx b/packages/desktop-client/src/components/reports/graphs/BarLineGraph.tsx index 08927d7ea50..9e39d8003f9 100644 --- a/packages/desktop-client/src/components/reports/graphs/BarLineGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/BarLineGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.tsx b/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.tsx index c3abe65d93d..5defc3c3941 100644 --- a/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import * as d from 'date-fns'; diff --git a/packages/desktop-client/src/components/reports/graphs/DonutGraph.tsx b/packages/desktop-client/src/components/reports/graphs/DonutGraph.tsx index dccb36bc313..0892c569147 100644 --- a/packages/desktop-client/src/components/reports/graphs/DonutGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/DonutGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { PieChart, Pie, Cell, Sector, ResponsiveContainer } from 'recharts'; diff --git a/packages/desktop-client/src/components/reports/graphs/LineGraph.tsx b/packages/desktop-client/src/components/reports/graphs/LineGraph.tsx index 1eaa2b9aa8a..ba78ad7e380 100644 --- a/packages/desktop-client/src/components/reports/graphs/LineGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/LineGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx b/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx index 4de8d311b3f..9e9eb3fadd8 100644 --- a/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx b/packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx index a41a90fe47d..d079a1a40e4 100644 --- a/packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { diff --git a/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx b/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx index 2f41809e820..3cace4e4d95 100644 --- a/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/reports/graphs/adjustTextSize.ts b/packages/desktop-client/src/components/reports/graphs/adjustTextSize.ts index 7c1e292bdc8..9d533ec3c58 100644 --- a/packages/desktop-client/src/components/reports/graphs/adjustTextSize.ts +++ b/packages/desktop-client/src/components/reports/graphs/adjustTextSize.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export const adjustTextSize = ( sized: number, type: string, diff --git a/packages/desktop-client/src/components/reports/graphs/common.tsx b/packages/desktop-client/src/components/reports/graphs/common.tsx index 1c983ebdc5a..4ea35408c03 100644 --- a/packages/desktop-client/src/components/reports/graphs/common.tsx +++ b/packages/desktop-client/src/components/reports/graphs/common.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import { chartTheme } from '../chart-theme'; diff --git a/packages/desktop-client/src/components/reports/graphs/renderCustomLabel.tsx b/packages/desktop-client/src/components/reports/graphs/renderCustomLabel.tsx index acd7233fcef..303773cce00 100644 --- a/packages/desktop-client/src/components/reports/graphs/renderCustomLabel.tsx +++ b/packages/desktop-client/src/components/reports/graphs/renderCustomLabel.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { theme } from '../../../style'; diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx index 91a5ca1457a..a022eee4a00 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type UIEventHandler, useLayoutEffect, diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx index c95fb518f41..7138c4ba908 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type UIEventHandler } from 'react'; import { type RefProp } from 'react-spring'; diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx index 0cda809d6b4..3034fb293ca 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { memo } from 'react'; import { diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableTotals.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableTotals.tsx index be418de80c6..4b708a985fa 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableTotals.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableTotals.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type UIEventHandler, useLayoutEffect, useState } from 'react'; import { type RefProp } from 'react-spring'; diff --git a/packages/desktop-client/src/components/reports/reports/CashFlow.tsx b/packages/desktop-client/src/components/reports/reports/CashFlow.tsx index 17ccfef4eaf..e1ad6356cb4 100644 --- a/packages/desktop-client/src/components/reports/reports/CashFlow.tsx +++ b/packages/desktop-client/src/components/reports/reports/CashFlow.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect, useMemo } from 'react'; import * as d from 'date-fns'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/calculateLegend.ts b/packages/desktop-client/src/components/reports/spreadsheets/calculateLegend.ts index db55ead21b4..b0acf116a48 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/calculateLegend.ts +++ b/packages/desktop-client/src/components/reports/spreadsheets/calculateLegend.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { theme } from '../../../style'; import { getColorScale } from '../chart-theme'; import { type ItemEntity, type MonthData } from '../entities'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx b/packages/desktop-client/src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx index 70a736ea2bf..d2b80432055 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx +++ b/packages/desktop-client/src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import * as d from 'date-fns'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/category-spending-spreadsheet.tsx b/packages/desktop-client/src/components/reports/spreadsheets/category-spending-spreadsheet.tsx index 8f45940b4cd..aac3cc2ecba 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/category-spending-spreadsheet.tsx +++ b/packages/desktop-client/src/components/reports/spreadsheets/category-spending-spreadsheet.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import * as d from 'date-fns'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/custom-spreadsheet.ts b/packages/desktop-client/src/components/reports/spreadsheets/custom-spreadsheet.ts index c17f9bef860..5c7c848f351 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/custom-spreadsheet.ts +++ b/packages/desktop-client/src/components/reports/spreadsheets/custom-spreadsheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import { runQuery } from 'loot-core/src/client/query-helpers'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/grouped-spreadsheet.ts b/packages/desktop-client/src/components/reports/spreadsheets/grouped-spreadsheet.ts index 1e8a5313239..93883b21788 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/grouped-spreadsheet.ts +++ b/packages/desktop-client/src/components/reports/spreadsheets/grouped-spreadsheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { runQuery } from 'loot-core/src/client/query-helpers'; import { send } from 'loot-core/src/platform/client/fetch'; import * as monthUtils from 'loot-core/src/shared/months'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/net-worth-spreadsheet.ts b/packages/desktop-client/src/components/reports/spreadsheets/net-worth-spreadsheet.ts index bd5f9c3599e..b5000d3e38a 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/net-worth-spreadsheet.ts +++ b/packages/desktop-client/src/components/reports/spreadsheets/net-worth-spreadsheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import { runQuery } from 'loot-core/src/client/query-helpers'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/recalculate.ts b/packages/desktop-client/src/components/reports/spreadsheets/recalculate.ts index 1baf9d72c29..a8486d5b3c3 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/recalculate.ts +++ b/packages/desktop-client/src/components/reports/spreadsheets/recalculate.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import { amountToInteger, integerToAmount } from 'loot-core/src/shared/util'; diff --git a/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts b/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts index 88c929e7510..c51f835ab84 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts +++ b/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { runQuery } from 'loot-core/src/client/query-helpers'; import { send } from 'loot-core/src/platform/client/fetch'; import { q } from 'loot-core/src/shared/query'; diff --git a/packages/desktop-client/src/components/reports/useReport.ts b/packages/desktop-client/src/components/reports/useReport.ts index f83f28e1237..d9f41719673 100644 --- a/packages/desktop-client/src/components/reports/useReport.ts +++ b/packages/desktop-client/src/components/reports/useReport.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useState, useEffect, type SetStateAction } from 'react'; import { useSpreadsheet } from 'loot-core/src/client/SpreadsheetProvider'; diff --git a/packages/desktop-client/src/components/reports/util.ts b/packages/desktop-client/src/components/reports/util.ts index 35ff2166e5b..d967a0bae55 100644 --- a/packages/desktop-client/src/components/reports/util.ts +++ b/packages/desktop-client/src/components/reports/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { runQuery } from 'loot-core/src/client/query-helpers'; import type { Query } from 'loot-core/src/shared/query'; diff --git a/packages/desktop-client/src/components/rules/RuleRow.tsx b/packages/desktop-client/src/components/rules/RuleRow.tsx index 60083708eb3..c43d90865ee 100644 --- a/packages/desktop-client/src/components/rules/RuleRow.tsx +++ b/packages/desktop-client/src/components/rules/RuleRow.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { memo } from 'react'; import { friendlyOp } from 'loot-core/src/shared/rules'; diff --git a/packages/desktop-client/src/components/rules/RulesList.tsx b/packages/desktop-client/src/components/rules/RulesList.tsx index 2fab1d2fba7..424c50dee1a 100644 --- a/packages/desktop-client/src/components/rules/RulesList.tsx +++ b/packages/desktop-client/src/components/rules/RulesList.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { type RuleEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/rules/SimpleTable.tsx b/packages/desktop-client/src/components/rules/SimpleTable.tsx index 688afeec118..d0889955337 100644 --- a/packages/desktop-client/src/components/rules/SimpleTable.tsx +++ b/packages/desktop-client/src/components/rules/SimpleTable.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, type UIEvent, useRef } from 'react'; import { type CSSProperties } from '../../style'; diff --git a/packages/desktop-client/src/components/rules/Value.tsx b/packages/desktop-client/src/components/rules/Value.tsx index 75366106758..77b453154d1 100644 --- a/packages/desktop-client/src/components/rules/Value.tsx +++ b/packages/desktop-client/src/components/rules/Value.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/schedules/DiscoverSchedules.tsx b/packages/desktop-client/src/components/schedules/DiscoverSchedules.tsx index 8352dc20867..be61c267f6c 100644 --- a/packages/desktop-client/src/components/schedules/DiscoverSchedules.tsx +++ b/packages/desktop-client/src/components/schedules/DiscoverSchedules.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/schedules/ScheduleLink.tsx b/packages/desktop-client/src/components/schedules/ScheduleLink.tsx index 3c3964508ad..60950dda143 100644 --- a/packages/desktop-client/src/components/schedules/ScheduleLink.tsx +++ b/packages/desktop-client/src/components/schedules/ScheduleLink.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useCallback, useRef, useState } from 'react'; import { useSchedules } from 'loot-core/src/client/data-hooks/schedules'; diff --git a/packages/desktop-client/src/components/schedules/SchedulesTable.tsx b/packages/desktop-client/src/components/schedules/SchedulesTable.tsx index e6559bed99b..0f49c983f27 100644 --- a/packages/desktop-client/src/components/schedules/SchedulesTable.tsx +++ b/packages/desktop-client/src/components/schedules/SchedulesTable.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useMemo, type CSSProperties } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/select/DateSelect.tsx b/packages/desktop-client/src/components/select/DateSelect.tsx index d1438bf09c0..7ac710fb8ea 100644 --- a/packages/desktop-client/src/components/select/DateSelect.tsx +++ b/packages/desktop-client/src/components/select/DateSelect.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { forwardRef, useState, diff --git a/packages/desktop-client/src/components/settings/Encryption.tsx b/packages/desktop-client/src/components/settings/Encryption.tsx index 4ed788ede6c..c321f90d87b 100644 --- a/packages/desktop-client/src/components/settings/Encryption.tsx +++ b/packages/desktop-client/src/components/settings/Encryption.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/settings/Export.tsx b/packages/desktop-client/src/components/settings/Export.tsx index c3e46493b7a..15b97ee2247 100644 --- a/packages/desktop-client/src/components/settings/Export.tsx +++ b/packages/desktop-client/src/components/settings/Export.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/settings/FixSplits.tsx b/packages/desktop-client/src/components/settings/FixSplits.tsx index 3352f0c5d9a..dab88d8b8b1 100644 --- a/packages/desktop-client/src/components/settings/FixSplits.tsx +++ b/packages/desktop-client/src/components/settings/FixSplits.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { send } from 'loot-core/src/platform/client/fetch'; diff --git a/packages/desktop-client/src/components/settings/Format.tsx b/packages/desktop-client/src/components/settings/Format.tsx index 43ea10cfc6e..2cb8911dd5b 100644 --- a/packages/desktop-client/src/components/settings/Format.tsx +++ b/packages/desktop-client/src/components/settings/Format.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/settings/Global.tsx b/packages/desktop-client/src/components/settings/Global.tsx index 96a8c4090bc..079cb3ec9fe 100644 --- a/packages/desktop-client/src/components/settings/Global.tsx +++ b/packages/desktop-client/src/components/settings/Global.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect, useRef } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/settings/Reset.tsx b/packages/desktop-client/src/components/settings/Reset.tsx index fd8875a844f..14c26a33273 100644 --- a/packages/desktop-client/src/components/settings/Reset.tsx +++ b/packages/desktop-client/src/components/settings/Reset.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/settings/index.tsx b/packages/desktop-client/src/components/settings/index.tsx index 73afbec5ba0..d71b6f5e4ab 100644 --- a/packages/desktop-client/src/components/settings/index.tsx +++ b/packages/desktop-client/src/components/settings/index.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, useEffect } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/sidebar/Account.tsx b/packages/desktop-client/src/components/sidebar/Account.tsx index d079d6d6287..dc42b4e7a78 100644 --- a/packages/desktop-client/src/components/sidebar/Account.tsx +++ b/packages/desktop-client/src/components/sidebar/Account.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { css } from 'glamor'; diff --git a/packages/desktop-client/src/components/sidebar/Accounts.tsx b/packages/desktop-client/src/components/sidebar/Accounts.tsx index 245f6212fc7..c77a9ae365c 100644 --- a/packages/desktop-client/src/components/sidebar/Accounts.tsx +++ b/packages/desktop-client/src/components/sidebar/Accounts.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useMemo } from 'react'; import { type AccountEntity } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/components/sidebar/Item.tsx b/packages/desktop-client/src/components/sidebar/Item.tsx index 3c6a1c4f0f6..8a209bd346b 100644 --- a/packages/desktop-client/src/components/sidebar/Item.tsx +++ b/packages/desktop-client/src/components/sidebar/Item.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentType, type MouseEventHandler, diff --git a/packages/desktop-client/src/components/sidebar/SecondaryItem.tsx b/packages/desktop-client/src/components/sidebar/SecondaryItem.tsx index 0203532e68f..b83dcb3a96a 100644 --- a/packages/desktop-client/src/components/sidebar/SecondaryItem.tsx +++ b/packages/desktop-client/src/components/sidebar/SecondaryItem.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentType, type MouseEventHandler, diff --git a/packages/desktop-client/src/components/sidebar/SidebarWithData.tsx b/packages/desktop-client/src/components/sidebar/SidebarWithData.tsx index 34886999c92..32668b2487c 100644 --- a/packages/desktop-client/src/components/sidebar/SidebarWithData.tsx +++ b/packages/desktop-client/src/components/sidebar/SidebarWithData.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { useState, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/components/sidebar/index.tsx b/packages/desktop-client/src/components/sidebar/index.tsx index f922f2b7156..4e45f1d132a 100644 --- a/packages/desktop-client/src/components/sidebar/index.tsx +++ b/packages/desktop-client/src/components/sidebar/index.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useState, diff --git a/packages/desktop-client/src/components/sort.tsx b/packages/desktop-client/src/components/sort.tsx index 6a0a84c97f2..3a93640bedd 100644 --- a/packages/desktop-client/src/components/sort.tsx +++ b/packages/desktop-client/src/components/sort.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useEffect, diff --git a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx index 34686b18221..f528c21b2f2 100644 --- a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx +++ b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ComponentProps, type ReactNode } from 'react'; import { type CSSProperties, styles } from '../../style'; diff --git a/packages/desktop-client/src/components/spreadsheet/index.ts b/packages/desktop-client/src/components/spreadsheet/index.ts index 786d44489b1..0a069c8c65f 100644 --- a/packages/desktop-client/src/components/spreadsheet/index.ts +++ b/packages/desktop-client/src/components/spreadsheet/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type Query } from 'loot-core/src/shared/query'; export type Binding = string | { name: string; value?; query?: Query }; diff --git a/packages/desktop-client/src/components/spreadsheet/useSheetName.ts b/packages/desktop-client/src/components/spreadsheet/useSheetName.ts index 49a187a7c56..621efc523c6 100644 --- a/packages/desktop-client/src/components/spreadsheet/useSheetName.ts +++ b/packages/desktop-client/src/components/spreadsheet/useSheetName.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useContext } from 'react'; import { NamespaceContext } from './NamespaceContext'; diff --git a/packages/desktop-client/src/components/spreadsheet/useSheetValue.ts b/packages/desktop-client/src/components/spreadsheet/useSheetValue.ts index 845b543a4c9..1b6c5c0c5bc 100644 --- a/packages/desktop-client/src/components/spreadsheet/useSheetValue.ts +++ b/packages/desktop-client/src/components/spreadsheet/useSheetValue.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useState, useRef, useLayoutEffect } from 'react'; import { useSpreadsheet } from 'loot-core/src/client/SpreadsheetProvider'; diff --git a/packages/desktop-client/src/components/table.tsx b/packages/desktop-client/src/components/table.tsx index a2e72a7c9a8..02db15fa986 100644 --- a/packages/desktop-client/src/components/table.tsx +++ b/packages/desktop-client/src/components/table.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { forwardRef, useState, diff --git a/packages/desktop-client/src/components/tooltips.tsx b/packages/desktop-client/src/components/tooltips.tsx index b86a9128a25..eb95166a871 100644 --- a/packages/desktop-client/src/components/tooltips.tsx +++ b/packages/desktop-client/src/components/tooltips.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Component, createContext, diff --git a/packages/desktop-client/src/components/util/AmountInput.tsx b/packages/desktop-client/src/components/util/AmountInput.tsx index 3325431733d..151936a042b 100644 --- a/packages/desktop-client/src/components/util/AmountInput.tsx +++ b/packages/desktop-client/src/components/util/AmountInput.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type Ref, useRef, diff --git a/packages/desktop-client/src/components/util/DisplayId.tsx b/packages/desktop-client/src/components/util/DisplayId.tsx index 45eed93d3a3..db3982cbeac 100644 --- a/packages/desktop-client/src/components/util/DisplayId.tsx +++ b/packages/desktop-client/src/components/util/DisplayId.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { CachedAccounts } from 'loot-core/src/client/data-hooks/accounts'; diff --git a/packages/desktop-client/src/global-events.ts b/packages/desktop-client/src/global-events.ts index ee7dbb50c30..171f9b8aacb 100644 --- a/packages/desktop-client/src/global-events.ts +++ b/packages/desktop-client/src/global-events.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type Store } from 'redux'; import * as sharedListeners from 'loot-core/src/client/shared-listeners'; diff --git a/packages/desktop-client/src/gocardless.ts b/packages/desktop-client/src/gocardless.ts index fe987b84469..6f5e27794ed 100644 --- a/packages/desktop-client/src/gocardless.ts +++ b/packages/desktop-client/src/gocardless.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import type { pushModal as pushModalAction } from 'loot-core/src/client/actions/modals'; import { send } from 'loot-core/src/platform/client/fetch'; import { type GoCardlessToken } from 'loot-core/src/types/models'; diff --git a/packages/desktop-client/src/hooks/useFeatureFlag.ts b/packages/desktop-client/src/hooks/useFeatureFlag.ts index 0bda638b5d8..5b506dc4d58 100644 --- a/packages/desktop-client/src/hooks/useFeatureFlag.ts +++ b/packages/desktop-client/src/hooks/useFeatureFlag.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useSelector } from 'react-redux'; import type { FeatureFlag } from 'loot-core/src/types/prefs'; diff --git a/packages/desktop-client/src/hooks/useFilters.ts b/packages/desktop-client/src/hooks/useFilters.ts index c23003c3980..fb54839ec80 100644 --- a/packages/desktop-client/src/hooks/useFilters.ts +++ b/packages/desktop-client/src/hooks/useFilters.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useCallback, useMemo, useState } from 'react'; export function useFilters(initialFilters: T[] = []) { diff --git a/packages/desktop-client/src/hooks/useMergedRefs.ts b/packages/desktop-client/src/hooks/useMergedRefs.ts index ebf6647fdf2..e9b18a98c66 100644 --- a/packages/desktop-client/src/hooks/useMergedRefs.ts +++ b/packages/desktop-client/src/hooks/useMergedRefs.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useMemo } from 'react'; import type { MutableRefObject, Ref, RefCallback } from 'react'; diff --git a/packages/desktop-client/src/hooks/useProperFocus.tsx b/packages/desktop-client/src/hooks/useProperFocus.tsx index d8e738599be..abec12fadcb 100644 --- a/packages/desktop-client/src/hooks/useProperFocus.tsx +++ b/packages/desktop-client/src/hooks/useProperFocus.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useRef, diff --git a/packages/desktop-client/src/hooks/useResizeObserver.ts b/packages/desktop-client/src/hooks/useResizeObserver.ts index 45f37e24b66..4137dd92524 100644 --- a/packages/desktop-client/src/hooks/useResizeObserver.ts +++ b/packages/desktop-client/src/hooks/useResizeObserver.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useRef, useCallback } from 'react'; export function useResizeObserver( diff --git a/packages/desktop-client/src/hooks/useSelected.tsx b/packages/desktop-client/src/hooks/useSelected.tsx index 3c3976c2bcd..c48f5c898fe 100644 --- a/packages/desktop-client/src/hooks/useSelected.tsx +++ b/packages/desktop-client/src/hooks/useSelected.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useContext, diff --git a/packages/desktop-client/src/hooks/useSendPlatformRequest.ts b/packages/desktop-client/src/hooks/useSendPlatformRequest.ts index 29585532ea6..328a530b8e2 100644 --- a/packages/desktop-client/src/hooks/useSendPlatformRequest.ts +++ b/packages/desktop-client/src/hooks/useSendPlatformRequest.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useEffect, useState } from 'react'; import { send } from 'loot-core/src/platform/client/fetch'; diff --git a/packages/desktop-client/src/hooks/useSetThemeColor.ts b/packages/desktop-client/src/hooks/useSetThemeColor.ts index 117181ddcb2..17bcc3c838d 100644 --- a/packages/desktop-client/src/hooks/useSetThemeColor.ts +++ b/packages/desktop-client/src/hooks/useSetThemeColor.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useEffect } from 'react'; const VAR_STRING_REGEX = /^var\((--.*)\)$/; diff --git a/packages/desktop-client/src/hooks/useSingleActiveEditForm.tsx b/packages/desktop-client/src/hooks/useSingleActiveEditForm.tsx index 5dabcf9dc8a..7aab6081410 100644 --- a/packages/desktop-client/src/hooks/useSingleActiveEditForm.tsx +++ b/packages/desktop-client/src/hooks/useSingleActiveEditForm.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { type ReactNode, createContext, diff --git a/packages/desktop-client/src/hooks/useStableCallback.ts b/packages/desktop-client/src/hooks/useStableCallback.ts index 43afc3356bb..9a09968750e 100644 --- a/packages/desktop-client/src/hooks/useStableCallback.ts +++ b/packages/desktop-client/src/hooks/useStableCallback.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useRef, useLayoutEffect, useCallback } from 'react'; type UseStableCallbackArg = (...args: unknown[]) => unknown; diff --git a/packages/desktop-client/src/icons/index-template.ts b/packages/desktop-client/src/icons/index-template.ts index 679f5ce7b85..8759dd9daf8 100644 --- a/packages/desktop-client/src/icons/index-template.ts +++ b/packages/desktop-client/src/icons/index-template.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import path from 'path'; function indexTemplate(filePaths) { diff --git a/packages/desktop-client/src/icons/template.ts b/packages/desktop-client/src/icons/template.ts index 8cb1e0507f5..edf142a8476 100644 --- a/packages/desktop-client/src/icons/template.ts +++ b/packages/desktop-client/src/icons/template.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore const template = ({ imports, interfaces, componentName, props, jsx }, { tpl }) => { return tpl` ${imports}; diff --git a/packages/desktop-client/src/index.tsx b/packages/desktop-client/src/index.tsx index d8b3fda9b5e..810e515c87a 100644 --- a/packages/desktop-client/src/index.tsx +++ b/packages/desktop-client/src/index.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore // This file will initialize the app if we are in a real browser // environment (not electron) import './browser-preload'; diff --git a/packages/desktop-client/src/style/styles.ts b/packages/desktop-client/src/style/styles.ts index b21ff1a4665..027cd27adb7 100644 --- a/packages/desktop-client/src/style/styles.ts +++ b/packages/desktop-client/src/style/styles.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { keyframes } from 'glamor'; import * as Platform from 'loot-core/src/client/platform'; diff --git a/packages/desktop-client/src/style/theme.tsx b/packages/desktop-client/src/style/theme.tsx index 252187a4ed5..0d147ddac5f 100644 --- a/packages/desktop-client/src/style/theme.tsx +++ b/packages/desktop-client/src/style/theme.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useEffect, useState } from 'react'; import { useSelector } from 'react-redux'; diff --git a/packages/desktop-client/src/tokens.ts b/packages/desktop-client/src/tokens.ts index e5eabe1ad1d..f090391c2d3 100644 --- a/packages/desktop-client/src/tokens.ts +++ b/packages/desktop-client/src/tokens.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore enum BreakpointNames { small = 'small', medium = 'medium', diff --git a/packages/desktop-client/src/util/markdown.ts b/packages/desktop-client/src/util/markdown.ts index 499cd9a862c..bcb4c7cd21b 100644 --- a/packages/desktop-client/src/util/markdown.ts +++ b/packages/desktop-client/src/util/markdown.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { newlineToBreak } from 'mdast-util-newline-to-break'; export function sequentialNewlinesPlugin() { diff --git a/packages/desktop-client/src/util/versions.ts b/packages/desktop-client/src/util/versions.ts index e9fbef569c8..291d236403f 100644 --- a/packages/desktop-client/src/util/versions.ts +++ b/packages/desktop-client/src/util/versions.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as Platform from 'loot-core/src/client/platform'; function parseSemanticVersion(versionString): [number, number, number] { diff --git a/packages/desktop-client/vite.config.mts b/packages/desktop-client/vite.config.mts index 6caaf0f5846..513216ae469 100644 --- a/packages/desktop-client/vite.config.mts +++ b/packages/desktop-client/vite.config.mts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as path from 'path'; import inject from '@rollup/plugin-inject'; diff --git a/packages/loot-core/src/client/SpreadsheetProvider.tsx b/packages/loot-core/src/client/SpreadsheetProvider.tsx index 2823fe123d4..7c53ca515d4 100644 --- a/packages/loot-core/src/client/SpreadsheetProvider.tsx +++ b/packages/loot-core/src/client/SpreadsheetProvider.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useEffect, useMemo, useContext } from 'react'; import LRU from 'lru-cache'; diff --git a/packages/loot-core/src/client/actions/account.ts b/packages/loot-core/src/client/actions/account.ts index 41516b7a0f7..8dcdfe599c0 100644 --- a/packages/loot-core/src/client/actions/account.ts +++ b/packages/loot-core/src/client/actions/account.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { send } from '../../platform/client/fetch'; import * as constants from '../constants'; import type { diff --git a/packages/loot-core/src/client/actions/app.ts b/packages/loot-core/src/client/actions/app.ts index dac6c7bb5ca..6f6ca769637 100644 --- a/packages/loot-core/src/client/actions/app.ts +++ b/packages/loot-core/src/client/actions/app.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { send } from '../../platform/client/fetch'; import * as constants from '../constants'; import type { diff --git a/packages/loot-core/src/client/actions/backups.ts b/packages/loot-core/src/client/actions/backups.ts index 10571fcfbff..fde6c179f07 100644 --- a/packages/loot-core/src/client/actions/backups.ts +++ b/packages/loot-core/src/client/actions/backups.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { send } from '../../platform/client/fetch'; import { closeBudget, loadBudget } from './budgets'; diff --git a/packages/loot-core/src/client/actions/budgets.ts b/packages/loot-core/src/client/actions/budgets.ts index 9a5321cf3dc..9313d441b70 100644 --- a/packages/loot-core/src/client/actions/budgets.ts +++ b/packages/loot-core/src/client/actions/budgets.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { send } from '../../platform/client/fetch'; import { getDownloadError, getSyncError } from '../../shared/errors'; import type { Handlers } from '../../types/handlers'; diff --git a/packages/loot-core/src/client/actions/prefs.ts b/packages/loot-core/src/client/actions/prefs.ts index ac6cf98b9b5..b93a38eb389 100644 --- a/packages/loot-core/src/client/actions/prefs.ts +++ b/packages/loot-core/src/client/actions/prefs.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { send } from '../../platform/client/fetch'; import type * as prefs from '../../types/prefs'; import * as constants from '../constants'; diff --git a/packages/loot-core/src/client/actions/queries.ts b/packages/loot-core/src/client/actions/queries.ts index c3b02f2a859..1cb86185fa8 100644 --- a/packages/loot-core/src/client/actions/queries.ts +++ b/packages/loot-core/src/client/actions/queries.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import throttle from 'throttleit'; import { send } from '../../platform/client/fetch'; diff --git a/packages/loot-core/src/client/actions/sync.ts b/packages/loot-core/src/client/actions/sync.ts index c2b03d22ad9..94aa3f7db06 100644 --- a/packages/loot-core/src/client/actions/sync.ts +++ b/packages/loot-core/src/client/actions/sync.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { send } from '../../platform/client/fetch'; import { getUploadError } from '../../shared/errors'; diff --git a/packages/loot-core/src/client/data-hooks/accounts.tsx b/packages/loot-core/src/client/data-hooks/accounts.tsx index 0d5de6c534f..c2460477fa6 100644 --- a/packages/loot-core/src/client/data-hooks/accounts.tsx +++ b/packages/loot-core/src/client/data-hooks/accounts.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useContext } from 'react'; import { q } from '../../shared/query'; diff --git a/packages/loot-core/src/client/data-hooks/filters.ts b/packages/loot-core/src/client/data-hooks/filters.ts index 6854928d97a..e26d6fa7ec9 100644 --- a/packages/loot-core/src/client/data-hooks/filters.ts +++ b/packages/loot-core/src/client/data-hooks/filters.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { useMemo } from 'react'; import { q } from '../../shared/query'; diff --git a/packages/loot-core/src/client/data-hooks/payees.tsx b/packages/loot-core/src/client/data-hooks/payees.tsx index feb3cbb532c..4299aa9a31f 100644 --- a/packages/loot-core/src/client/data-hooks/payees.tsx +++ b/packages/loot-core/src/client/data-hooks/payees.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useContext } from 'react'; import { q } from '../../shared/query'; diff --git a/packages/loot-core/src/client/data-hooks/schedules.tsx b/packages/loot-core/src/client/data-hooks/schedules.tsx index e2db2d1fbd8..9902efac09c 100644 --- a/packages/loot-core/src/client/data-hooks/schedules.tsx +++ b/packages/loot-core/src/client/data-hooks/schedules.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useEffect, useState, useContext } from 'react'; import { q, type Query } from '../../shared/query'; diff --git a/packages/loot-core/src/client/queries.ts b/packages/loot-core/src/client/queries.ts index 6a37151a387..f8ac400a04e 100644 --- a/packages/loot-core/src/client/queries.ts +++ b/packages/loot-core/src/client/queries.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { parse as parseDate, isValid as isDateValid } from 'date-fns'; import { diff --git a/packages/loot-core/src/client/query-helpers.test.ts b/packages/loot-core/src/client/query-helpers.test.ts index c99b3426fbc..55721e9683e 100644 --- a/packages/loot-core/src/client/query-helpers.test.ts +++ b/packages/loot-core/src/client/query-helpers.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { initServer, serverPush } from '../platform/client/fetch'; import { subDays } from '../shared/months'; import { q } from '../shared/query'; diff --git a/packages/loot-core/src/client/query-helpers.ts b/packages/loot-core/src/client/query-helpers.ts index 1883bfd534d..0f8963c0181 100644 --- a/packages/loot-core/src/client/query-helpers.ts +++ b/packages/loot-core/src/client/query-helpers.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { listen, send } from '../platform/client/fetch'; import { once } from '../shared/async'; import { getPrimaryOrderBy } from '../shared/query'; diff --git a/packages/loot-core/src/client/query-hooks.tsx b/packages/loot-core/src/client/query-hooks.tsx index 52314faa376..1b5853bbb4b 100644 --- a/packages/loot-core/src/client/query-hooks.tsx +++ b/packages/loot-core/src/client/query-hooks.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { createContext, useState, diff --git a/packages/loot-core/src/client/reducers/notifications.ts b/packages/loot-core/src/client/reducers/notifications.ts index 942f47c0d04..2221c6c59d1 100644 --- a/packages/loot-core/src/client/reducers/notifications.ts +++ b/packages/loot-core/src/client/reducers/notifications.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as constants from '../constants'; import type { Action } from '../state-types'; import type { NotificationsState } from '../state-types/notifications'; diff --git a/packages/loot-core/src/client/reducers/prefs.ts b/packages/loot-core/src/client/reducers/prefs.ts index d87b4073e5b..cb0d91654bf 100644 --- a/packages/loot-core/src/client/reducers/prefs.ts +++ b/packages/loot-core/src/client/reducers/prefs.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { setNumberFormat } from '../../shared/util'; import * as constants from '../constants'; import type { Action } from '../state-types'; diff --git a/packages/loot-core/src/client/reducers/queries.ts b/packages/loot-core/src/client/reducers/queries.ts index 4f78d0e9c87..470c3591692 100644 --- a/packages/loot-core/src/client/reducers/queries.ts +++ b/packages/loot-core/src/client/reducers/queries.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import memoizeOne from 'memoize-one'; import { groupById } from '../../shared/util'; diff --git a/packages/loot-core/src/client/selectors.ts b/packages/loot-core/src/client/selectors.ts index 08e8ea54a05..5d86c6de8b6 100644 --- a/packages/loot-core/src/client/selectors.ts +++ b/packages/loot-core/src/client/selectors.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { createSelector } from 'reselect'; import { getNumberFormat } from '../shared/util'; diff --git a/packages/loot-core/src/client/shared-listeners.ts b/packages/loot-core/src/client/shared-listeners.ts index d26c8ed8919..db98b14873d 100644 --- a/packages/loot-core/src/client/shared-listeners.ts +++ b/packages/loot-core/src/client/shared-listeners.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { listen, send } from '../platform/client/fetch'; import type { Notification } from './state-types/notifications'; diff --git a/packages/loot-core/src/client/update-notification.ts b/packages/loot-core/src/client/update-notification.ts index e698daefb1f..cb50c44b516 100644 --- a/packages/loot-core/src/client/update-notification.ts +++ b/packages/loot-core/src/client/update-notification.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export async function checkForUpdateNotification( addNotification, getIsOutdated, diff --git a/packages/loot-core/src/mocks/arbitrary-schema.ts b/packages/loot-core/src/mocks/arbitrary-schema.ts index 23aace50d42..26569382ac9 100644 --- a/packages/loot-core/src/mocks/arbitrary-schema.ts +++ b/packages/loot-core/src/mocks/arbitrary-schema.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import fc, { type Arbitrary } from 'fast-check'; import { schema } from '../server/aql'; diff --git a/packages/loot-core/src/mocks/budget.ts b/packages/loot-core/src/mocks/budget.ts index 92c6f28391e..61b30c0442f 100644 --- a/packages/loot-core/src/mocks/budget.ts +++ b/packages/loot-core/src/mocks/budget.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { addTransactions } from '../server/accounts/sync'; import { runQuery as aqlQuery } from '../server/aql'; import * as budgetActions from '../server/budget/actions'; diff --git a/packages/loot-core/src/mocks/index.ts b/packages/loot-core/src/mocks/index.ts index bc056442e83..e42823ed7c8 100644 --- a/packages/loot-core/src/mocks/index.ts +++ b/packages/loot-core/src/mocks/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import * as monthUtils from '../shared/months'; diff --git a/packages/loot-core/src/mocks/plaid.ts b/packages/loot-core/src/mocks/plaid.ts index a77803f4e80..74a37651833 100644 --- a/packages/loot-core/src/mocks/plaid.ts +++ b/packages/loot-core/src/mocks/plaid.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; export function generateAccount(balance) { diff --git a/packages/loot-core/src/mocks/redux.tsx b/packages/loot-core/src/mocks/redux.tsx index bb32a0fd1ce..0722bbff90b 100644 --- a/packages/loot-core/src/mocks/redux.tsx +++ b/packages/loot-core/src/mocks/redux.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React from 'react'; import { Provider } from 'react-redux'; diff --git a/packages/loot-core/src/mocks/setup.ts b/packages/loot-core/src/mocks/setup.ts index ec4293a7d5d..c6e34d3f92e 100644 --- a/packages/loot-core/src/mocks/setup.ts +++ b/packages/loot-core/src/mocks/setup.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as nativeFs from 'fs'; import * as fetchClient from '../platform/client/fetch'; diff --git a/packages/loot-core/src/mocks/spreadsheet.ts b/packages/loot-core/src/mocks/spreadsheet.ts index e6f2fed78a6..cdd02751c8a 100644 --- a/packages/loot-core/src/mocks/spreadsheet.ts +++ b/packages/loot-core/src/mocks/spreadsheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function makeSpreadsheet() { const cells = {}; return { diff --git a/packages/loot-core/src/mocks/util.ts b/packages/loot-core/src/mocks/util.ts index 484c1252e4e..f33299118a4 100644 --- a/packages/loot-core/src/mocks/util.ts +++ b/packages/loot-core/src/mocks/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { join, dirname, basename } from 'path'; import snapshotDiff from 'snapshot-diff'; diff --git a/packages/loot-core/src/platform/client/fetch/__mocks__/index.web.ts b/packages/loot-core/src/platform/client/fetch/__mocks__/index.web.ts index bbb71b50228..9ab5af5fe0e 100644 --- a/packages/loot-core/src/platform/client/fetch/__mocks__/index.web.ts +++ b/packages/loot-core/src/platform/client/fetch/__mocks__/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import type * as T from '..'; let listeners = new Map(); diff --git a/packages/loot-core/src/platform/client/fetch/index.browser.ts b/packages/loot-core/src/platform/client/fetch/index.browser.ts index 47482e7c819..66d2271a0ee 100644 --- a/packages/loot-core/src/platform/client/fetch/index.browser.ts +++ b/packages/loot-core/src/platform/client/fetch/index.browser.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import { captureException, captureBreadcrumb } from '../../exceptions'; diff --git a/packages/loot-core/src/platform/client/fetch/index.web.ts b/packages/loot-core/src/platform/client/fetch/index.web.ts index c37e18a26c5..83fb068843f 100644 --- a/packages/loot-core/src/platform/client/fetch/index.web.ts +++ b/packages/loot-core/src/platform/client/fetch/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import * as undo from '../undo'; diff --git a/packages/loot-core/src/platform/server/asyncStorage/index.electron.ts b/packages/loot-core/src/platform/server/asyncStorage/index.electron.ts index 22f3b8a0279..bca8ddf73b5 100644 --- a/packages/loot-core/src/platform/server/asyncStorage/index.electron.ts +++ b/packages/loot-core/src/platform/server/asyncStorage/index.electron.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as fs from 'fs'; import { join } from 'path'; diff --git a/packages/loot-core/src/platform/server/asyncStorage/index.testing.ts b/packages/loot-core/src/platform/server/asyncStorage/index.testing.ts index 38fdc091805..5f96009b4d0 100644 --- a/packages/loot-core/src/platform/server/asyncStorage/index.testing.ts +++ b/packages/loot-core/src/platform/server/asyncStorage/index.testing.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as T from '.'; const store = {}; diff --git a/packages/loot-core/src/platform/server/asyncStorage/index.web.ts b/packages/loot-core/src/platform/server/asyncStorage/index.web.ts index 6af2b01aee2..1243f97b666 100644 --- a/packages/loot-core/src/platform/server/asyncStorage/index.web.ts +++ b/packages/loot-core/src/platform/server/asyncStorage/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { getDatabase } from '../indexeddb'; import * as T from '.'; diff --git a/packages/loot-core/src/platform/server/connection/index.electron.ts b/packages/loot-core/src/platform/server/connection/index.electron.ts index 4f974477fd3..75e6a273106 100644 --- a/packages/loot-core/src/platform/server/connection/index.electron.ts +++ b/packages/loot-core/src/platform/server/connection/index.electron.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { runHandler, isMutating } from '../../../server/mutators'; import { captureException } from '../../exceptions'; diff --git a/packages/loot-core/src/platform/server/connection/index.testing.ts b/packages/loot-core/src/platform/server/connection/index.testing.ts index 80a1bc71c78..0d51ba13a78 100644 --- a/packages/loot-core/src/platform/server/connection/index.testing.ts +++ b/packages/loot-core/src/platform/server/connection/index.testing.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import type * as T from '.'; let events = []; diff --git a/packages/loot-core/src/platform/server/connection/index.web.ts b/packages/loot-core/src/platform/server/connection/index.web.ts index c1e3af987fd..6e2a37287ea 100644 --- a/packages/loot-core/src/platform/server/connection/index.web.ts +++ b/packages/loot-core/src/platform/server/connection/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { runHandler, isMutating } from '../../../server/mutators'; import { captureException } from '../../exceptions'; diff --git a/packages/loot-core/src/platform/server/fetch/index.electron.ts b/packages/loot-core/src/platform/server/fetch/index.electron.ts index 68d5289c6ac..5bdf155ce7e 100644 --- a/packages/loot-core/src/platform/server/fetch/index.electron.ts +++ b/packages/loot-core/src/platform/server/fetch/index.electron.ts @@ -1 +1,2 @@ +// @ts-strict-ignore export { default as fetch } from 'node-fetch'; diff --git a/packages/loot-core/src/platform/server/fs/index.electron.ts b/packages/loot-core/src/platform/server/fs/index.electron.ts index 58313cb8835..9108fbfe43f 100644 --- a/packages/loot-core/src/platform/server/fs/index.electron.ts +++ b/packages/loot-core/src/platform/server/fs/index.electron.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as fs from 'fs'; import * as path from 'path'; diff --git a/packages/loot-core/src/platform/server/fs/index.web.test.ts b/packages/loot-core/src/platform/server/fs/index.web.test.ts index d83f08f32c9..14960f50ddb 100644 --- a/packages/loot-core/src/platform/server/fs/index.web.test.ts +++ b/packages/loot-core/src/platform/server/fs/index.web.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import 'fake-indexeddb/auto'; import FDBFactory from 'fake-indexeddb/lib/FDBFactory'; diff --git a/packages/loot-core/src/platform/server/fs/index.web.ts b/packages/loot-core/src/platform/server/fs/index.web.ts index 75df4de412e..370a087d2d2 100644 --- a/packages/loot-core/src/platform/server/fs/index.web.ts +++ b/packages/loot-core/src/platform/server/fs/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { SQLiteFS } from 'absurd-sql'; import IndexedDBBackend from 'absurd-sql/dist/indexeddb-backend'; diff --git a/packages/loot-core/src/platform/server/fs/path-join.web.ts b/packages/loot-core/src/platform/server/fs/path-join.web.ts index 9620ba2b7f7..3486be7e980 100644 --- a/packages/loot-core/src/platform/server/fs/path-join.web.ts +++ b/packages/loot-core/src/platform/server/fs/path-join.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import type * as T from './path-join'; // This code is pulled from diff --git a/packages/loot-core/src/platform/server/fs/shared.ts b/packages/loot-core/src/platform/server/fs/shared.ts index 756bc578367..d9552ddb99c 100644 --- a/packages/loot-core/src/platform/server/fs/shared.ts +++ b/packages/loot-core/src/platform/server/fs/shared.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { join } from './path-join'; let documentDir; diff --git a/packages/loot-core/src/platform/server/indexeddb/index.web.ts b/packages/loot-core/src/platform/server/indexeddb/index.web.ts index 58f37165a43..65f2dc7c86c 100644 --- a/packages/loot-core/src/platform/server/indexeddb/index.web.ts +++ b/packages/loot-core/src/platform/server/indexeddb/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import type * as T from '.'; let openedDb = _openDatabase(); diff --git a/packages/loot-core/src/platform/server/sqlite/index.electron.ts b/packages/loot-core/src/platform/server/sqlite/index.electron.ts index 0374f34d8b5..02206a4cf13 100644 --- a/packages/loot-core/src/platform/server/sqlite/index.electron.ts +++ b/packages/loot-core/src/platform/server/sqlite/index.electron.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import SQL from 'better-sqlite3'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/loot-core/src/platform/server/sqlite/index.web.test.ts b/packages/loot-core/src/platform/server/sqlite/index.web.test.ts index 06790bdc612..0d21e18d8b1 100644 --- a/packages/loot-core/src/platform/server/sqlite/index.web.test.ts +++ b/packages/loot-core/src/platform/server/sqlite/index.web.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore // eslint-disable-next-line no-restricted-imports import { init, diff --git a/packages/loot-core/src/platform/server/sqlite/index.web.ts b/packages/loot-core/src/platform/server/sqlite/index.web.ts index e804b1b4165..bfd273d5283 100644 --- a/packages/loot-core/src/platform/server/sqlite/index.web.ts +++ b/packages/loot-core/src/platform/server/sqlite/index.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import initSqlJS, { type SqlJsStatic, type Database } from '@jlongster/sql.js'; let SQL: SqlJsStatic | null = null; diff --git a/packages/loot-core/src/server/__mocks__/post.ts b/packages/loot-core/src/server/__mocks__/post.ts index 89a961b872e..1eb6e4263a6 100644 --- a/packages/loot-core/src/server/__mocks__/post.ts +++ b/packages/loot-core/src/server/__mocks__/post.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export { handleRequest as post, handleRequestBinary as postBinary, diff --git a/packages/loot-core/src/server/accounts/export-to-csv.ts b/packages/loot-core/src/server/accounts/export-to-csv.ts index 838216cf209..79a838fa1ad 100644 --- a/packages/loot-core/src/server/accounts/export-to-csv.ts +++ b/packages/loot-core/src/server/accounts/export-to-csv.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import csvStringify from 'csv-stringify/lib/sync'; import { integerToAmount } from '../../shared/util'; diff --git a/packages/loot-core/src/server/accounts/link.ts b/packages/loot-core/src/server/accounts/link.ts index 891f03a315a..52e8d071b90 100644 --- a/packages/loot-core/src/server/accounts/link.ts +++ b/packages/loot-core/src/server/accounts/link.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import * as asyncStorage from '../../platform/server/asyncStorage'; diff --git a/packages/loot-core/src/server/accounts/ofx2json.ts b/packages/loot-core/src/server/accounts/ofx2json.ts index 526c805f320..2050936fbae 100644 --- a/packages/loot-core/src/server/accounts/ofx2json.ts +++ b/packages/loot-core/src/server/accounts/ofx2json.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { parseStringPromise } from 'xml2js'; import { dayFromDate } from '../../shared/months'; diff --git a/packages/loot-core/src/server/accounts/parse-file.test.ts b/packages/loot-core/src/server/accounts/parse-file.test.ts index 21628b3e6ab..b848988432f 100644 --- a/packages/loot-core/src/server/accounts/parse-file.test.ts +++ b/packages/loot-core/src/server/accounts/parse-file.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import { amountToInteger } from '../../shared/util'; diff --git a/packages/loot-core/src/server/accounts/parse-file.ts b/packages/loot-core/src/server/accounts/parse-file.ts index 89d52abdf5d..ef7df445177 100644 --- a/packages/loot-core/src/server/accounts/parse-file.ts +++ b/packages/loot-core/src/server/accounts/parse-file.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import csv2json from 'csv-parse/lib/sync'; import * as fs from '../../platform/server/fs'; diff --git a/packages/loot-core/src/server/accounts/payees.ts b/packages/loot-core/src/server/accounts/payees.ts index fe334901897..c225591aac0 100644 --- a/packages/loot-core/src/server/accounts/payees.ts +++ b/packages/loot-core/src/server/accounts/payees.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../db'; /* eslint-disable import/no-unused-modules */ diff --git a/packages/loot-core/src/server/accounts/qif2json.ts b/packages/loot-core/src/server/accounts/qif2json.ts index 17a91d51cc5..0e7a626c9b8 100644 --- a/packages/loot-core/src/server/accounts/qif2json.ts +++ b/packages/loot-core/src/server/accounts/qif2json.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore type Division = { category?: string; subcategory?: string; diff --git a/packages/loot-core/src/server/accounts/rules.test.ts b/packages/loot-core/src/server/accounts/rules.test.ts index 0db63167633..32389523355 100644 --- a/packages/loot-core/src/server/accounts/rules.test.ts +++ b/packages/loot-core/src/server/accounts/rules.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { parseDateString, rankRules, diff --git a/packages/loot-core/src/server/accounts/rules.ts b/packages/loot-core/src/server/accounts/rules.ts index 0869e6f618c..f532bc2c2a3 100644 --- a/packages/loot-core/src/server/accounts/rules.ts +++ b/packages/loot-core/src/server/accounts/rules.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as dateFns from 'date-fns'; import { diff --git a/packages/loot-core/src/server/accounts/sync.test.ts b/packages/loot-core/src/server/accounts/sync.test.ts index c3a5f66c7a5..e6aaae93613 100644 --- a/packages/loot-core/src/server/accounts/sync.test.ts +++ b/packages/loot-core/src/server/accounts/sync.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import snapshotDiff from 'snapshot-diff'; import * as monthUtils from '../../shared/months'; diff --git a/packages/loot-core/src/server/accounts/sync.ts b/packages/loot-core/src/server/accounts/sync.ts index 99d457d36ad..ae04efa6758 100644 --- a/packages/loot-core/src/server/accounts/sync.ts +++ b/packages/loot-core/src/server/accounts/sync.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as dateFns from 'date-fns'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/loot-core/src/server/accounts/title/index.ts b/packages/loot-core/src/server/accounts/title/index.ts index 6330ef8b7bc..880bf20b203 100644 --- a/packages/loot-core/src/server/accounts/title/index.ts +++ b/packages/loot-core/src/server/accounts/title/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore // Utilities import { lowerCaseSet } from './lower-case'; import { specials } from './specials'; diff --git a/packages/loot-core/src/server/accounts/transaction-rules.test.ts b/packages/loot-core/src/server/accounts/transaction-rules.test.ts index 2144740c7df..367da4b5761 100644 --- a/packages/loot-core/src/server/accounts/transaction-rules.test.ts +++ b/packages/loot-core/src/server/accounts/transaction-rules.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { q } from '../../shared/query'; import { runQuery } from '../aql'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/accounts/transaction-rules.ts b/packages/loot-core/src/server/accounts/transaction-rules.ts index 02860c0944f..a8afebff64f 100644 --- a/packages/loot-core/src/server/accounts/transaction-rules.ts +++ b/packages/loot-core/src/server/accounts/transaction-rules.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { currentDay, addDays, diff --git a/packages/loot-core/src/server/accounts/transactions.ts b/packages/loot-core/src/server/accounts/transactions.ts index 285fea2cbc1..5d6001eb587 100644 --- a/packages/loot-core/src/server/accounts/transactions.ts +++ b/packages/loot-core/src/server/accounts/transactions.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as connection from '../../platform/server/connection'; import { TransactionEntity } from '../../types/models'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/accounts/transfer.test.ts b/packages/loot-core/src/server/accounts/transfer.test.ts index f569098b3f5..ce77ce7e94a 100644 --- a/packages/loot-core/src/server/accounts/transfer.test.ts +++ b/packages/loot-core/src/server/accounts/transfer.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { expectSnapshotWithDiffer } from '../../mocks/util'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/accounts/transfer.ts b/packages/loot-core/src/server/accounts/transfer.ts index a9b31fc858f..f3c41e4346b 100644 --- a/packages/loot-core/src/server/accounts/transfer.ts +++ b/packages/loot-core/src/server/accounts/transfer.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../db'; async function getPayee(acct) { diff --git a/packages/loot-core/src/server/api-models.ts b/packages/loot-core/src/server/api-models.ts index e1741d68aaf..f3d146067df 100644 --- a/packages/loot-core/src/server/api-models.ts +++ b/packages/loot-core/src/server/api-models.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as models from './models'; export const accountModel = { diff --git a/packages/loot-core/src/server/api.ts b/packages/loot-core/src/server/api.ts index 5934d77ecc4..9c42e25a606 100644 --- a/packages/loot-core/src/server/api.ts +++ b/packages/loot-core/src/server/api.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { getClock } from '@actual-app/crdt'; import * as connection from '../platform/server/connection'; diff --git a/packages/loot-core/src/server/app.ts b/packages/loot-core/src/server/app.ts index a4de8ecdb80..fbb04a9110f 100644 --- a/packages/loot-core/src/server/app.ts +++ b/packages/loot-core/src/server/app.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import mitt from 'mitt'; import { captureException } from '../platform/exceptions'; diff --git a/packages/loot-core/src/server/aql/compiler.test.ts b/packages/loot-core/src/server/aql/compiler.test.ts index 53984efa656..8e1927f5e51 100644 --- a/packages/loot-core/src/server/aql/compiler.test.ts +++ b/packages/loot-core/src/server/aql/compiler.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { q } from '../../shared/query'; import { generateSQLWithState } from './compiler'; diff --git a/packages/loot-core/src/server/aql/compiler.ts b/packages/loot-core/src/server/aql/compiler.ts index 29b437ec38b..e5c6397bbc0 100644 --- a/packages/loot-core/src/server/aql/compiler.ts +++ b/packages/loot-core/src/server/aql/compiler.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore let _uid = 0; function resetUid() { _uid = 0; diff --git a/packages/loot-core/src/server/aql/exec.test.ts b/packages/loot-core/src/server/aql/exec.test.ts index 2dbee559e15..36b08bc457c 100644 --- a/packages/loot-core/src/server/aql/exec.test.ts +++ b/packages/loot-core/src/server/aql/exec.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import { q } from '../../shared/query'; diff --git a/packages/loot-core/src/server/aql/exec.ts b/packages/loot-core/src/server/aql/exec.ts index 9f0c4aa36ce..68e29a0c9e4 100644 --- a/packages/loot-core/src/server/aql/exec.ts +++ b/packages/loot-core/src/server/aql/exec.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../db'; import { compileQuery, defaultConstructQuery } from './compiler'; diff --git a/packages/loot-core/src/server/aql/schema-helpers.ts b/packages/loot-core/src/server/aql/schema-helpers.ts index 6ad2c96a53c..7bce6f5de5e 100644 --- a/packages/loot-core/src/server/aql/schema-helpers.ts +++ b/packages/loot-core/src/server/aql/schema-helpers.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { dayFromDate } from '../../shared/months'; import { toDateRepr, fromDateRepr } from '../models'; diff --git a/packages/loot-core/src/server/aql/schema/executors.test.ts b/packages/loot-core/src/server/aql/schema/executors.test.ts index 825ae8c94b2..82c68c2f8b1 100644 --- a/packages/loot-core/src/server/aql/schema/executors.test.ts +++ b/packages/loot-core/src/server/aql/schema/executors.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { setClock } from '@actual-app/crdt'; import fc from 'fast-check'; diff --git a/packages/loot-core/src/server/aql/schema/executors.ts b/packages/loot-core/src/server/aql/schema/executors.ts index 037d84e192e..d0180aad6fa 100644 --- a/packages/loot-core/src/server/aql/schema/executors.ts +++ b/packages/loot-core/src/server/aql/schema/executors.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../../db'; import { whereIn } from '../../db/util'; import { isAggregateQuery } from '../compiler'; diff --git a/packages/loot-core/src/server/aql/schema/index.test.ts b/packages/loot-core/src/server/aql/schema/index.test.ts index 1d9d4084a11..ce0e26a2c25 100644 --- a/packages/loot-core/src/server/aql/schema/index.test.ts +++ b/packages/loot-core/src/server/aql/schema/index.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../../db'; // This file doesn't test the schema code directly, it tests that diff --git a/packages/loot-core/src/server/aql/schema/index.ts b/packages/loot-core/src/server/aql/schema/index.ts index 1af6735bdc4..005eada6860 100644 --- a/packages/loot-core/src/server/aql/schema/index.ts +++ b/packages/loot-core/src/server/aql/schema/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { SchemaConfig } from '../compiler'; function f(type: string, opts?: Record) { diff --git a/packages/loot-core/src/server/aql/schema/run-query.ts b/packages/loot-core/src/server/aql/schema/run-query.ts index 403315bd8f0..89fa346561b 100644 --- a/packages/loot-core/src/server/aql/schema/run-query.ts +++ b/packages/loot-core/src/server/aql/schema/run-query.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Query, type QueryState } from '../../../shared/query'; import { runQuery as _runQuery, diff --git a/packages/loot-core/src/server/aql/views.test.ts b/packages/loot-core/src/server/aql/views.test.ts index e87760fcb70..817f4c334cc 100644 --- a/packages/loot-core/src/server/aql/views.test.ts +++ b/packages/loot-core/src/server/aql/views.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../db'; import { makeViews } from './views'; diff --git a/packages/loot-core/src/server/aql/views.ts b/packages/loot-core/src/server/aql/views.ts index d47c25c24f4..c47d90bf588 100644 --- a/packages/loot-core/src/server/aql/views.ts +++ b/packages/loot-core/src/server/aql/views.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { quoteAlias } from './compiler'; function selectFields(fields) { diff --git a/packages/loot-core/src/server/backups.test.ts b/packages/loot-core/src/server/backups.test.ts index e87ad62a9e5..d37ef8ee26f 100644 --- a/packages/loot-core/src/server/backups.test.ts +++ b/packages/loot-core/src/server/backups.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as dateFns from 'date-fns'; import { updateBackups } from './backups'; diff --git a/packages/loot-core/src/server/backups.ts b/packages/loot-core/src/server/backups.ts index 509ae831e09..a68d8f3d597 100644 --- a/packages/loot-core/src/server/backups.ts +++ b/packages/loot-core/src/server/backups.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as dateFns from 'date-fns'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/loot-core/src/server/bench.ts b/packages/loot-core/src/server/bench.ts index cb50c267e22..ec2ff9fc0e4 100644 --- a/packages/loot-core/src/server/bench.ts +++ b/packages/loot-core/src/server/bench.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +// @ts-strict-ignore import * as fs from 'fs'; import * as db from './db'; diff --git a/packages/loot-core/src/server/budget/actions.ts b/packages/loot-core/src/server/budget/actions.ts index e4b43718600..431db19a16d 100644 --- a/packages/loot-core/src/server/budget/actions.ts +++ b/packages/loot-core/src/server/budget/actions.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../shared/months'; import { safeNumber } from '../../shared/util'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/budget/base.test.ts b/packages/loot-core/src/server/budget/base.test.ts index 77e70974c7b..0724a264bd6 100644 --- a/packages/loot-core/src/server/budget/base.test.ts +++ b/packages/loot-core/src/server/budget/base.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../shared/months'; import * as db from '../db'; import * as sheet from '../sheet'; diff --git a/packages/loot-core/src/server/budget/base.ts b/packages/loot-core/src/server/budget/base.ts index 6d4ae6f21dd..a09a1eb3141 100644 --- a/packages/loot-core/src/server/budget/base.ts +++ b/packages/loot-core/src/server/budget/base.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../shared/months'; import { getChangedValues } from '../../shared/util'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/budget/cleanup-template.ts b/packages/loot-core/src/server/budget/cleanup-template.ts index 2c98e46e94b..43ab6ee2e2c 100644 --- a/packages/loot-core/src/server/budget/cleanup-template.ts +++ b/packages/loot-core/src/server/budget/cleanup-template.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Notification } from '../../client/state-types/notifications'; import * as monthUtils from '../../shared/months'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/budget/goals/goalsBy.ts b/packages/loot-core/src/server/budget/goals/goalsBy.ts index b3fee6554c0..a02abe20bb9 100644 --- a/packages/loot-core/src/server/budget/goals/goalsBy.ts +++ b/packages/loot-core/src/server/budget/goals/goalsBy.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../../shared/months'; import { amountToInteger } from '../../../shared/util'; import { isReflectBudget } from '../actions'; diff --git a/packages/loot-core/src/server/budget/goals/goalsPercentage.ts b/packages/loot-core/src/server/budget/goals/goalsPercentage.ts index ed0b3e2f16a..175d5efe560 100644 --- a/packages/loot-core/src/server/budget/goals/goalsPercentage.ts +++ b/packages/loot-core/src/server/budget/goals/goalsPercentage.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../../shared/months'; import * as db from '../../db'; import { getSheetValue } from '../actions'; diff --git a/packages/loot-core/src/server/budget/goals/goalsRemainder.ts b/packages/loot-core/src/server/budget/goals/goalsRemainder.ts index db06e3cdb36..3b7e1d3be8e 100644 --- a/packages/loot-core/src/server/budget/goals/goalsRemainder.ts +++ b/packages/loot-core/src/server/budget/goals/goalsRemainder.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export async function goalsRemainder( template, budgetAvailable, diff --git a/packages/loot-core/src/server/budget/goals/goalsSchedule.ts b/packages/loot-core/src/server/budget/goals/goalsSchedule.ts index f71a0f7f379..2b825b0a46c 100644 --- a/packages/loot-core/src/server/budget/goals/goalsSchedule.ts +++ b/packages/loot-core/src/server/budget/goals/goalsSchedule.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../../shared/months'; import { extractScheduleConds } from '../../../shared/schedules'; import * as db from '../../db'; diff --git a/packages/loot-core/src/server/budget/goals/goalsSimple.ts b/packages/loot-core/src/server/budget/goals/goalsSimple.ts index d761955db2e..ae3befaab48 100644 --- a/packages/loot-core/src/server/budget/goals/goalsSimple.ts +++ b/packages/loot-core/src/server/budget/goals/goalsSimple.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { amountToInteger } from '../../../shared/util'; export async function goalsSimple( diff --git a/packages/loot-core/src/server/budget/goals/goalsSpend.ts b/packages/loot-core/src/server/budget/goals/goalsSpend.ts index 252238a9504..ca03c0072c2 100644 --- a/packages/loot-core/src/server/budget/goals/goalsSpend.ts +++ b/packages/loot-core/src/server/budget/goals/goalsSpend.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../../shared/months'; import { amountToInteger } from '../../../shared/util'; import { getSheetValue } from '../actions'; diff --git a/packages/loot-core/src/server/budget/goals/goalsWeek.ts b/packages/loot-core/src/server/budget/goals/goalsWeek.ts index 7e4171cbd2a..6f05c1ce188 100644 --- a/packages/loot-core/src/server/budget/goals/goalsWeek.ts +++ b/packages/loot-core/src/server/budget/goals/goalsWeek.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../../shared/months'; import { amountToInteger } from '../../../shared/util'; diff --git a/packages/loot-core/src/server/budget/goaltemplates.ts b/packages/loot-core/src/server/budget/goaltemplates.ts index 256053eda4a..6813d00af8a 100644 --- a/packages/loot-core/src/server/budget/goaltemplates.ts +++ b/packages/loot-core/src/server/budget/goaltemplates.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Notification } from '../../client/state-types/notifications'; import * as monthUtils from '../../shared/months'; import { integerToAmount } from '../../shared/util'; diff --git a/packages/loot-core/src/server/budget/report.ts b/packages/loot-core/src/server/budget/report.ts index 9ddb8c2f266..5f63dc17543 100644 --- a/packages/loot-core/src/server/budget/report.ts +++ b/packages/loot-core/src/server/budget/report.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { safeNumber } from '../../shared/util'; import * as sheet from '../sheet'; import { resolveName } from '../spreadsheet/util'; diff --git a/packages/loot-core/src/server/budget/rollover.ts b/packages/loot-core/src/server/budget/rollover.ts index 83a2923280e..122c72fa943 100644 --- a/packages/loot-core/src/server/budget/rollover.ts +++ b/packages/loot-core/src/server/budget/rollover.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as monthUtils from '../../shared/months'; import { safeNumber } from '../../shared/util'; import * as sheet from '../sheet'; diff --git a/packages/loot-core/src/server/budget/util.ts b/packages/loot-core/src/server/budget/util.ts index 54f17cead40..edecbd109ab 100644 --- a/packages/loot-core/src/server/budget/util.ts +++ b/packages/loot-core/src/server/budget/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { safeNumber } from '../../shared/util'; import { number } from '../spreadsheet/globals'; diff --git a/packages/loot-core/src/server/cloud-storage.ts b/packages/loot-core/src/server/cloud-storage.ts index dfd607302f4..c4735c5ae06 100644 --- a/packages/loot-core/src/server/cloud-storage.ts +++ b/packages/loot-core/src/server/cloud-storage.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import AdmZip from 'adm-zip'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/loot-core/src/server/db/index.test.ts b/packages/loot-core/src/server/db/index.test.ts index 007269d56ff..85419ee577d 100644 --- a/packages/loot-core/src/server/db/index.test.ts +++ b/packages/loot-core/src/server/db/index.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from './index'; beforeEach(global.emptyDatabase()); diff --git a/packages/loot-core/src/server/db/index.ts b/packages/loot-core/src/server/db/index.ts index 2730363fece..f662cf3c7a0 100644 --- a/packages/loot-core/src/server/db/index.ts +++ b/packages/loot-core/src/server/db/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { makeClock, setClock, diff --git a/packages/loot-core/src/server/db/mappings.ts b/packages/loot-core/src/server/db/mappings.ts index 0f8f9653d3f..81b0c280db2 100644 --- a/packages/loot-core/src/server/db/mappings.ts +++ b/packages/loot-core/src/server/db/mappings.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { addSyncListener } from '../sync/index'; import * as db from './index'; diff --git a/packages/loot-core/src/server/db/sort.ts b/packages/loot-core/src/server/db/sort.ts index 86a41a78b6d..1a8b96378e1 100644 --- a/packages/loot-core/src/server/db/sort.ts +++ b/packages/loot-core/src/server/db/sort.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export const SORT_INCREMENT = 16384; function midpoint(items, to) { diff --git a/packages/loot-core/src/server/db/util.ts b/packages/loot-core/src/server/db/util.ts index 89ad16ec56e..c9814712e98 100644 --- a/packages/loot-core/src/server/db/util.ts +++ b/packages/loot-core/src/server/db/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export async function incrFetch( runQuery, terms, diff --git a/packages/loot-core/src/server/encryption-internals.ts b/packages/loot-core/src/server/encryption-internals.ts index b5ccfc62b45..202f12c692b 100644 --- a/packages/loot-core/src/server/encryption-internals.ts +++ b/packages/loot-core/src/server/encryption-internals.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import crypto from 'crypto'; const ENCRYPTION_ALGORITHM = 'aes-256-gcm' as const; diff --git a/packages/loot-core/src/server/encryption-internals.web.ts b/packages/loot-core/src/server/encryption-internals.web.ts index 729128b88e7..088f1dd3fa5 100644 --- a/packages/loot-core/src/server/encryption-internals.web.ts +++ b/packages/loot-core/src/server/encryption-internals.web.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore const ENCRYPTION_ALGORITHM = 'aes-256-gcm'; function browserAlgorithmName(name) { diff --git a/packages/loot-core/src/server/encryption.ts b/packages/loot-core/src/server/encryption.ts index 57bd5c72a8b..b4d398a4d6e 100644 --- a/packages/loot-core/src/server/encryption.ts +++ b/packages/loot-core/src/server/encryption.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import * as internals from './encryption-internals'; diff --git a/packages/loot-core/src/server/errors.ts b/packages/loot-core/src/server/errors.ts index a81a2a27bed..96606b4be2f 100644 --- a/packages/loot-core/src/server/errors.ts +++ b/packages/loot-core/src/server/errors.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore // TODO: normalize error types export class PostError extends Error { meta; diff --git a/packages/loot-core/src/server/filters/app.ts b/packages/loot-core/src/server/filters/app.ts index 6c528090de3..4e1c4fd790e 100644 --- a/packages/loot-core/src/server/filters/app.ts +++ b/packages/loot-core/src/server/filters/app.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import { parseConditionsOrActions } from '../accounts/transaction-rules'; diff --git a/packages/loot-core/src/server/importers/actual.ts b/packages/loot-core/src/server/importers/actual.ts index 5f1d3041321..31a4f40b590 100644 --- a/packages/loot-core/src/server/importers/actual.ts +++ b/packages/loot-core/src/server/importers/actual.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as fs from '../../platform/server/fs'; import * as sqlite from '../../platform/server/sqlite'; import * as cloudStorage from '../cloud-storage'; diff --git a/packages/loot-core/src/server/importers/index.ts b/packages/loot-core/src/server/importers/index.ts index a872e3e8d08..944b7945ac0 100644 --- a/packages/loot-core/src/server/importers/index.ts +++ b/packages/loot-core/src/server/importers/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { handlers } from '../main'; import { importActual } from './actual'; diff --git a/packages/loot-core/src/server/importers/ynab4.ts b/packages/loot-core/src/server/importers/ynab4.ts index 45dc7d2d6f8..010c9e981ec 100644 --- a/packages/loot-core/src/server/importers/ynab4.ts +++ b/packages/loot-core/src/server/importers/ynab4.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore // This is a special usage of the API because this package is embedded // into Actual itself. We only want to pull in the methods in that // case and ignore everything else; otherwise we'd be pulling in the diff --git a/packages/loot-core/src/server/importers/ynab5.ts b/packages/loot-core/src/server/importers/ynab5.ts index 8ea7ac63089..f9fb1337e0e 100644 --- a/packages/loot-core/src/server/importers/ynab5.ts +++ b/packages/loot-core/src/server/importers/ynab5.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore // This is a special usage of the API because this package is embedded // into Actual itself. We only want to pull in the methods in that // case and ignore everything else; otherwise we'd be pulling in the diff --git a/packages/loot-core/src/server/main.test.ts b/packages/loot-core/src/server/main.test.ts index a6d3b38a36a..4625011bc84 100644 --- a/packages/loot-core/src/server/main.test.ts +++ b/packages/loot-core/src/server/main.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { getClock, deserializeClock } from '@actual-app/crdt'; import { expectSnapshotWithDiffer } from '../mocks/util'; diff --git a/packages/loot-core/src/server/main.ts b/packages/loot-core/src/server/main.ts index 417e417260a..3a80926cdc8 100644 --- a/packages/loot-core/src/server/main.ts +++ b/packages/loot-core/src/server/main.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import './polyfills'; import * as injectAPI from '@actual-app/api/injected'; import * as CRDT from '@actual-app/crdt'; diff --git a/packages/loot-core/src/server/migrate/cli.ts b/packages/loot-core/src/server/migrate/cli.ts index 75cdf303c6e..bc3bdff7510 100755 --- a/packages/loot-core/src/server/migrate/cli.ts +++ b/packages/loot-core/src/server/migrate/cli.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node --trace-warnings +// @ts-strict-ignore import * as fs from 'fs'; import * as path from 'path'; diff --git a/packages/loot-core/src/server/migrate/migrations.test.ts b/packages/loot-core/src/server/migrate/migrations.test.ts index e3a166daf2d..23721fb8135 100644 --- a/packages/loot-core/src/server/migrate/migrations.test.ts +++ b/packages/loot-core/src/server/migrate/migrations.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as db from '../db'; import { diff --git a/packages/loot-core/src/server/migrate/migrations.ts b/packages/loot-core/src/server/migrate/migrations.ts index db8dbebf1bb..a34960d68e2 100644 --- a/packages/loot-core/src/server/migrate/migrations.ts +++ b/packages/loot-core/src/server/migrate/migrations.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore // We have to bundle in JS migrations manually to avoid having to `eval` // them which doesn't play well with CSP. There isn't great, and eventually // we can remove this migration. diff --git a/packages/loot-core/src/server/models.ts b/packages/loot-core/src/server/models.ts index fd419f20f69..3616d7cf92c 100644 --- a/packages/loot-core/src/server/models.ts +++ b/packages/loot-core/src/server/models.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function requiredFields(name, row, fields, update) { fields.forEach(field => { if (update) { diff --git a/packages/loot-core/src/server/mutators.ts b/packages/loot-core/src/server/mutators.ts index d7b60ea1e1c..abd44cf829e 100644 --- a/packages/loot-core/src/server/mutators.ts +++ b/packages/loot-core/src/server/mutators.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { captureException, captureBreadcrumb } from '../platform/exceptions'; import { sequential } from '../shared/async'; import { type HandlerFunctions, type Handlers } from '../types/handlers'; diff --git a/packages/loot-core/src/server/post.ts b/packages/loot-core/src/server/post.ts index dee9cde6438..cc6bc8f1385 100644 --- a/packages/loot-core/src/server/post.ts +++ b/packages/loot-core/src/server/post.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { fetch } from '../platform/server/fetch'; import { PostError } from './errors'; diff --git a/packages/loot-core/src/server/prefs.ts b/packages/loot-core/src/server/prefs.ts index 57e92cbfd1c..c2750409248 100644 --- a/packages/loot-core/src/server/prefs.ts +++ b/packages/loot-core/src/server/prefs.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Timestamp } from '@actual-app/crdt'; import * as fs from '../platform/server/fs'; diff --git a/packages/loot-core/src/server/rules/app.ts b/packages/loot-core/src/server/rules/app.ts index 29675666da3..62dd517d4dd 100644 --- a/packages/loot-core/src/server/rules/app.ts +++ b/packages/loot-core/src/server/rules/app.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { FIELD_TYPES as ruleFieldTypes } from '../../shared/rules'; import { type RuleEntity } from '../../types/models'; import { Condition, Action, rankRules } from '../accounts/rules'; diff --git a/packages/loot-core/src/server/rules/types/handlers.ts b/packages/loot-core/src/server/rules/types/handlers.ts index 721172c4848..95dfce095b8 100644 --- a/packages/loot-core/src/server/rules/types/handlers.ts +++ b/packages/loot-core/src/server/rules/types/handlers.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type RuleEntity, type TransactionEntity, diff --git a/packages/loot-core/src/server/schedules/app.test.ts b/packages/loot-core/src/server/schedules/app.test.ts index 1472633bcf8..7a8c2550fc5 100644 --- a/packages/loot-core/src/server/schedules/app.test.ts +++ b/packages/loot-core/src/server/schedules/app.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import MockDate from 'mockdate'; import { q } from '../../shared/query'; diff --git a/packages/loot-core/src/server/schedules/app.ts b/packages/loot-core/src/server/schedules/app.ts index 8b3cca93b5b..0b82e4248ff 100644 --- a/packages/loot-core/src/server/schedules/app.ts +++ b/packages/loot-core/src/server/schedules/app.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import deepEqual from 'deep-equal'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/loot-core/src/server/schedules/find-schedules.ts b/packages/loot-core/src/server/schedules/find-schedules.ts index 9b7e76c3e31..373a2bbe8ae 100644 --- a/packages/loot-core/src/server/schedules/find-schedules.ts +++ b/packages/loot-core/src/server/schedules/find-schedules.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/loot-core/src/server/schedules/types/handlers.ts b/packages/loot-core/src/server/schedules/types/handlers.ts index 293fcc24007..3cfa706d138 100644 --- a/packages/loot-core/src/server/schedules/types/handlers.ts +++ b/packages/loot-core/src/server/schedules/types/handlers.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { DiscoverScheduleEntity } from '../../../types/models'; export interface SchedulesHandlers { diff --git a/packages/loot-core/src/server/sheet.test.ts b/packages/loot-core/src/server/sheet.test.ts index c497db0ecb8..5d6903687ef 100644 --- a/packages/loot-core/src/server/sheet.test.ts +++ b/packages/loot-core/src/server/sheet.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { generateTransaction } from '../mocks'; import * as db from './db'; diff --git a/packages/loot-core/src/server/sheet.ts b/packages/loot-core/src/server/sheet.ts index ebb4f743d9d..65ce0e34ca5 100644 --- a/packages/loot-core/src/server/sheet.ts +++ b/packages/loot-core/src/server/sheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type Database } from 'better-sqlite3'; import { captureBreadcrumb } from '../platform/exceptions'; diff --git a/packages/loot-core/src/server/spreadsheet/graph-data-structure.ts b/packages/loot-core/src/server/spreadsheet/graph-data-structure.ts index 501a1339521..76fe2476215 100644 --- a/packages/loot-core/src/server/spreadsheet/graph-data-structure.ts +++ b/packages/loot-core/src/server/spreadsheet/graph-data-structure.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function Graph() { const graph = { addNode, diff --git a/packages/loot-core/src/server/spreadsheet/spreadsheet.test.ts b/packages/loot-core/src/server/spreadsheet/spreadsheet.test.ts index e73cfa425ba..2d96b2d77ad 100644 --- a/packages/loot-core/src/server/spreadsheet/spreadsheet.test.ts +++ b/packages/loot-core/src/server/spreadsheet/spreadsheet.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { generateTransaction } from '../../mocks'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/spreadsheet/spreadsheet.ts b/packages/loot-core/src/server/spreadsheet/spreadsheet.ts index 5088a03e902..4fbeacd436f 100644 --- a/packages/loot-core/src/server/spreadsheet/spreadsheet.ts +++ b/packages/loot-core/src/server/spreadsheet/spreadsheet.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import mitt from 'mitt'; import { compileQuery, runCompiledQuery, schema, schemaConfig } from '../aql'; diff --git a/packages/loot-core/src/server/spreadsheet/util.ts b/packages/loot-core/src/server/spreadsheet/util.ts index 9d59a8f4ecf..6fe44e4df73 100644 --- a/packages/loot-core/src/server/spreadsheet/util.ts +++ b/packages/loot-core/src/server/spreadsheet/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function unresolveName(name) { const idx = name.indexOf('!'); if (idx !== -1) { diff --git a/packages/loot-core/src/server/sync/encoder.ts b/packages/loot-core/src/server/sync/encoder.ts index 45999aa79c1..dacc675626b 100644 --- a/packages/loot-core/src/server/sync/encoder.ts +++ b/packages/loot-core/src/server/sync/encoder.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Timestamp, SyncProtoBuf } from '@actual-app/crdt'; import * as encryption from '../encryption'; diff --git a/packages/loot-core/src/server/sync/index.ts b/packages/loot-core/src/server/sync/index.ts index f73eb3adb7d..c2fa6e30168 100644 --- a/packages/loot-core/src/server/sync/index.ts +++ b/packages/loot-core/src/server/sync/index.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { serializeClock, deserializeClock, diff --git a/packages/loot-core/src/server/sync/make-test-message.ts b/packages/loot-core/src/server/sync/make-test-message.ts index bbafe573c0f..6878e41cac6 100644 --- a/packages/loot-core/src/server/sync/make-test-message.ts +++ b/packages/loot-core/src/server/sync/make-test-message.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { SyncProtoBuf } from '@actual-app/crdt'; import * as encryption from '../encryption'; diff --git a/packages/loot-core/src/server/sync/migrate.test.ts b/packages/loot-core/src/server/sync/migrate.test.ts index 9bb54f703d5..6959766b23f 100644 --- a/packages/loot-core/src/server/sync/migrate.test.ts +++ b/packages/loot-core/src/server/sync/migrate.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Timestamp } from '@actual-app/crdt'; import fc from 'fast-check'; diff --git a/packages/loot-core/src/server/sync/migrate.ts b/packages/loot-core/src/server/sync/migrate.ts index 8bfceabf475..804967e30af 100644 --- a/packages/loot-core/src/server/sync/migrate.ts +++ b/packages/loot-core/src/server/sync/migrate.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Timestamp } from '@actual-app/crdt'; import { Message, addSyncListener, applyMessages } from './index'; diff --git a/packages/loot-core/src/server/sync/repair.ts b/packages/loot-core/src/server/sync/repair.ts index e6c1e28fc94..2d94bd509b5 100644 --- a/packages/loot-core/src/server/sync/repair.ts +++ b/packages/loot-core/src/server/sync/repair.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { serializeClock, getClock, Timestamp, merkle } from '@actual-app/crdt'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/sync/reset.ts b/packages/loot-core/src/server/sync/reset.ts index 4ad32a3129e..c4b65bc6062 100644 --- a/packages/loot-core/src/server/sync/reset.ts +++ b/packages/loot-core/src/server/sync/reset.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { captureException } from '../../platform/exceptions'; import * as asyncStorage from '../../platform/server/asyncStorage'; import * as connection from '../../platform/server/connection'; diff --git a/packages/loot-core/src/server/sync/sync.property.test.ts b/packages/loot-core/src/server/sync/sync.property.test.ts index cbe5cefe01f..bc0424fb745 100644 --- a/packages/loot-core/src/server/sync/sync.property.test.ts +++ b/packages/loot-core/src/server/sync/sync.property.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { merkle, getClock, Timestamp } from '@actual-app/crdt'; import jsc, { type Arbitrary } from 'jsverify'; diff --git a/packages/loot-core/src/server/sync/sync.test.ts b/packages/loot-core/src/server/sync/sync.test.ts index 7ab2fdd7dc0..abbde91302c 100644 --- a/packages/loot-core/src/server/sync/sync.test.ts +++ b/packages/loot-core/src/server/sync/sync.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { getClock, Timestamp } from '@actual-app/crdt'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/tests/mockSyncServer.ts b/packages/loot-core/src/server/tests/mockSyncServer.ts index a1498219273..79994dc174a 100644 --- a/packages/loot-core/src/server/tests/mockSyncServer.ts +++ b/packages/loot-core/src/server/tests/mockSyncServer.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Clock, makeClock, diff --git a/packages/loot-core/src/server/tools/app.ts b/packages/loot-core/src/server/tools/app.ts index 4363275df78..31b48447a83 100644 --- a/packages/loot-core/src/server/tools/app.ts +++ b/packages/loot-core/src/server/tools/app.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { batchUpdateTransactions } from '../accounts/transactions'; import { createApp } from '../app'; import * as db from '../db'; diff --git a/packages/loot-core/src/server/undo.ts b/packages/loot-core/src/server/undo.ts index ac12e9c388c..42f312ad5fd 100644 --- a/packages/loot-core/src/server/undo.ts +++ b/packages/loot-core/src/server/undo.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { Timestamp } from '@actual-app/crdt'; import * as connection from '../platform/server/connection'; diff --git a/packages/loot-core/src/server/update.ts b/packages/loot-core/src/server/update.ts index fb58adb5b80..73f5a7fe62c 100644 --- a/packages/loot-core/src/server/update.ts +++ b/packages/loot-core/src/server/update.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import md5 from 'md5'; import { schema, schemaConfig, makeViews } from './aql'; diff --git a/packages/loot-core/src/server/util/budget-name.ts b/packages/loot-core/src/server/util/budget-name.ts index 2a1481ea293..3c94888f0da 100644 --- a/packages/loot-core/src/server/util/budget-name.ts +++ b/packages/loot-core/src/server/util/budget-name.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import * as fs from '../../platform/server/fs'; diff --git a/packages/loot-core/src/shared/arithmetic.ts b/packages/loot-core/src/shared/arithmetic.ts index 243afa7ed63..935a0b229fc 100644 --- a/packages/loot-core/src/shared/arithmetic.ts +++ b/packages/loot-core/src/shared/arithmetic.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { getNumberFormat } from './util'; function fail(state, msg) { diff --git a/packages/loot-core/src/shared/async.test.ts b/packages/loot-core/src/shared/async.test.ts index 31280cbc4ad..6f3c5e9fff9 100644 --- a/packages/loot-core/src/shared/async.test.ts +++ b/packages/loot-core/src/shared/async.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { sequential, once } from './async'; function timeout(n) { diff --git a/packages/loot-core/src/shared/async.ts b/packages/loot-core/src/shared/async.ts index 0e6a0c92200..70cf5150d60 100644 --- a/packages/loot-core/src/shared/async.ts +++ b/packages/loot-core/src/shared/async.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { type HandlerFunctions } from '../types/handlers'; export function sequential( diff --git a/packages/loot-core/src/shared/categories.ts b/packages/loot-core/src/shared/categories.ts index 54784b45e3a..9e2c4c190aa 100644 --- a/packages/loot-core/src/shared/categories.ts +++ b/packages/loot-core/src/shared/categories.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function addCategory(categoryGroups, cat) { return categoryGroups.map(group => { if (group.id === cat.cat_group) { diff --git a/packages/loot-core/src/shared/errors.ts b/packages/loot-core/src/shared/errors.ts index f7fc58536ae..c75424e1237 100644 --- a/packages/loot-core/src/shared/errors.ts +++ b/packages/loot-core/src/shared/errors.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function getUploadError({ reason, meta, diff --git a/packages/loot-core/src/shared/months.ts b/packages/loot-core/src/shared/months.ts index d314391a825..a481e0a038f 100644 --- a/packages/loot-core/src/shared/months.ts +++ b/packages/loot-core/src/shared/months.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import * as d from 'date-fns'; import memoizeOne from 'memoize-one'; diff --git a/packages/loot-core/src/shared/query.ts b/packages/loot-core/src/shared/query.ts index 1bd35e101d2..bf5dd06eeeb 100644 --- a/packages/loot-core/src/shared/query.ts +++ b/packages/loot-core/src/shared/query.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export type QueryState = { filterExpressions: Array; selectExpressions: Array; diff --git a/packages/loot-core/src/shared/rules.ts b/packages/loot-core/src/shared/rules.ts index aa0b855329c..b1e40f373fa 100644 --- a/packages/loot-core/src/shared/rules.ts +++ b/packages/loot-core/src/shared/rules.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { integerToAmount, amountToInteger, currencyToAmount } from './util'; // For now, this info is duplicated from the backend. Figure out how diff --git a/packages/loot-core/src/shared/schedules.ts b/packages/loot-core/src/shared/schedules.ts index 52d2e0092dd..23dbd9c4e8d 100644 --- a/packages/loot-core/src/shared/schedules.ts +++ b/packages/loot-core/src/shared/schedules.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import type { IRuleOptions } from '@rschedule/core'; import * as monthUtils from './months'; diff --git a/packages/loot-core/src/shared/test-helpers.ts b/packages/loot-core/src/shared/test-helpers.ts index 5cda8013519..ec73e05230a 100644 --- a/packages/loot-core/src/shared/test-helpers.ts +++ b/packages/loot-core/src/shared/test-helpers.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export let tracer = null; function timeout(promise, n) { diff --git a/packages/loot-core/src/shared/transactions.test.ts b/packages/loot-core/src/shared/transactions.test.ts index a256f9c6479..6d701ca0e2f 100644 --- a/packages/loot-core/src/shared/transactions.test.ts +++ b/packages/loot-core/src/shared/transactions.test.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import { TransactionEntity } from '../types/models'; diff --git a/packages/loot-core/src/shared/transactions.ts b/packages/loot-core/src/shared/transactions.ts index 84ca2166960..b642454e4e7 100644 --- a/packages/loot-core/src/shared/transactions.ts +++ b/packages/loot-core/src/shared/transactions.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { v4 as uuidv4 } from 'uuid'; import { type TransactionEntity } from '../types/models'; diff --git a/packages/loot-core/src/shared/util.ts b/packages/loot-core/src/shared/util.ts index 6c37ea0cf4d..a670b775c4c 100644 --- a/packages/loot-core/src/shared/util.ts +++ b/packages/loot-core/src/shared/util.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore export function last(arr: Array) { return arr[arr.length - 1]; } diff --git a/tsconfig.json b/tsconfig.json index 4f1515fa51f..b7a18248790 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,8 +15,6 @@ "downlevelIteration": true, // TODO: enable once every file is ts // "strict": true, - // TODO: enable once all issues fixed - // "strictNullChecks": true, "strictFunctionTypes": true, "noFallthroughCasesInSwitch": true, "skipLibCheck": true, @@ -30,7 +28,13 @@ "moduleResolution": "Node", "module": "ES2022", // Until/if we build using tsc - "noEmit": true + "noEmit": true, + "plugins": [ + { + "name": "typescript-strict-plugin", + "path": ["./packages"] + } + ] }, "include": ["packages/**/*"], "exclude": ["**/node_modules/*", "**/build/*", "**/lib-dist/*"], diff --git a/upcoming-release-notes/2230.md b/upcoming-release-notes/2230.md new file mode 100644 index 00000000000..d5b213e5086 --- /dev/null +++ b/upcoming-release-notes/2230.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +typescript: enable strict mode in most files; disable it in files that still need to be fixed diff --git a/yarn.lock b/yarn.lock index 260471c8147..c830d5ba143 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4926,6 +4926,7 @@ __metadata: react-refresh: "npm:^0.14.0" source-map-support: "npm:^0.5.21" typescript: "npm:^5.0.2" + typescript-strict-plugin: "npm:^2.2.2-beta.2" languageName: unknown linkType: soft @@ -5982,6 +5983,16 @@ __metadata: languageName: node linkType: hard +"chalk@npm:^3.0.0": + version: 3.0.0 + resolution: "chalk@npm:3.0.0" + dependencies: + ansi-styles: "npm:^4.1.0" + supports-color: "npm:^7.1.0" + checksum: 37f90b31fd655fb49c2bd8e2a68aebefddd64522655d001ef417e6f955def0ed9110a867ffc878a533f2dafea5f2032433a37c8a7614969baa7f8a1cd424ddfc + languageName: node + linkType: hard + "chalk@npm:^4.0.0, chalk@npm:^4.0.2, chalk@npm:^4.1.0, chalk@npm:^4.1.2": version: 4.1.2 resolution: "chalk@npm:4.1.2" @@ -8315,6 +8326,23 @@ __metadata: languageName: node linkType: hard +"execa@npm:^4.0.0": + version: 4.1.0 + resolution: "execa@npm:4.1.0" + dependencies: + cross-spawn: "npm:^7.0.0" + get-stream: "npm:^5.0.0" + human-signals: "npm:^1.1.1" + is-stream: "npm:^2.0.0" + merge-stream: "npm:^2.0.0" + npm-run-path: "npm:^4.0.0" + onetime: "npm:^5.1.0" + signal-exit: "npm:^3.0.2" + strip-final-newline: "npm:^2.0.0" + checksum: ed58e41fe424797f3d837c8fb622548eeb72fa03324f2676af95f806568904eb55f196127a097f87d4517cab524c169ece13e6c9e201867de57b089584864b8f + languageName: node + linkType: hard + "execa@npm:^5.0.0": version: 5.1.1 resolution: "execa@npm:5.1.1" @@ -8996,7 +9024,7 @@ __metadata: languageName: node linkType: hard -"get-stream@npm:^5.1.0": +"get-stream@npm:^5.0.0, get-stream@npm:^5.1.0": version: 5.2.0 resolution: "get-stream@npm:5.2.0" dependencies: @@ -9474,6 +9502,13 @@ __metadata: languageName: node linkType: hard +"human-signals@npm:^1.1.1": + version: 1.1.1 + resolution: "human-signals@npm:1.1.1" + checksum: 6a58224dffcef5588910b1028bda8623c9a7053460a1fe3367e61921a6b5f6b93aba30f323868a958f968d7de3f5f78421f11d4d9f7e9563b1bd2b00ed9a4deb + languageName: node + linkType: hard + "human-signals@npm:^2.1.0": version: 2.1.0 resolution: "human-signals@npm:2.1.0" @@ -12865,7 +12900,7 @@ __metadata: languageName: node linkType: hard -"npm-run-path@npm:^4.0.1": +"npm-run-path@npm:^4.0.0, npm-run-path@npm:^4.0.1": version: 4.0.1 resolution: "npm-run-path@npm:4.0.1" dependencies: @@ -13091,7 +13126,7 @@ __metadata: languageName: node linkType: hard -"ora@npm:^5.1.0": +"ora@npm:^5.1.0, ora@npm:^5.4.1": version: 5.4.1 resolution: "ora@npm:5.4.1" dependencies: @@ -16210,6 +16245,21 @@ __metadata: languageName: node linkType: hard +"typescript-strict-plugin@npm:^2.2.2-beta.2": + version: 2.2.2-beta.2 + resolution: "typescript-strict-plugin@npm:2.2.2-beta.2" + dependencies: + chalk: "npm:^3.0.0" + execa: "npm:^4.0.0" + ora: "npm:^5.4.1" + yargs: "npm:^16.2.0" + bin: + tsc-strict: dist/cli/tsc-strict/index.js + update-strict-comments: dist/cli/update-strict-comments/index.js + checksum: df56d36f984437a378e0b113de065817ab0228183a787a739d9eebe44573f23a2b90e7bc065e6d19003d0967442c48274dbd7c9b4397b4dee08b0bd1112ef233 + languageName: node + linkType: hard + "typescript@npm:^4.0.2, typescript@npm:^4.6.4": version: 4.9.5 resolution: "typescript@npm:4.9.5"