From d03544c839894d9d786c04483c9e045501009928 Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Tue, 22 Feb 2022 10:49:35 +0100 Subject: [PATCH] fix linter error --- desktop/electron/src/serve.ts | 2 +- desktop/electron/tsconfig.json | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/desktop/electron/src/serve.ts b/desktop/electron/src/serve.ts index 8cc0590e..77fe73a3 100644 --- a/desktop/electron/src/serve.ts +++ b/desktop/electron/src/serve.ts @@ -2,7 +2,7 @@ import { BrowserWindow } from "electron"; import serve from "electron-serve"; import path from "path"; -let customScheme = serve({ directory: path.resolve(__dirname, "..", "local-app", "dist") }); +const customScheme = serve({ directory: path.resolve(__dirname, "..", "local-app", "dist") }); export async function loadCustomScheme(window: BrowserWindow) { await customScheme(window); diff --git a/desktop/electron/tsconfig.json b/desktop/electron/tsconfig.json index 78248218..b617ea42 100644 --- a/desktop/electron/tsconfig.json +++ b/desktop/electron/tsconfig.json @@ -43,11 +43,7 @@ /* Module Resolution Options */ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ "baseUrl": ".", /* Base directory to resolve non-absolute module names. */ - "paths": { - "_Controller/*": ["src/Controller/*"], - "_Model/*": ["src/Model/*"], - "_Enum/*": ["src/Enum/*"] - }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ // "types": [], /* Type declaration files to be included in compilation. */