mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Fix "implicit-arrow-linebreak" ESLint violation
Change-Id: I61bbfb0762438927c0f7bd5b8e8bf1365861d909
This commit is contained in:
parent
81a1c990e0
commit
cc096f1bb8
|
@ -18,8 +18,7 @@
|
||||||
],
|
],
|
||||||
"indent": "off",
|
"indent": "off",
|
||||||
"no-jquery/no-html": "off",
|
"no-jquery/no-html": "off",
|
||||||
"no-jquery/no-parse-html-literal": "off",
|
"no-jquery/no-parse-html-literal": "off"
|
||||||
"implicit-arrow-linebreak": "warn"
|
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2018
|
"ecmaVersion": 2018
|
||||||
|
|
|
@ -138,9 +138,9 @@
|
||||||
*
|
*
|
||||||
* @inheritdoc ve#getDomElementSummary
|
* @inheritdoc ve#getDomElementSummary
|
||||||
*/
|
*/
|
||||||
ve.getDomElementSummary = ( element, includeHtml ) =>
|
ve.getDomElementSummary = function ( element, includeHtml ) {
|
||||||
// "Parent" method
|
// "Parent" method
|
||||||
getDomElementSummaryCore( element, includeHtml, ( name, value ) => {
|
return getDomElementSummaryCore( element, includeHtml, ( name, value ) => {
|
||||||
if ( name === 'data-mw' ) {
|
if ( name === 'data-mw' ) {
|
||||||
const obj = JSON.parse( value ),
|
const obj = JSON.parse( value ),
|
||||||
html = ve.getProp( obj, 'body', 'html' );
|
html = ve.getProp( obj, 'body', 'html' );
|
||||||
|
@ -151,4 +151,5 @@
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
} );
|
} );
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue