Skip to content

Commit

Permalink
Add eslint directives to suppress no-explicit-any warnings in site pa…
Browse files Browse the repository at this point in the history
…ge handling
  • Loading branch information
amitjoshi committed Dec 10, 2024
1 parent 32bb589 commit b0a1e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
Expand Down

0 comments on commit b0a1e9d

Please sign in to comment.