From b0a1e9d934c9ede8c30b814f1e156ca5f28996d4 Mon Sep 17 00:00:00 2001 From: amitjoshi Date: Tue, 10 Dec 2024 14:12:21 +0530 Subject: [PATCH] Add eslint directives to suppress no-explicit-any warnings in site page handling --- .../powerpages/PowerPagesChatParticipantUtils.ts | 1 + .../powerpages/commands/create-site/CreateSiteHelper.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/common/chat-participants/powerpages/PowerPagesChatParticipantUtils.ts b/src/common/chat-participants/powerpages/PowerPagesChatParticipantUtils.ts index 1219039f..8fd130f7 100644 --- a/src/common/chat-participants/powerpages/PowerPagesChatParticipantUtils.ts +++ b/src/common/chat-participants/powerpages/PowerPagesChatParticipantUtils.ts @@ -135,6 +135,7 @@ export function registerButtonCommands() { vscode.commands.registerCommand(CREATE_SITE_BTN_CMD, async (siteName: string, sitePages, envList, contentProvider: EditableFileSystemProvider, isCreateSiteInputsReceived) => { if (!isCreateSiteInputsReceived) { //Update Page Content will be used for the site creation + // eslint-disable-next-line @typescript-eslint/no-explicit-any sitePages.map((page: any) => { return { ...page, diff --git a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts index d4a0c82e..f92d76d6 100644 --- a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts +++ b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts @@ -98,6 +98,7 @@ function previewSitePagesContent( try { const sitePagesContent: { name: string; content: string }[] = []; + // eslint-disable-next-line @typescript-eslint/no-explicit-any sitePages.forEach((page: any) => { sitePagesContent.push({ name: page.metadata.pageTitle, content: page.code }); });