build: Update devDependencies

eslint-config-wikimedia   0.8.1  →   0.9.0
 grunt-contrib-watch       1.0.0  →   1.1.0
 grunt-stylelint          0.10.0  →  0.10.1

Change-Id: I3c8ad96f006ab4501e30d0884ae620b30f23fca8
This commit is contained in:
Ed Sanders 2018-11-27 12:20:16 +00:00
parent 6627078c08
commit dc5077dbae
3 changed files with 8 additions and 35 deletions

View File

@ -1,13 +1,12 @@
{ {
"root": true, "root": true,
"extends": "wikimedia", "extends": [
"env": { "wikimedia/client",
"browser": true "wikimedia/jquery"
}, ],
"globals": { "globals": {
"OO": false, "OO": false,
"mw": false, "mw": false,
"$": false,
"Hogan": false, "Hogan": false,
"require": false "require": false
}, },
@ -18,31 +17,6 @@
"property": "noop", "property": "noop",
"message": "Use function() {}" "message": "Use function() {}"
}, },
{
"object": "$",
"property": "isFunction",
"message": "Please use typeof"
},
{
"object": "$",
"property": "map",
"message": "Please use Array.prototype.map instead"
},
{
"object": "$",
"property": "isArray",
"message": "Please use Array.isArray instead"
},
{
"object": "$",
"property": "grep",
"message": "Please use Array.prototype.filter instead"
},
{
"object": "$",
"property": "trim",
"message": "Please use String.prototype.trim instead"
},
{ {
"property": "done", "property": "done",
"message": "The method `done` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`." "message": "The method `done` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."

View File

@ -6,15 +6,14 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.8.1", "eslint-config-wikimedia": "0.9.0",
"eslint-plugin-qunit": "3.3.1",
"grunt": "1.0.3", "grunt": "1.0.3",
"grunt-banana-checker": "0.6.0", "grunt-banana-checker": "0.6.0",
"grunt-contrib-watch": "1.0.0", "grunt-contrib-watch": "1.1.0",
"grunt-eslint": "21.0.0", "grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0", "grunt-jsonlint": "1.1.0",
"grunt-notify": "0.4.5", "grunt-notify": "0.4.5",
"grunt-stylelint": "0.10.0", "grunt-stylelint": "0.10.1",
"jsdoc": "3.5.5", "jsdoc": "3.5.5",
"pre-commit": "1.2.2", "pre-commit": "1.2.2",
"stylelint-config-wikimedia": "0.5.0", "stylelint-config-wikimedia": "0.5.0",

View File

@ -107,7 +107,7 @@
var self = this, var self = this,
mainMenu = this.options.mainMenu; mainMenu = this.options.mainMenu;
this.$el.on( 'click', $.proxy( this.onClickBadge, this ) ); this.$el.on( 'click', this.onClickBadge.bind( this ) );
this.options.overlayManager.add( /^\/notifications$/, function () { this.options.overlayManager.add( /^\/notifications$/, function () {
return self._loadNotificationOverlay().then( function ( overlay ) { return self._loadNotificationOverlay().then( function ( overlay ) {
mainMenu.openNavigationDrawer( 'secondary' ); mainMenu.openNavigationDrawer( 'secondary' );