Update eslint to prefer let/const over var

This commit is contained in:
Tom Hughes 2025-01-26 19:05:56 +00:00
parent a5ee93b301
commit f83424aeb2

View file

@ -141,9 +141,11 @@ module.exports = [
"no-useless-call": "error", "no-useless-call": "error",
"no-useless-concat": "error", "no-useless-concat": "error",
"no-useless-return": "error", "no-useless-return": "error",
"no-var": "error",
"no-void": "error", "no-void": "error",
"no-warning-comments": "warn", "no-warning-comments": "warn",
"operator-assignment": "error", "operator-assignment": "error",
"prefer-const": "error",
"prefer-object-spread": "error", "prefer-object-spread": "error",
"radix": ["error", "always"], "radix": ["error", "always"],
"yoda": "error" "yoda": "error"