]> git.openstreetmap.org Git - rails.git/commitdiff
Update eslint to prefer let/const over var
authorTom Hughes <tom@compton.nu>
Sun, 26 Jan 2025 19:05:56 +0000 (19:05 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Feb 2025 11:13:39 +0000 (11:13 +0000)
config/eslint.js

index 895ab380c16c275d0ff3c984fc212a728078a9c4..6055634aa5a7ef6afab684f4adbb8d988f2a12a6 100644 (file)
@@ -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"