Đây là 1 template để cho 1 nhóm làm việc với nhau 1 cách hiệu quả nhất.
- Tất cả theo một chuẩn code style Airbnb
- Bắt buộc quy chuẩn commit convention
This template uses a number of open source projects to work properly:
- ReactJS - With TypeScript
- Vite - Replacement for Create React App
- TailwindCSS
- react-router-dom - React router dom
- tanstack-query - React Query
- ESLint
- Prettier
- Husky - Create git hooks easy
- commitlint - Do commit message convention properly
- Airbnb - Popular code rules
- Commit-convention - Popular commit message rules
Template requires Node.js v18+ to run. Please use Yarn v1.+ to run the project. Install the dependencies and devDependencies and start the server.
cd template
yarn
For development environments...
yarn dev
You will not be able to commit if your linting throw error or your commit message don't meet requiment. Commit message need to be used with "adam-bender.commit-message-editor". Husky will automatically run "yarn lint" before commit and will stop if you have lint error.
# lint all project
yarn lint
# format project using prettier
yarn format
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.