From 04da8a10eba99798b1cc6f5244286007992fb0ba Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 4 Nov 2019 13:25:43 -0500 Subject: [PATCH] docs: document JS constant naming (#20892) --- docs/development/coding-style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/coding-style.md b/docs/development/coding-style.md index 0abaea2417d7..3b3881b24bfc 100644 --- a/docs/development/coding-style.md +++ b/docs/development/coding-style.md @@ -54,7 +54,7 @@ formatted correctly. the `module-name` form. This rule only applies to `.js` files. * Use newer ES6/ES2015 syntax where appropriate * [`const`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const) - for requires and other constants + for requires and other constants. If the value is a primitive, use uppercase naming (eg `const NUMBER_OF_RETRIES = 5`). * [`let`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) for defining variables * [Arrow functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)