Fix "implicit-arrow-linebreak" ESLint violation

Change-Id: I61bbfb0762438927c0f7bd5b8e8bf1365861d909
This commit is contained in:
Bartosz Dziewoński 2024-06-04 18:58:25 +02:00
parent 81a1c990e0
commit cc096f1bb8
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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;
} );
};
}