From accddf0b85c7a3f7ccb077aaa4f928825df31889 Mon Sep 17 00:00:00 2001 From: Mara Date: Wed, 22 May 2024 11:35:22 +0200 Subject: [PATCH] remove eslint exclude --- src/conversion/index.ts | 2 -- src/settings/modals/import_export.ts | 1 - src/utils/index.ts | 3 --- 3 files changed, 6 deletions(-) diff --git a/src/conversion/index.ts b/src/conversion/index.ts index c70208c0..4e50f43f 100644 --- a/src/conversion/index.ts +++ b/src/conversion/index.ts @@ -52,7 +52,6 @@ export function addHardLineBreak( } } -//eslint-disable-next-line @typescript-eslint/no-explicit-any function tagsToYaml(toAdd: string[], settings: GitHubPublisherSettings, yaml: any) { if (yaml.tag) { try { @@ -133,7 +132,6 @@ export function addToYaml( return text; } -//eslint-disable-next-line @typescript-eslint/no-explicit-any function titleToYaml(yaml: any, properties: MultiProperties, file: TFile) { const settings = properties.plugin.settings.upload.folderNote.addTitle; if (!settings) { diff --git a/src/settings/modals/import_export.ts b/src/settings/modals/import_export.ts index cf1b4eec..d05d8369 100644 --- a/src/settings/modals/import_export.ts +++ b/src/settings/modals/import_export.ts @@ -295,7 +295,6 @@ export class ExportModal extends Modal { output ); //open the file with default application - //eslint-disable-next-line (this.app as any).openWithDefaultApp( `${this.app.vault.configDir}/plugins/obsidian-mkdocs-publisher/._tempSettings.json` ); diff --git a/src/utils/index.ts b/src/utils/index.ts index d6ffb82d..6818748a 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -27,10 +27,7 @@ type LogsParameters = { /** * Create a notice message for the log - * @param args {LogsParameters} the settings and the error type - * @param {unknown[]} messages the message to display */ -//eslint-disable-next-line @typescript-eslint/no-explicit-any export function notif(args: LogsParameters, ...messages: unknown[]) { const { settings, e } = args; if (settings.plugin?.noticeError) {