From 2a38b76589b757a9233e49641218016ed6eaa95c Mon Sep 17 00:00:00 2001 From: NovemLinguae <79697282+NovemLinguae@users.noreply.github.com> Date: Fri, 13 Dec 2024 00:33:54 -0800 Subject: [PATCH] eslint: fix no-undef in tests (#2130) manual fixes basically just hard-code all the existing globals into the "globals" section of .eslintrc.json --- tests/.eslintrc.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/.eslintrc.json b/tests/.eslintrc.json index e2d17abda..df1feabfb 100644 --- a/tests/.eslintrc.json +++ b/tests/.eslintrc.json @@ -5,6 +5,15 @@ "env": { "jest": true }, + "globals": { + "assert": "readonly", + "document": "readonly", + "jQuery": "readonly", + "Morebits": "readonly", + "mw": "readonly", + "Twinkle": "readonly", + "window": "readonly" + }, "root": true, "rules": { "array-bracket-spacing": "off", @@ -13,7 +22,6 @@ "object-curly-spacing": "off", "space-in-parens": "off", - "no-undef": "warn", "no-useless-escape": "warn" } }