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.
This commit is contained in:
parent
895e4e6aa6
commit
4f2e730d3c
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user