X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=.eslintrc.json;h=4630e071e53d38585b30bb149e8532483b262b0e;hb=a2001cd3bf25c0bbad7d7f7c755d04510c34de28;hp=fbf2a5a309635a73feb9a61ece7dee9addb1ed5d;hpb=b57de664637c8df6517a35c0ac80803b1fe4a8c2;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index fbf2a5a309..4630e071e5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,13 +1,15 @@ { "extends": "wikimedia", "env": { - "browser": true, - "jquery": true + "browser": true }, "globals": { "require": false, "module": false, + "mw": false, + "$": false, "mediaWiki": false, + "jQuery": false, "OO": false }, "rules": { @@ -23,6 +25,11 @@ "property": "inArray", "message": "Please use Array.prototype.indexOf instead" }, + { + "object": "$", + "property": "each", + "message": "Please consider different approaches to $.each, especially when using Array's. You can override this warning if necessary with eslint-disable-next-line." + }, { "object": "$", "property": "isArray", @@ -42,6 +49,11 @@ "object": "$", "property": "trim", "message": "Please use String.prototype.trim instead" + }, + { + "object": "$", + "property": "proxy", + "message": "Please use Function.prototype.bind instead" } ], "dot-notation": 0,