Lint
This commit is contained in:
parent
59d9edb4b1
commit
5fb7d71395
3 changed files with 6 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
private registerEditorEvents() {
|
||||
private registerEditorEvents(): void {
|
||||
[
|
||||
this.app.workspace.on(
|
||||
"editor-change",
|
||||
|
|
@ -136,7 +136,7 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
_editor: Editor,
|
||||
info: MarkdownView | MarkdownFileInfo
|
||||
) => {
|
||||
const file = info.file;
|
||||
const { file } = info;
|
||||
if (file) {
|
||||
await this.client.syncLocallyUpdatedFile({
|
||||
relativePath: file.path
|
||||
|
|
|
|||
|
|
@ -86,7 +86,9 @@ export class LogsView extends ItemView {
|
|||
dropdown.value = this.minLogLevel;
|
||||
|
||||
dropdown.addEventListener("change", () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
||||
this.minLogLevel = dropdown.value as LogLevel;
|
||||
|
||||
this.logsContainer?.empty();
|
||||
this.logLineToElement.clear();
|
||||
this.updateView();
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import "./settings-tab.scss";
|
|||
|
||||
import type { App } from "obsidian";
|
||||
import { Notice, PluginSettingTab, Setting } from "obsidian";
|
||||
import VaultLinkPlugin from "src/vault-link-plugin";
|
||||
import type VaultLinkPlugin from "src/vault-link-plugin";
|
||||
import type { SyncClient, SyncSettings } from "sync-client";
|
||||
import { HistoryView } from "../history/history-view";
|
||||
import { LogsView } from "../logs/logs-view";
|
||||
import { StatusDescription } from "../status-description/status-description";
|
||||
import type { StatusDescription } from "../status-description/status-description";
|
||||
|
||||
export class SyncSettingsTab extends PluginSettingTab {
|
||||
private editedServerUri: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue