diff --git a/.eslintrc.json b/.eslintrc.json index 9fad52a..2435bff 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,10 @@ { "extends": "wikimedia", "env": { - "browser": true, - "jquery": true + "browser": true + }, + "globals": { + "$": false, + "mw": false } } diff --git a/collapsibleTabs.js b/collapsibleTabs.js index 33e8967..b804815 100644 --- a/collapsibleTabs.js +++ b/collapsibleTabs.js @@ -3,7 +3,7 @@ * * @class jQuery.plugin.collapsibleTabs */ -( function ( $ ) { +( function () { var isRTL = document.documentElement.dir === 'rtl', boundEvent = false, rAF = window.requestAnimationFrame || setTimeout; @@ -228,4 +228,4 @@ * @mixins jQuery.plugin.collapsibleTabs */ -}( jQuery ) ); +}() ); diff --git a/vector.js b/vector.js index 3b513f9..4e8c5a0 100644 --- a/vector.js +++ b/vector.js @@ -1,7 +1,7 @@ /** * Vector-specific scripts */ -jQuery( function ( $ ) { +$( function () { /** * Collapsible tabs