mirror of
https://github.com/lukasbach/obsidian-code-files.git
synced 2026-07-22 07:40:30 +00:00
fix lint issues
This commit is contained in:
parent
363e7bd719
commit
c95b264dbd
3 changed files with 4 additions and 3 deletions
|
|
@ -43,6 +43,7 @@
|
|||
"preScripts": "lint,build",
|
||||
"skipPublish": true,
|
||||
"releaseAssets": "dist/*",
|
||||
"noVersionPrefix": true
|
||||
"noVersionPrefix": true,
|
||||
"branch": "master"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue