This is the official TypeScript template for Create React App.
To use this template, add --template @dannnyliang/cra-template-typescript
when creating a new app.
For example:
npx create-react-app my-app --template @dannnyliang/cra-template-typescript
# or
yarn create react-app my-app --template @dannnyliang/cra-template-typescript
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
- use import-sort-cli to group and sort modules.
- use eslint-plugin-prettier to run prettier as an ESLint rule.
- use husky v6 to run
lint-staged
before commit.
cz
: make commit messages conventional with cz-conventional-changelog adapter.lint-staged
: use lint-staged to run linters or foramtter to unify the coding styling.