Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skb1129 authored May 14, 2024
1 parent f0c7e34 commit 71e5199
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
() =>
Expand Down
2 changes: 1 addition & 1 deletion packages/render-html/src/hooks/useTRenderEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const defaultConfig = {
ignoredStyles: [],
systemFonts: defaultSystemFonts,
tagsStyles: {}
}
};

/**
* @internal
Expand Down
2 changes: 0 additions & 2 deletions packages/render-html/src/renderChildren.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 71e5199

Please sign in to comment.