Created
September 22, 2016 16:39
-
-
Save MatthewDailey/0c7329dc29f718532336b3bddfdeddd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install chai --save | |
npm install dirty-chai --save | |
npm install babel-core --save | |
npm install babel-cli --save | |
npm install babel-preset-es2015 --save | |
npm install eslint --save-dev | |
npm install eslint-config-airbnb --save-dev | |
npm install eslint-plugin-import --save-dev | |
npm install eslint-plugin-jsx-a11y --save-dev | |
npm install eslint-plugin-react --save-dev | |
echo "Creating .eslintrc for project root..." | |
echo "{\n\t\"extends\": \"airbnb\",\n\t\"env\": {\n\t\t\"node\": true\n\t}\n}" > .eslintrc | |
# See http://jamesknelson.com/testing-in-es6-with-mocha-and-babel-6/ for details. | |
echo "Create .babelrc..." | |
echo "{\n\t\"presets\": [\"es2015\"]\n}" > .babelrc | |
echo "Creating tests dir and tests/.eslintrc..." | |
mkdir -p tests | |
echo "{\n\t\"env\": {\n\t\t\"mocha\": true\n\t}\n}" > tests/.eslintrc | |
echo "Done installing node deps and eslint.\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment