This project is a combination of various useful tools that helps setup a standardized coding style among the team. Feel free to clone and start your next React application with this setup. This project was bootstrapped with Create React App.
- ESLint with Airbnb Style Guide as the major lint configuration
- Prettier which collaborates with ESLint and handles the coding style issues (while ESLint handles code quality issues)
- Husky that helps with Git hooks related issues
- Lint-staged which runs the linting and prettier commands by the developer
git commit
s - Commitizen which assists the developers working on this project to write commit messages in the same style
Although most of the configurations were setup for you, there is still one thing that was required. Please run
$ yarn global add commitizen
OR
$ npm install -g commitizen
to make sure commitizen works on your device.
Right before you start implementing, please do either yarn install
or npm install
(choose one of them, of course) to install all the dependencies
After all the dependencies were install (in /node_modules
), you can start playing with your application with yarn start
You can read on this article: 中文版