X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=.eslintrc.json;h=c0767517ea6f1d6089a4c70adf900237a9ee88b4;hb=227eed85ed3f6e62122ce37e71491e19c6947934;hp=f7a79ac2618e399bf7d7f43948b8834863c4d1ad;hpb=5061f291f34420ce6278badbd6180549c9a71eff;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index f7a79ac261..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", @@ -44,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,