From 00fa7b1c8bbbac084719a5882b5c8b0667dfedc4 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 19 Feb 2025 20:52:05 +0000 Subject: [PATCH] Lint --- frontend/obsidian-plugin/src/views/history-view.ts | 1 - frontend/obsidian-plugin/tsconfig.json | 7 ++----- frontend/sync-client/package.json | 2 +- .../sync-client/src/sync-operations/document-lock.ts | 2 +- frontend/sync-client/tsconfig.json | 9 +++------ 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/frontend/obsidian-plugin/src/views/history-view.ts b/frontend/obsidian-plugin/src/views/history-view.ts index 3fe14256..a54f2d2d 100644 --- a/frontend/obsidian-plugin/src/views/history-view.ts +++ b/frontend/obsidian-plugin/src/views/history-view.ts @@ -61,7 +61,6 @@ export class HistoryView extends ItemView { } element.createEl("span", { - // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion text: entry.relativePath }); diff --git a/frontend/obsidian-plugin/tsconfig.json b/frontend/obsidian-plugin/tsconfig.json index c5247938..34954a99 100644 --- a/frontend/obsidian-plugin/tsconfig.json +++ b/frontend/obsidian-plugin/tsconfig.json @@ -6,9 +6,6 @@ "noImplicitAny": true, "moduleResolution": "bundler", "strictNullChecks": true, - "lib": [ - "DOM", - "ESNext" - ] + "lib": ["DOM", "ESNext"] } -} \ No newline at end of file +} diff --git a/frontend/sync-client/package.json b/frontend/sync-client/package.json index b4493c99..2312bc28 100644 --- a/frontend/sync-client/package.json +++ b/frontend/sync-client/package.json @@ -25,4 +25,4 @@ "webpack": "^5.98.0", "webpack-cli": "^6.0.1" } -} \ No newline at end of file +} diff --git a/frontend/sync-client/src/sync-operations/document-lock.ts b/frontend/sync-client/src/sync-operations/document-lock.ts index db657afc..55811662 100644 --- a/frontend/sync-client/src/sync-operations/document-lock.ts +++ b/frontend/sync-client/src/sync-operations/document-lock.ts @@ -1,4 +1,4 @@ -import { RelativePath } from "../database/document-metadata"; +import type { RelativePath } from "../database/document-metadata"; const locked = new Set(); const waiters = new Map void)[]>(); diff --git a/frontend/sync-client/tsconfig.json b/frontend/sync-client/tsconfig.json index e0875e31..184db366 100644 --- a/frontend/sync-client/tsconfig.json +++ b/frontend/sync-client/tsconfig.json @@ -7,9 +7,6 @@ "moduleResolution": "bundler", "strictNullChecks": true, "allowSyntheticDefaultImports": true, - "lib": [ - "DOM", - "ESNext" - ] - }, -} \ No newline at end of file + "lib": ["DOM", "ESNext"] + } +}