From ca45dc740412bbc35dba65398424870550b00c16 Mon Sep 17 00:00:00 2001 From: Kartik Mistry Date: Sat, 25 Nov 2017 08:33:21 +0530 Subject: [PATCH] Update eslint and stylelint and fixes Change-Id: I02e615e0efa95b673702f1ce8c957a37397ced13 --- package.json | 8 ++++---- resources/js/ext.uls.common.js | 16 ++++++++-------- resources/js/ext.uls.inputsettings.js | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 7d53d98b..e5a4f667 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "test": "grunt test" }, "devDependencies": { - "eslint-config-wikimedia": "0.4.0", + "eslint-config-wikimedia": "0.5.0", "grunt": "1.0.1", - "grunt-banana-checker": "0.5.0", - "grunt-eslint": "19.0.0", + "grunt-banana-checker": "0.6.0", + "grunt-eslint": "20.0.0", "grunt-jsonlint": "1.1.0", - "grunt-stylelint": "0.7.0", + "grunt-stylelint": "0.8.0", "stylelint": "7.8.0", "stylelint-config-wikimedia": "0.4.1" } diff --git a/resources/js/ext.uls.common.js b/resources/js/ext.uls.common.js index 265e2add..7aaecb8a 100644 --- a/resources/js/ext.uls.common.js +++ b/resources/js/ext.uls.common.js @@ -59,14 +59,14 @@ api = new mw.Api(); api.saveOption( 'language', language ) - .done( function () { - location.reload(); - } ) - .fail( function () { - // Set options failed. Maybe the user has logged off. - // Continue like anonymous user and set cookie. - changeLanguageAnon(); - } ); + .done( function () { + location.reload(); + } ) + .fail( function () { + // Set options failed. Maybe the user has logged off. + // Continue like anonymous user and set cookie. + changeLanguageAnon(); + } ); } ); mw.hook( 'mw.uls.interface.language.change' ).fire( language, deferred ); diff --git a/resources/js/ext.uls.inputsettings.js b/resources/js/ext.uls.inputsettings.js index bb1f6537..e18eeab9 100644 --- a/resources/js/ext.uls.inputsettings.js +++ b/resources/js/ext.uls.inputsettings.js @@ -178,7 +178,7 @@ id: imeId, value: imeId } ) - .prop( 'checked', selected ); + .prop( 'checked', selected ); if ( imeId === 'system' ) { name = $.i18n( 'ext-uls-disable-input-method' );