diff --git a/src/controllers/EditorController.ts b/src/controllers/EditorController.ts index af05c07..790a652 100644 --- a/src/controllers/EditorController.ts +++ b/src/controllers/EditorController.ts @@ -29,7 +29,7 @@ export class EditorController //set the configuration monaco.languages.setLanguageConfiguration("yarnSpinner", yarnSpinner.config); //set the completions NOT WORKING CURRENTLY - // @ts-expect-error + // @ts-expect-error Forge monaco.languages.registerCompletionItemProvider("yarnSpinner", completions); //monaco.editor.defineTheme("yarnSpinnerTheme", yarnSpinner.theme); diff --git a/src/main.ts b/src/main.ts index 1cfef47..e2a3eac 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,6 @@ */ import { app, BrowserWindow, Menu, ipcMain, shell, screen } from "electron"; -import * as path from "path"; import { openFile as YarnOpenFile } from "./controllers/fileSystem/fileOpenController"; import { writeFile as YarnWriteFile } from "./controllers/fileSystem/fileWriteController"; @@ -42,7 +41,7 @@ function createWindow() // and load the index.html of the app. - mainWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY); + mainWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY); } @@ -226,7 +225,7 @@ const template = [ } ]; -//@ts-expect-error +//@ts-expect-error Forge const menu = Menu.buildFromTemplate(template); Menu.setApplicationMenu(menu); diff --git a/src/renderer.ts b/src/renderer.ts index 57c9f7d..078c15c 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -17,8 +17,8 @@ // nodeIntegration is set to true in webPreferences. // Use preload.js to selectively enable features // needed in the renderer process. -import './index.css' -import './views/YSLogo.png' +import "./index.css"; +import "./views/YSLogo.png"; import { ipcRenderer } from "electron"; import { ThemeReader } from "./controllers/themeReader"; import { YarnFileManager } from "./models/YarnFileManager"; diff --git a/src/views/ts/nodeView.ts b/src/views/ts/nodeView.ts index b3d4760..9684cc6 100644 --- a/src/views/ts/nodeView.ts +++ b/src/views/ts/nodeView.ts @@ -541,9 +541,9 @@ export function changeNodeName(oldName: string, newName: string) : void //update the text // ! Type mismatch, findOne returns any shape - //@ts-expect-error + //@ts-expect-error Forge tempNode.findOne(".text").text(newName); - //@ts-expect-error + //@ts-expect-error Forge tempMiniNode.findOne(".text").text(newName); //update the name @@ -647,7 +647,7 @@ export function receiveJumps(jumps: NodeJump[]) : void console.log("from receiveJumps: source = " + jumps[i].getSource()); console.log("from receiveJumps: target = " + jumps[i].getTarget()); - //@ts-expect-error + //@ts-expect-error Forge connectNodes(jumps[i].getSource(), jumps[i].getTarget()); } } \ No newline at end of file