X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=.eslintrc.json;h=da5d409765ca64fe86a075e90cf5dc1d9736f1ac;hb=6ff469e57f663474d5f203b468b0eca9b88a4345;hp=64b5ea783575a224be288bd14d6488faab5c7e40;hpb=74c02a0d5019d3228eff05006565e857c8d56c75;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index 64b5ea7835..da5d409765 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,6 +11,35 @@ "OO": false }, "rules": { - "dot-notation": 0 + "no-restricted-properties": [ + 2, + { + "object": "$", + "property": "map", + "message": "Please use Array.prototype.map instead" + }, + { + "object": "$", + "property": "isArray", + "message": "Please use Array.isArray instead" + }, + { + "object": "$", + "property": "isFunction", + "message": "Please use typeof (e.g. typeof e === 'function') instead" + }, + { + "object": "$", + "property": "grep", + "message": "Please use Array.prototype.filter instead" + }, + { + "object": "$", + "property": "trim", + "message": "Please use String.prototype.trim instead" + } + ], + "dot-notation": 0, + "max-len": 0 } }