X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=.eslintrc.json;h=c0767517ea6f1d6089a4c70adf900237a9ee88b4;hb=3f8d6fa8f5ccd3d4bbb3ae5d437298491cb9452d;hp=f08861759b81c6d8b021df7e944c71c7e15b469e;hpb=ebc85989184e601ff1662491c5232bb701751d74;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index f08861759b..c0767517ea 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,8 +8,6 @@ "module": false, "mw": false, "$": false, - "mediaWiki": false, - "jQuery": false, "OO": false }, "rules": { @@ -25,6 +23,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",