From afa6acc20a75705c4f27fa9a17aa22329fd01d88 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 8 Jul 2016 15:42:42 +0100 Subject: [PATCH] All the trailing commas --- code_style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_style.md b/code_style.md index 4a42597b7a..c46592f244 100644 --- a/code_style.md +++ b/code_style.md @@ -97,7 +97,7 @@ General Style if (x) return true; // Not fine ``` -- Terminate all multi-line lists with commas (if using a transpiler): +- Terminate all multi-line lists, object literals, imports and ideally function calls with commas (if using a transpiler). Note that trailing function commas require explicit configuration in babel at time of writing: ``` var mascots = [ "Patrick",