From 4f2e730d3c3da116b4f7c7e285cbc31d615e8739 Mon Sep 17 00:00:00 2001 From: Freagarach Date: Mon, 17 May 2021 15:50:16 +0000 Subject: [PATCH] CodingConventions: Prefer using const on immutable values. Using `const` for values that should not be changed is considered a good practice (https://eslint.org/docs/rules/prefer-const). Forum poll: https://wildfiregames.com/forum/topic/38347-codingconventions-use-const-instead-of-let-for-immutable-values-in-functions/ Differential revision: https://code.wildfiregames.com/D3950 Comments by: @bb, @Stan, @wraitii This was SVN commit r25454. --- build/arclint/configs/eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/arclint/configs/eslintrc.json b/build/arclint/configs/eslintrc.json index 17b8c7754c..1e1dcb01dc 100644 --- a/build/arclint/configs/eslintrc.json +++ b/build/arclint/configs/eslintrc.json @@ -77,7 +77,7 @@ "no-class-assign": 1, "no-const-assign": 1, "no-dupe-class-members" : 1, - "prefer-const": 0, + "prefer-const": 1, "brace-rules/brace-on-same-line": ["warn", { "FunctionDeclaration": "never",