Fix common typos in code
[lhc/web/wiklou.git] / .eslintrc.json
index 64b5ea7..da5d409 100644 (file)
                "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
        }
 }