From cc096f1bb89ea206ed671d8b2deb1f3cbb9fe345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 4 Jun 2024 18:58:25 +0200 Subject: [PATCH] Fix "implicit-arrow-linebreak" ESLint violation Change-Id: I61bbfb0762438927c0f7bd5b8e8bf1365861d909 --- modules/ve-mw/tests/.eslintrc.json | 3 +-- modules/ve-mw/tests/ve.test.utils.js | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ve-mw/tests/.eslintrc.json b/modules/ve-mw/tests/.eslintrc.json index f0920986db..0f04043cb0 100644 --- a/modules/ve-mw/tests/.eslintrc.json +++ b/modules/ve-mw/tests/.eslintrc.json @@ -18,8 +18,7 @@ ], "indent": "off", "no-jquery/no-html": "off", - "no-jquery/no-parse-html-literal": "off", - "implicit-arrow-linebreak": "warn" + "no-jquery/no-parse-html-literal": "off" }, "parserOptions": { "ecmaVersion": 2018 diff --git a/modules/ve-mw/tests/ve.test.utils.js b/modules/ve-mw/tests/ve.test.utils.js index 51157d25c4..43fde14214 100644 --- a/modules/ve-mw/tests/ve.test.utils.js +++ b/modules/ve-mw/tests/ve.test.utils.js @@ -138,9 +138,9 @@ * * @inheritdoc ve#getDomElementSummary */ - ve.getDomElementSummary = ( element, includeHtml ) => + ve.getDomElementSummary = function ( element, includeHtml ) { // "Parent" method - getDomElementSummaryCore( element, includeHtml, ( name, value ) => { + return getDomElementSummaryCore( element, includeHtml, ( name, value ) => { if ( name === 'data-mw' ) { const obj = JSON.parse( value ), html = ve.getProp( obj, 'body', 'html' ); @@ -151,4 +151,5 @@ } return value; } ); + }; }