From 59e4716311533ce2908b0c707ca80432cb72ebef Mon Sep 17 00:00:00 2001 From: Dan Wolff Date: Tue, 6 Feb 2018 00:05:07 +0100 Subject: [PATCH] explain why trailing commas are good --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7bf699ba..dd281168 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,7 @@ Tests that cannot be expressed as a simple AST can be found in `test/mocha`. - Indentation uses 4 spaces, switch `case` 2 spaces. - Identifiers use `snake_case`. - Strings use double quotes (`"`). -- Multiline object and array literals use trailing commas. +- Use a trailing comma for multiline array and object literals to minimize diffs. - The Uglify code only uses ES5, even in the `harmony` branch. - Line length should be at most 80 cols, except when it is easier to read a longer line.