From 1abde4792a0ad06456fd6ac5a225de158451dffe Mon Sep 17 00:00:00 2001 From: James Bunt Date: Thu, 24 Apr 2014 10:58:34 +1200 Subject: [PATCH] Add note to Whitespace section on removing trailing whitespace. --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 3409c68ccd..cf6be759f6 100644 --- a/README.md +++ b/README.md @@ -794,6 +794,24 @@ ``` + - Remove all trailing whitespace + + ```javascript + // bad + function() {∙∙ + var name; + ∙∙ + // ... stuff ... + } + + // good + function() { + var name; + + // ... stuff ... + } + ``` + - Use indentation when making long method chains. ```javascript