From c63ea2978b5d5bade7d14fa5285d5741ce186b47 Mon Sep 17 00:00:00 2001 From: Dan Wolff Date: Mon, 5 Feb 2018 23:29:26 +0100 Subject: [PATCH] notes on documentation and trailing commas --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be847b81..7bf699ba 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,10 @@ Contributing ============ +## Documentation + +Every new feature and API change should be accompanied by a README additon. + ## Testing All features and bugs should have tests that verify the fix. You can run all @@ -19,6 +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. - 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.