From 231317408f7501f22108768ae05a9c2016765d61 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Wed, 18 Jan 2017 07:27:18 +0200 Subject: [PATCH] [guide] add trailing commas --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 247fbc70..09c9293b 100644 --- a/README.md +++ b/README.md @@ -898,7 +898,7 @@ Other Style Guides // good [1, 2, 3].map((number, index) => ({ - [index]: number + [index]: number, })); ``` @@ -911,7 +911,7 @@ Other Style Guides // bad ['get', 'post', 'put'].map(httpMethod => Object.prototype.hasOwnProperty.call( httpMagicObjectWithAVeryLongName, - httpMethod + httpMethod, ) ); @@ -919,7 +919,7 @@ Other Style Guides ['get', 'post', 'put'].map(httpMethod => ( Object.prototype.hasOwnProperty.call( httpMagicObjectWithAVeryLongName, - httpMethod + httpMethod, ) )); ``` @@ -2796,7 +2796,7 @@ Other Style Guides ```javascript const AirbnbStyleGuide = { es6: { - } + }, }; export default AirbnbStyleGuide; @@ -2965,7 +2965,7 @@ Other Style Guides // ... $('.sidebar').css({ - 'background-color': 'pink' + 'background-color': 'pink', }); } @@ -2977,7 +2977,7 @@ Other Style Guides // ... $sidebar.css({ - 'background-color': 'pink' + 'background-color': 'pink', }); } ```