Skip to content

Instantly share code, notes, and snippets.

@renoirb
Created August 19, 2017 01:21
Show Gist options
  • Save renoirb/5bd2535599af4486cabbdea697b05c7e to your computer and use it in GitHub Desktop.
Save renoirb/5bd2535599af4486cabbdea697b05c7e to your computer and use it in GitHub Desktop.

Create React App

Stash on how I bootstrapped a React App with less configuration. Thanks to Create React App

{
"extends": ["react-app", "airbnb"],
"plugins": ["react"]
}
[ignore]
[include]
[libs]
[lints]
[options]
package-lock=false
{
"name": "repo3",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-scripts": "1.0.11"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"precommit": "lint-staged",
"eject": "react-scripts eject",
"flow": "flow",
"lint": "eslint src/",
"lint-fix": "eslint --fix src/"
},
"devDependencies": {
"eslint-config-airbnb": "^15.1.0",
"eslint-plugin-import": "^2.7.0",
"flow-bin": "^0.53.1",
"husky": "^0.14.3",
"lint-staged": "^4.0.3",
"prettier": "^1.5.3",
"react-flow-types": "^0.1.1"
},
"lint-staged": {
"src/**/*.{js,jsx,json,css}": [
"prettier --single-quote --write",
"git add"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment