X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=.eslintrc.json;h=da5d409765ca64fe86a075e90cf5dc1d9736f1ac;hb=fd08137ebf8b34cb1a9711c34d6c4d0357aea5b7;hp=64b5ea783575a224be288bd14d6488faab5c7e40;hpb=96f40f152aa6070ea98f41e194e9704194f917f8;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 } }