From c95b264dbd9a0f1566febf6a4bf7d85b49f345df Mon Sep 17 00:00:00 2001 From: Lukas Bach Date: Thu, 6 Apr 2023 23:42:36 +0200 Subject: [PATCH] fix lint issues --- package.json | 3 ++- src/codeEditorView.ts | 2 +- src/createCodeFileModal.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f453ca5..3a174f3 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "preScripts": "lint,build", "skipPublish": true, "releaseAssets": "dist/*", - "noVersionPrefix": true + "noVersionPrefix": true, + "branch": "master" } } diff --git a/src/codeEditorView.ts b/src/codeEditorView.ts index 1a0af0b..8b630ca 100644 --- a/src/codeEditorView.ts +++ b/src/codeEditorView.ts @@ -7,7 +7,7 @@ import CodeFilesPlugin from "./codeFilesPlugin"; export class CodeEditorView extends TextFileView { static i = 0; id = CodeEditorView.i++; - value: string = ""; + value = ""; iframe: HTMLIFrameElement; constructor(leaf: WorkspaceLeaf, private plugin: CodeFilesPlugin) { diff --git a/src/createCodeFileModal.ts b/src/createCodeFileModal.ts index feec3eb..1c155cf 100644 --- a/src/createCodeFileModal.ts +++ b/src/createCodeFileModal.ts @@ -62,7 +62,7 @@ export class CreateCodeFileModal extends Modal { async complete() { this.close(); const parent = (this.parent instanceof TFile ? this.parent.parent : this.parent) as TFolder; - let newPath = `${parent.path}/${this.fileName}.${this.fileExtension}`; + const newPath = `${parent.path}/${this.fileName}.${this.fileExtension}`; const existingFile = this.app.vault.getAbstractFileByPath(normalizePath(newPath)); if (existingFile) { new Notice("File already exists");