Skip to content

Commit c95b264

Browse files
committed
fix lint issues
1 parent 363e7bd commit c95b264

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"preScripts": "lint,build",
4444
"skipPublish": true,
4545
"releaseAssets": "dist/*",
46-
"noVersionPrefix": true
46+
"noVersionPrefix": true,
47+
"branch": "master"
4748
}
4849
}

src/codeEditorView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import CodeFilesPlugin from "./codeFilesPlugin";
77
export class CodeEditorView extends TextFileView {
88
static i = 0;
99
id = CodeEditorView.i++;
10-
value: string = "";
10+
value = "";
1111
iframe: HTMLIFrameElement;
1212

1313
constructor(leaf: WorkspaceLeaf, private plugin: CodeFilesPlugin) {

src/createCodeFileModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class CreateCodeFileModal extends Modal {
6262
async complete() {
6363
this.close();
6464
const parent = (this.parent instanceof TFile ? this.parent.parent : this.parent) as TFolder;
65-
let newPath = `${parent.path}/${this.fileName}.${this.fileExtension}`;
65+
const newPath = `${parent.path}/${this.fileName}.${this.fileExtension}`;
6666
const existingFile = this.app.vault.getAbstractFileByPath(normalizePath(newPath));
6767
if (existingFile) {
6868
new Notice("File already exists");

0 commit comments

Comments
 (0)