mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +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",
|
||||
"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
|
||||
|
|
|
@ -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;
|
||||
} );
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue