diff --git a/resources/.eslintrc.json b/resources/.eslintrc.json index b100707db..fb3f93120 100644 --- a/resources/.eslintrc.json +++ b/resources/.eslintrc.json @@ -13,6 +13,7 @@ }, "rules": { "jsdoc/no-undefined-types": "off", + "max-len": "error", "mediawiki/class-doc": "off", "no-restricted-properties": [ "error", diff --git a/resources/skins.minerva.scripts/downloadPageAction.js b/resources/skins.minerva.scripts/downloadPageAction.js index 7d75bdaf7..4d88b96b2 100644 --- a/resources/skins.minerva.scripts/downloadPageAction.js +++ b/resources/skins.minerva.scripts/downloadPageAction.js @@ -113,7 +113,8 @@ // If all image downloads are taking longer to load then the MAX_PRINT_TIMEOUT // abort the spinner and print regardless. printSetTimeoutReference = setTimeout( doPrint, MAX_PRINT_TIMEOUT ); - ( loadAllImagesInPage || mobile.loadAllImagesInPage )().then( doPrintBeforeTimeout, doPrintBeforeTimeout ); + ( loadAllImagesInPage || mobile.loadAllImagesInPage )() + .then( doPrintBeforeTimeout, doPrintBeforeTimeout ); } } diff --git a/resources/skins.minerva.scripts/page-issues/index.js b/resources/skins.minerva.scripts/page-issues/index.js index 3c8dba045..69c64bb0f 100644 --- a/resources/skins.minerva.scripts/page-issues/index.js +++ b/resources/skins.minerva.scripts/page-issues/index.js @@ -164,8 +164,8 @@ function initPageIssues( overlayManager, pageHTMLParser ) { pageHTMLParser.$el.find( PageHTMLParser.HEADING_SELECTOR ).each( function ( i, headingEl ) { var $headingEl = $( headingEl ), - // section number is absent on protected pages, when this is the case use i, - // otherwise icon will not show (T340910) + // section number is absent on protected pages, when this is the case + // use i, otherwise icon will not show (T340910) sectionNum = $headingEl.find( '.edit-page' ).data( 'section' ) || i; // Note certain headings matched using