Set up babel's ability to handle trailing commas

This commit is contained in:
Eli Ribble 2016-05-17 14:14:10 -06:00
parent fece65159a
commit b118f80281
2 changed files with 5 additions and 0 deletions

4
.babelrc Normal file
View File

@ -0,0 +1,4 @@
{
"plugins": ["syntax-trailing-function-commas"],
"presets": ["es2015", "react"]
}

View File

@ -38,6 +38,7 @@
"assets-webpack-plugin": "^3.4.0",
"babel-cli": "^6.8.0",
"babel-loader": "^6.2.4",
"babel-plugin-syntax-trailing-function-commas": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"gulp": "^3.9.1",