From 71e5199017f78d6f0b194a8941064e6860eee75a Mon Sep 17 00:00:00 2001 From: Surya Kant Bansal Date: Tue, 14 May 2024 22:07:44 +0530 Subject: [PATCH] fix: linting errors --- .../src/elements/useImageSpecifiedDimensions.ts | 9 +++++++-- packages/render-html/src/hooks/useTRenderEngine.ts | 2 +- packages/render-html/src/renderChildren.tsx | 2 -- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/render-html/src/elements/useImageSpecifiedDimensions.ts b/packages/render-html/src/elements/useImageSpecifiedDimensions.ts index ef945b09..37aa1eb6 100644 --- a/packages/render-html/src/elements/useImageSpecifiedDimensions.ts +++ b/packages/render-html/src/elements/useImageSpecifiedDimensions.ts @@ -71,8 +71,13 @@ function deriveSpecifiedDimensionsFromProps({ export default function useImageSpecifiedDimensions( props: UseIMGElementStateProps ) { - const { contentWidth, enableExperimentalPercentWidth = false, style = {}, width, height } = - props; + const { + contentWidth, + enableExperimentalPercentWidth = false, + style = {}, + width, + height + } = props; const flatStyle = useMemo(() => StyleSheet.flatten(style) || {}, [style]); const specifiedDimensions = useMemo( () => diff --git a/packages/render-html/src/hooks/useTRenderEngine.ts b/packages/render-html/src/hooks/useTRenderEngine.ts index 23db376b..3f5fec51 100644 --- a/packages/render-html/src/hooks/useTRenderEngine.ts +++ b/packages/render-html/src/hooks/useTRenderEngine.ts @@ -28,7 +28,7 @@ const defaultConfig = { ignoredStyles: [], systemFonts: defaultSystemFonts, tagsStyles: {} -} +}; /** * @internal diff --git a/packages/render-html/src/renderChildren.tsx b/packages/render-html/src/renderChildren.tsx index d5550b6b..be9ffd61 100644 --- a/packages/render-html/src/renderChildren.tsx +++ b/packages/render-html/src/renderChildren.tsx @@ -4,8 +4,6 @@ import TNodeRenderer from './TNodeRenderer'; import { TChildrenRendererProps } from './shared-types'; import collapseTopMarginForChild from './helpers/collapseTopMarginForChild'; -const empty = {}; - const mapCollapsibleChildren = ( propsForChildren: TChildrenRendererProps['propsForChildren'], renderChild: TChildrenRendererProps['renderChild'],