diff --git a/scripts/hak/hakEnv.ts b/scripts/hak/hakEnv.ts index 8c592abe..ed2bff60 100644 --- a/scripts/hak/hakEnv.ts +++ b/scripts/hak/hakEnv.ts @@ -9,9 +9,9 @@ Please see LICENSE files in the repository root for full details. import path from "node:path"; import os from "node:os"; import { getElectronVersionFromInstalled } from "app-builder-lib/out/electron/electronVersion.js"; -import childProcess, { SpawnOptions } from "node:child_process"; +import childProcess, { type SpawnOptions } from "node:child_process"; -import { Arch, Target, TARGETS, getHost, isHostId, TargetId } from "./target.js"; +import { type Arch, type Target, TARGETS, getHost, isHostId, type TargetId } from "./target.js"; async function getRuntimeVersion(projectRoot: string): Promise { const electronVersion = await getElectronVersionFromInstalled(projectRoot); diff --git a/scripts/hak/link.ts b/scripts/hak/link.ts index dc74cfd1..c2c43ceb 100644 --- a/scripts/hak/link.ts +++ b/scripts/hak/link.ts @@ -10,8 +10,8 @@ import path from "node:path"; import os from "node:os"; import fsProm from "node:fs/promises"; -import HakEnv from "./hakEnv.js"; -import { DependencyInfo } from "./dep.js"; +import type HakEnv from "./hakEnv.js"; +import { type DependencyInfo } from "./dep.js"; export default async function link(hakEnv: HakEnv, moduleInfo: DependencyInfo): Promise { const yarnrc = path.join(hakEnv.projectRoot, ".yarnrc"); diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 2075193c..d3b13bea 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -5,11 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { BrowserWindow } from "electron"; -import Store from "electron-store"; -import AutoLaunch from "auto-launch"; +import { type BrowserWindow } from "electron"; -import { AppLocalization } from "../language-helper.js"; +import type Store from "electron-store"; +import type AutoLaunch from "auto-launch"; +import { type AppLocalization } from "../language-helper.js"; // global type extensions need to use var for whatever reason /* eslint-disable no-var */ diff --git a/src/electron-main.ts b/src/electron-main.ts index a1385a0e..470effbc 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -10,7 +10,7 @@ Please see LICENSE files in the repository root for full details. // Squirrel on windows starts the app with various flags as hooks to tell us when we've been installed/uninstalled etc. import "./squirrelhooks.js"; -import { app, BrowserWindow, Menu, autoUpdater, protocol, dialog, Input, Event, session } from "electron"; +import { app, BrowserWindow, Menu, autoUpdater, protocol, dialog, type Input, type Event, session } from "electron"; // eslint-disable-next-line n/file-extension-in-import import * as Sentry from "@sentry/electron/main"; import AutoLaunch from "auto-launch"; diff --git a/src/language-helper.ts b/src/language-helper.ts index 32f472a5..5eeb0fb5 100644 --- a/src/language-helper.ts +++ b/src/language-helper.ts @@ -6,7 +6,7 @@ Please see LICENSE files in the repository root for full details. */ import counterpart from "counterpart"; -import { TranslationKey as TKey } from "matrix-web-i18n"; +import { type TranslationKey as TKey } from "matrix-web-i18n"; import { dirname } from "node:path"; import { fileURLToPath } from "node:url"; diff --git a/src/vectormenu.ts b/src/vectormenu.ts index 555daaa5..d5bab05e 100644 --- a/src/vectormenu.ts +++ b/src/vectormenu.ts @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { app, shell, Menu, MenuItem, MenuItemConstructorOptions } from "electron"; +import { app, shell, Menu, type MenuItem, type MenuItemConstructorOptions } from "electron"; import { _t } from "./language-helper.js"; diff --git a/src/webcontents-handler.ts b/src/webcontents-handler.ts index e715f863..78dbfd79 100644 --- a/src/webcontents-handler.ts +++ b/src/webcontents-handler.ts @@ -13,13 +13,13 @@ import { shell, dialog, ipcMain, - NativeImage, - WebContents, - ContextMenuParams, - DownloadItem, - MenuItemConstructorOptions, - IpcMainEvent, - Event, + type NativeImage, + type WebContents, + type ContextMenuParams, + type DownloadItem, + type MenuItemConstructorOptions, + type IpcMainEvent, + type Event, } from "electron"; import url from "node:url"; import fs from "node:fs"; diff --git a/yarn.lock b/yarn.lock index db049d27..87940713 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3900,9 +3900,9 @@ eslint-plugin-import@^2.25.4: tsconfig-paths "^3.15.0" eslint-plugin-matrix-org@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-matrix-org/-/eslint-plugin-matrix-org-2.0.2.tgz#95b86b0f16704ab19740f7c3c62eae69e20365e6" - integrity sha512-cQy5Rjeq6uyu1mLXlPZwEJdyM0NmclrnEz68y792FSuuxzMyJNNYLGDQ5CkYW8H+PrD825HUFZ34pNXnjMOzOw== + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-matrix-org/-/eslint-plugin-matrix-org-2.1.0.tgz#9053726119f107154f5210665c2f84219425c190" + integrity sha512-YjVQ0qunzVV34tpUchLWhOrOalGfRLm0tclS4dPYnXS8Ui+p12o/YtRHt+26Mg5tJ0QH76HsGC0LJKLVLNoqfg== eslint-plugin-n@^17.12.0: version "17.15.1"