From 41dc9c794d1a1bc98e907344b2930f8cd4eed27c Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Sat, 16 May 2020 16:08:43 -0700 Subject: [PATCH] Fixed capitalization on `CONST` --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d091b00fd..fd25bbad3c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -141,7 +141,7 @@ JavaScript sources in Open MCT should: 1. Source files that export functions should use camelCase, first letter lower-case (eg. testTools.js) 1. Constants (variables or fields which are meant to be declared and initialized statically, and never changed) should use only capital - letters, with underscores between words (e.g. SOME_CONSTANT). They should always be declared as `CONST`s + letters, with underscores between words (e.g. SOME_CONSTANT). They should always be declared as `const`s 1. File names should be the name of the exported class, plus a .js extension (e.g. SomeClassName.js). 1. Avoid anonymous functions, except when functions are short (a few lines)