Merge "Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy"
[lhc/web/wiklou.git] / .eslintrc.json
index f088617..c076751 100644 (file)
@@ -8,8 +8,6 @@
                "module": false,
                "mw": false,
                "$": false,
-               "mediaWiki": false,
-               "jQuery": false,
                "OO": false
        },
        "rules": {
                                "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",