X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=.eslintrc.json;h=da5d409765ca64fe86a075e90cf5dc1d9736f1ac;hb=504707af186e3b8d286a8455845d56f6f7362e24;hp=844895d12c1eb0264af7e1fa4d0b17c1b8da44e9;hpb=0ada062ce62a261e55eb2bfbe9c6f74ffbaa05e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index 844895d12c..da5d409765 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,6 +11,34 @@ "OO": false }, "rules": { + "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 }