From: Tom Hughes Date: Sun, 26 Jan 2025 19:05:56 +0000 (+0000) Subject: Update eslint to prefer let/const over var X-Git-Tag: live~160^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f83424aeb20cf371925094c6640ff407185cc0a4?hp=--cc Update eslint to prefer let/const over var --- f83424aeb20cf371925094c6640ff407185cc0a4 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"