From f7481c081517153004816d975fe24d81cc50d811 Mon Sep 17 00:00:00 2001 From: Peter Shin Date: Mon, 8 Feb 2016 23:13:40 -0800 Subject: [PATCH] [Babel] Allowing trailing comma. --- .babelrc | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 3c078e9f99..8198660c8b 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,6 @@ { "presets": [ "es2015" - ] + ], + "plugins": ["syntax-trailing-function-commas"] } diff --git a/package.json b/package.json index 689110c01b..d1873b4af8 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "babel-istanbul": "^0.6.0", "babel-preset-es2015": "^6.5.0", "babel-register": "^6.5.1", + "babel-plugin-syntax-trailing-function-commas": "^6.5.0", "codecov": "^1.0.1", "deep-diff": "^0.3.3", "jasmine": "^2.3.2",