Update wikimedia/password-blacklist to v0.1.4
[lhc/web/wiklou.git] / .eslintrc.json
index 4630e07..97f7c31 100644 (file)
@@ -1,62 +1,15 @@
 {
-       "extends": "wikimedia",
-       "env": {
-               "browser": true
-       },
+       "extends": [
+               "wikimedia/client",
+               "wikimedia/jquery"
+       ],
        "globals": {
                "require": false,
                "module": false,
                "mw": false,
-               "$": false,
-               "mediaWiki": false,
-               "jQuery": false,
                "OO": false
        },
        "rules": {
-               "no-restricted-properties": [
-                       2,
-                       {
-                               "object": "$",
-                               "property": "map",
-                               "message": "Please use Array.prototype.map instead"
-                       },
-                       {
-                               "object": "$",
-                               "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",
-                               "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"
-                       },
-                       {
-                               "object": "$",
-                               "property": "proxy",
-                               "message": "Please use Function.prototype.bind instead"
-                       }
-               ],
-               "dot-notation": 0,
                "max-len": 0
        }
 }