diff --git a/.eslintrc.json b/.eslintrc.json index 9fad52a..c0d39eb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,10 @@ { "extends": "wikimedia", "env": { - "browser": true, - "jquery": true + "browser": true + }, + "globals": { + "mw": false, + "$": false } } diff --git a/resources/main.js b/resources/main.js index 57ff859..ce8cbf1 100644 --- a/resources/main.js +++ b/resources/main.js @@ -1,7 +1,7 @@ /** * Timeless-specific scripts */ -jQuery( function ( $ ) { +$( function () { /** * Focus on search box when 'Tab' key is pressed once