From 8b7b6cdc7f865d700fe5d9b03c8d9f0703dd3767 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 13:49:49 +0300 Subject: [PATCH] fix: Eslint --- .../createPseudoModulesInfo.ts | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 85ade1938..8fbbe9ebb 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -84,19 +84,21 @@ async function transformFiles(sapui5Version: string) { const {enums} = metadataProvider.getModel(); - const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { + const groupedEnums = Object.keys(enums) + .reduce((acc: Record, enumKey: string) => { // Filter only real pseudo modules i.e. defined within library.js files - if (!pseudoModuleNames[enumKey]) { - return acc; - } + if (!pseudoModuleNames[enumKey]) { + return acc; + } - const curEnum = enums[enumKey]; + const curEnum = enums[enumKey]; - acc[curEnum.library] = acc[curEnum.library] ?? []; - acc[curEnum.library].push({enum: curEnum, export: pseudoModuleNames[enumKey]}); + acc[curEnum.library] = acc[curEnum.library] ?? []; + acc[curEnum.library].push( + {enum: curEnum, export: pseudoModuleNames[enumKey]}); - return acc; - }, Object.create(null) as Record); + return acc; + }, Object.create(null) as Record); await addOverrides(groupedEnums); } @@ -143,7 +145,7 @@ function buildJSDoc(enumEntry: UI5Enum | UI5EnumValue, indent = "") { return jsDocBuilder.join("\n"); } -async function addOverrides(enums: Record) { +async function addOverrides(enums: Record) { const indexFilesImports: string[] = []; for (const libName of Object.keys(enums)) {