From f36e8d105a1bc1b89e8f831f3f14ba27917aff99 Mon Sep 17 00:00:00 2001 From: Miika Henttonen Date: Wed, 10 Jul 2024 12:53:17 +0300 Subject: [PATCH] Fix organize import prettier plugin --- prettier.config.mjs | 2 ++ src/index.ts | 6 +++--- tests/e2e.spec.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/prettier.config.mjs b/prettier.config.mjs index 543d350..b525ae5 100644 --- a/prettier.config.mjs +++ b/prettier.config.mjs @@ -1,3 +1,5 @@ +// @ts-check export default { endOfLine: "auto", + plugins: ["prettier-plugin-organize-imports"], }; diff --git a/src/index.ts b/src/index.ts index e72b876..41ef093 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,9 +6,9 @@ import { protocol, screen, } from "electron"; -import path from "path"; -import { stat } from "fs/promises"; -import fs from "fs"; +import fs from "node:fs"; +import { stat } from "node:fs/promises"; +import path from "node:path"; import { createApi, scanColor } from "./api"; import { Api, Db, Fs, Scanner } from "./musa-core-import"; diff --git a/tests/e2e.spec.ts b/tests/e2e.spec.ts index 8270eec..7a6bfdd 100644 --- a/tests/e2e.spec.ts +++ b/tests/e2e.spec.ts @@ -1,5 +1,5 @@ +import { expect, test } from "@playwright/test"; import { ElectronApplication, Page, _electron as electron } from "playwright"; -import { test, expect } from "@playwright/test"; let electronApp: ElectronApplication; let window: Page;