X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=.eslintrc.json;h=c0767517ea6f1d6089a4c70adf900237a9ee88b4;hb=690f563edc1c85a1ce0b07e3c2a6b61bb21cea46;hp=8f2dace87c84a87636aafd33592a549dea52b9c8;hpb=91f950d6b0677166134bc58eb487943a63f97b00;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index 8f2dace87c..c0767517ea 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,8 +8,6 @@ "module": false, "mw": false, "$": false, - "mediaWiki": false, - "jQuery": false, "OO": false }, "rules": { @@ -20,6 +18,16 @@ "property": "map", "message": "Please use Array.prototype.map instead" }, + { + "object": "$", + "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", @@ -39,6 +47,11 @@ "object": "$", "property": "trim", "message": "Please use String.prototype.trim instead" + }, + { + "object": "$", + "property": "proxy", + "message": "Please use Function.prototype.bind instead" } ], "dot-notation": 0,