React Setup
Simple React starter kit
Uses Express for server
Features
- Has sample components with proper linting
- Minimal Webpack config with loaders
- ESLint configured with recommended settings
- Babel plugins configured
- Flow configured and type files added for used libs
- Prettier configured for formatting
- Git hooks configured with husky and lint-staged
- Styled components are used for CSS-in-js
- Has pre-commit git hook which prevents you to check in bad code
Scripts
yarn install // install deps
yarn run build // webpack build
yarn run start // runs express @4000
yarn run fix // formats and fixes lint
yarn run lint-strict // formats,fixes lint and type checksFlow plugin for editors : https://flow.org/en/docs/editors/
Styled components editor support : https://github.com/styled-components/styled-components#syntax-highlighting