Update eslint and stylelint and fixes

Change-Id: I02e615e0efa95b673702f1ce8c957a37397ced13
This commit is contained in:
Kartik Mistry
2017-11-25 08:33:21 +05:30
parent a353c5ab65
commit ca45dc7404
3 changed files with 13 additions and 13 deletions

View File

@@ -4,12 +4,12 @@
"test": "grunt test" "test": "grunt test"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.4.0", "eslint-config-wikimedia": "0.5.0",
"grunt": "1.0.1", "grunt": "1.0.1",
"grunt-banana-checker": "0.5.0", "grunt-banana-checker": "0.6.0",
"grunt-eslint": "19.0.0", "grunt-eslint": "20.0.0",
"grunt-jsonlint": "1.1.0", "grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.7.0", "grunt-stylelint": "0.8.0",
"stylelint": "7.8.0", "stylelint": "7.8.0",
"stylelint-config-wikimedia": "0.4.1" "stylelint-config-wikimedia": "0.4.1"
} }

View File

@@ -59,14 +59,14 @@
api = new mw.Api(); api = new mw.Api();
api.saveOption( 'language', language ) api.saveOption( 'language', language )
.done( function () { .done( function () {
location.reload(); location.reload();
} ) } )
.fail( function () { .fail( function () {
// Set options failed. Maybe the user has logged off. // Set options failed. Maybe the user has logged off.
// Continue like anonymous user and set cookie. // Continue like anonymous user and set cookie.
changeLanguageAnon(); changeLanguageAnon();
} ); } );
} ); } );
mw.hook( 'mw.uls.interface.language.change' ).fire( language, deferred ); mw.hook( 'mw.uls.interface.language.change' ).fire( language, deferred );

View File

@@ -178,7 +178,7 @@
id: imeId, id: imeId,
value: imeId value: imeId
} ) } )
.prop( 'checked', selected ); .prop( 'checked', selected );
if ( imeId === 'system' ) { if ( imeId === 'system' ) {
name = $.i18n( 'ext-uls-disable-input-method' ); name = $.i18n( 'ext-uls-disable-input-method' );