From f83424aeb20cf371925094c6640ff407185cc0a4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 26 Jan 2025 19:05:56 +0000 Subject: [PATCH] Update eslint to prefer let/const over var --- config/eslint.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/eslint.js b/config/eslint.js index 895ab380c..6055634aa 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -141,9 +141,11 @@ module.exports = [ "no-useless-call": "error", "no-useless-concat": "error", "no-useless-return": "error", + "no-var": "error", "no-void": "error", "no-warning-comments": "warn", "operator-assignment": "error", + "prefer-const": "error", "prefer-object-spread": "error", "radix": ["error", "always"], "yoda": "error" -- 2.39.5