Skip to content

Instantly share code, notes, and snippets.

@loopmode
Last active August 29, 2015 14:26
Show Gist options
  • Save loopmode/4a5257eebca388eaebfa to your computer and use it in GitHub Desktop.
Save loopmode/4a5257eebca388eaebfa to your computer and use it in GitHub Desktop.
react webpack babel starter
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"rules": {
"strict": [2, "global"],
"no-trailing-spaces": 1,
"key-spacing": 1,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-unused-vars": 1,
"no-mixed-spaces-and-tabs": 1,
"eol-last": 1,
"quotes": [1, "single"],
"comma-dangle": 0,
"comma-spacing": 1,
"react/jsx-boolean-value": 1,
"react/jsx-quotes": 1,
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/no-unknown-property": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1
}
}
{
"name": "",
"author": "Jovica Aleksic",
"version": "0.0.1",
"keywords": [
"react",
"webpack",
"babel",
"starter"
],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "set TARGET=build&& webpack",
"start": "set TARGET=dev&& node src/dev_server.js",
"lint": "node_modules/.bin/eslint . --ext .js --ext .jsx",
"doc": "node_modules/.bin/esdoc -c ./.esdoc && open ./doc/esdoc/index.html & start ./doc/esdoc/index.html"
},
"devDependencies": {
"autoprefixer-loader": "^2.0.0",
"babel": "^5.6.14",
"babel-core": "^5.6.15",
"babel-eslint": "^3.1.19",
"babel-loader": "^5.2.2",
"css-loader": "^0.15.1",
"esdoc": "^0.1.3",
"eslint": "^0.23.0",
"eslint-loader": "^0.14.0",
"eslint-plugin-react": "^2.5.2",
"flowcheck": "^0.2.7",
"flowcheck-loader": "^1.0.0",
"html-webpack-plugin": "^1.5.2",
"node-sass": "^3.2.0",
"opn": "^3.0.2",
"react-hot-loader": "^1.2.7",
"sass-loader": "^0.5.0",
"style-loader": "^0.12.3",
"webpack": "^1.10.0",
"webpack-dev-server": "^1.10.1",
"webpack-merge": "^0.1.1"
},
"dependencies": {
"promise": "^7.0.3",
"react": "^0.13.3",
"react-router": "^1.0.0-beta3",
"superagent": "^1.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment