create-react-app
typescript template powered by husky
and lint-staged
.
Every time you commit new changes husky
runs lint-staged
which configured to run ESLint and Prettier. This way you don't have to worry about code-styling.
If you need other eslint
configs or plugins, you can easily add those with npm
or yarn
and edit .eslintrc.json
file.
Read more about CRA: Extending the ESLint config.
Edit tsconfig.json paths
property to add more absolute import paths:
"paths": {
"@components/*": ["src/components/*"],
"@hooks/*": ["src/hooks/*"]
}
See example.travis.yml for some examples.
- CSS styling guide (styled, emotion, css modules)
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
Launches the test runner in the interactive watch mode.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.