From fd43701de2605c9a1f0c48f2721963c197cde48c Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 4 Oct 2019 14:42:14 +0100 Subject: [PATCH] eslint: Remove unused prefer-template rule; use proper globals values Change-Id: If98be563304baa46a746d78c94dd8945f94d545c --- .eslintrc.json | 19 +++++++++---------- build/.eslintrc.json | 3 +-- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1f4cca9655..cc2402c311 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,20 +5,19 @@ "wikimedia/jquery" ], "globals": { - "ve": true, - "VisualEditorSupportCheck": false, - "OO": false, - "unicodeJS": false, - "RangeFix": false, - "Papa": false, - "mw": false, - "require": false + "ve": "readonly", + "VisualEditorSupportCheck": "readonly", + "OO": "readonly", + "unicodeJS": "readonly", + "RangeFix": "readonly", + "Papa": "readonly", + "mw": "readonly", + "require": "readonly" }, "rules": { "no-jquery/no-hide": "error", "no-jquery/no-show": "error", "no-jquery/no-toggle": "error", - "max-len": "off", - "prefer-template": "off" + "max-len": "off" } } diff --git a/build/.eslintrc.json b/build/.eslintrc.json index b210dd94b4..c63d918a9a 100644 --- a/build/.eslintrc.json +++ b/build/.eslintrc.json @@ -4,7 +4,6 @@ "wikimedia/server" ], "rules": { - "max-len": "off", - "prefer-template": "off" + "max-len": "off" } }