diff --git a/.eslintrc.json b/.eslintrc.json index 48432407..d3d79a4c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,6 +5,6 @@ "jquery": true }, "globals": { - "mediaWiki": false + "mw": false } } diff --git a/modules/ext.scribunto.edit.js b/modules/ext.scribunto.edit.js index ff533899..4c0a602e 100644 --- a/modules/ext.scribunto.edit.js +++ b/modules/ext.scribunto.edit.js @@ -1,6 +1,6 @@ /* eslint-disable no-use-before-define */ -( function ( $, mw ) { +( function () { /** * Debug console @@ -395,4 +395,4 @@ } } ); -}( jQuery, mediaWiki ) ); +}() ); diff --git a/modules/ext.scribunto.errors.js b/modules/ext.scribunto.errors.js index 037008b9..097e0858 100644 --- a/modules/ext.scribunto.errors.js +++ b/modules/ext.scribunto.errors.js @@ -1,4 +1,4 @@ -( function ( $, mw ) { +( function () { mw.hook( 'wikipage.content' ).add( function () { var errors = mw.config.get( 'ScribuntoErrors' ), @@ -38,4 +38,4 @@ } ); } ); -}( jQuery, mediaWiki ) ); +}() ); diff --git a/package.json b/package.json index b54c4679..961b4f77 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "test": "grunt test" }, "devDependencies": { - "eslint-config-wikimedia": "0.5.0", + "eslint-config-wikimedia": "0.8.1", "grunt": "1.0.3", "grunt-banana-checker": "0.6.0", - "grunt-eslint": "20.1.0", + "grunt-eslint": "21.0.0", "grunt-jsonlint": "1.1.0", - "grunt-stylelint": "0.9.0", - "stylelint": "8.2.0", - "stylelint-config-wikimedia": "0.4.2" + "grunt-stylelint": "0.10.1", + "stylelint": "9.2.0", + "stylelint-config-wikimedia": "0.4.3" } }