From 9acdbde20cdd6cfa1e1319aa68c65da2480fcfd8 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Mon, 23 Dec 2024 10:13:06 +1030 Subject: [PATCH] Fix linting issues --- apps/smart-forms-app/src/vite-env.d.ts | 1 - .../utils/createFhirPathContext.ts | 2 +- .../src/components/FormComponents/ItemParts/ItemLabelText.tsx | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/smart-forms-app/src/vite-env.d.ts b/apps/smart-forms-app/src/vite-env.d.ts index f1cf6ad6..3bf0e8ed 100644 --- a/apps/smart-forms-app/src/vite-env.d.ts +++ b/apps/smart-forms-app/src/vite-env.d.ts @@ -31,7 +31,6 @@ interface ImportMetaEnv { readonly VITE_IN_APP_POPULATE: boolean; readonly VITE_SHOW_DEBUG_MODE: string; readonly VITE_PRESERVE_SYM_LINKS: boolean; - } interface ImportMeta { diff --git a/packages/sdc-populate/src/SDCPopulateQuestionnaireOperation/utils/createFhirPathContext.ts b/packages/sdc-populate/src/SDCPopulateQuestionnaireOperation/utils/createFhirPathContext.ts index c79fde2e..a1075e05 100644 --- a/packages/sdc-populate/src/SDCPopulateQuestionnaireOperation/utils/createFhirPathContext.ts +++ b/packages/sdc-populate/src/SDCPopulateQuestionnaireOperation/utils/createFhirPathContext.ts @@ -48,7 +48,7 @@ export async function createFhirPathContext( const { launchContexts, updatedReferenceContexts, updatedContainedBatchContexts } = await replaceFhirPathEmbeddings(parameters, questionnaire, terminologyRequestConfig); - let fhirPathContext: Record = {}; + const fhirPathContext: Record = {}; // Add launch contexts and contained batch contexts to contextMap for (const launchContext of launchContexts) { diff --git a/packages/smart-forms-renderer/src/components/FormComponents/ItemParts/ItemLabelText.tsx b/packages/smart-forms-renderer/src/components/FormComponents/ItemParts/ItemLabelText.tsx index 3c6615f4..a9494000 100644 --- a/packages/smart-forms-renderer/src/components/FormComponents/ItemParts/ItemLabelText.tsx +++ b/packages/smart-forms-renderer/src/components/FormComponents/ItemParts/ItemLabelText.tsx @@ -105,8 +105,6 @@ const ItemLabelText = memo(function ItemLabelText(props: ItemLabelTextProps) { ); } - const textFontWeight = itemLabelFontWeight != 'default' ? itemLabelFontWeight : 'normal'; - // parse regular text return (