From fc7e33faed77cf6b15964a4a80d1aaab617f3bdf Mon Sep 17 00:00:00 2001 From: "Jules Sam. Randolph" Date: Wed, 2 Dec 2020 14:37:12 -0300 Subject: [PATCH] Comply with eslint rules --- src/components/RenderHTML.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/RenderHTML.js b/src/components/RenderHTML.js index ca064b3afc69..3f05c055736c 100644 --- a/src/components/RenderHTML.js +++ b/src/components/RenderHTML.js @@ -29,9 +29,10 @@ const EXTRA_FONTS = [ * Compute images maximum width from the available screen width. This function * is used by the HTML component in the default renderer for img tags to scale * down images that would otherwise overflow horizontally. - * + * * @param {number} contentWidth - The content width provided to the HTML * component. + * @returns {number} The minimum between contentWidth and MAX_IMG_DIMENSIONS */ function computeImagesMaxWidth(contentWidth) { return Math.min(MAX_IMG_DIMENSIONS, contentWidth); @@ -59,9 +60,7 @@ function AnchorRenderer({tnode, key, style}) { } function CodeRenderer({ - key, - style, - TDefaultRenderer, ...defaultRendererProps + key, style, TDefaultRenderer, ...defaultRendererProps }) { // We split wrapper and inner styles // "boxModelStyle" corresponds to border, margin, padding and backgroundColor