Stash on how I bootstrapped a React App with less configuration. Thanks to Create React App
Created
August 19, 2017 01:21
-
-
Save renoirb/5bd2535599af4486cabbdea697b05c7e 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
{ | |
"extends": ["react-app", "airbnb"], | |
"plugins": ["react"] | |
} |
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
[ignore] | |
[include] | |
[libs] | |
[lints] | |
[options] |
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
package-lock=false |
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
{ | |
"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