diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e6855f39..0df5844a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,4 +26,4 @@ We accept pull requests only in English. When a pull request is posted in a lang ### Coding style -Please use [eslint](.eslintrc.json) to verify that your contribution matches our coding style. Additionally we use [prettier](.prettierrc) to auto-format the code. All pull requests that don't match the coding style won't be accepted. +Please use [eslint](.eslintrc.json) to verify that your contribution matches our coding style. Additionally, we use [prettier](.prettierrc) to auto-format the code. All pull requests that don't match the coding style won't be accepted. diff --git a/src/main/Core/AppleScriptUtility/Contract/AppleScriptUtility.ts b/src/main/Core/AppleScriptUtility/Contract/AppleScriptUtility.ts index 68af9a55..1c8889ac 100644 --- a/src/main/Core/AppleScriptUtility/Contract/AppleScriptUtility.ts +++ b/src/main/Core/AppleScriptUtility/Contract/AppleScriptUtility.ts @@ -1,5 +1,5 @@ /** - * Offers methots to execute AppleScript commands. + * Offers methods to execute AppleScript commands. */ export interface AppleScriptUtility { /** diff --git a/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.test.ts b/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.test.ts index bbb65498..34bedd37 100644 --- a/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.test.ts +++ b/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.test.ts @@ -1,13 +1,13 @@ import type { App } from "electron"; import { describe, expect, it, vi } from "vitest"; -import { SingleInstaneLockModule } from "./SingleInstanceLockModule"; +import { SingleInstanceLockModule } from "./SingleInstanceLockModule"; -describe(SingleInstaneLockModule, () => { +describe(SingleInstanceLockModule, () => { it("should request single instance lock", () => { const requestSingleInstanceLockMock = vi.fn().mockReturnValue(true); const quickMock = vi.fn(); - SingleInstaneLockModule.bootstrap({ + SingleInstanceLockModule.bootstrap({ requestSingleInstanceLock: () => requestSingleInstanceLockMock(), quit: () => quickMock(), }); @@ -21,7 +21,7 @@ describe(SingleInstaneLockModule, () => { const quickMock = vi.fn(); - SingleInstaneLockModule.bootstrap({ + SingleInstanceLockModule.bootstrap({ requestSingleInstanceLock: () => requestSingleInstanceLockMock(), quit: () => quickMock(), }); diff --git a/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.ts b/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.ts index 12f96d04..93a45198 100644 --- a/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.ts +++ b/src/main/Core/SingleInstanceLock/SingleInstanceLockModule.ts @@ -1,6 +1,6 @@ import type { App } from "electron"; -export class SingleInstaneLockModule { +export class SingleInstanceLockModule { public static bootstrap(app: App) { if (!app.requestSingleInstanceLock()) { console.log("Quitting application. Reason: another instance is already running"); diff --git a/src/main/index.ts b/src/main/index.ts index dcc7c65f..f46562e4 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -7,7 +7,7 @@ import * as Extensions from "./Extensions"; (async () => { await Electron.app.whenReady(); - Core.SingleInstaneLockModule.bootstrap(Electron.app); + Core.SingleInstanceLockModule.bootstrap(Electron.app); Core.DockModule.bootstrap(Electron.app); const dependencyRegistry = Core.DependencyRegistryModule.bootstrap();