fix lint issues

This commit is contained in:
Lukas Bach 2023-04-06 23:42:36 +02:00
parent 363e7bd719
commit c95b264dbd
3 changed files with 4 additions and 3 deletions

View file

@ -43,6 +43,7 @@
"preScripts": "lint,build",
"skipPublish": true,
"releaseAssets": "dist/*",
"noVersionPrefix": true
"noVersionPrefix": true,
"branch": "master"
}
}

View file

@ -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) {

View file

@ -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");