From 15c88427c4a69d6c7aa79c0523d9f60690ed0f20 Mon Sep 17 00:00:00 2001 From: amitjoshi Date: Wed, 27 Nov 2024 17:25:04 +0530 Subject: [PATCH] Add ESLint disable comments for any type usage in CreateSiteHelper and CreateSiteTypes --- .../powerpages/commands/create-site/CreateSiteHelper.ts | 1 + .../powerpages/commands/create-site/CreateSiteTypes.ts | 1 + 2 files changed, 2 insertions(+) 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 8bb9546c..77d04bc6 100644 --- a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts +++ b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts @@ -86,6 +86,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 }); }); diff --git a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts index 505e5c5f..30d8f358 100644 --- a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts +++ b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts @@ -21,6 +21,7 @@ export interface ICreateSiteOptions { export interface IPreviewSitePagesContentOptions { // siteName: string; + // eslint-disable-next-line @typescript-eslint/no-explicit-any sitePages: any[]; stream: vscode.ChatResponseStream; extensionContext: vscode.ExtensionContext;