An opinionated TypeScript template repository that provides the following tooling:
| Tool | Utility |
|---|---|
| ESLint | Code linter |
| Husky | Git hooks |
| Jest | Testing framework |
| Prettier | Code formatter |
| Yarn (berry) | Package manager |
- Node.js (LTS)
- Yarn
- Consider managing Yarn with corepack -- it ships with Node.js v16+ and enabling Yarn is as simple as running:
corepack enable
- Consider managing Yarn with corepack -- it ships with Node.js v16+ and enabling Yarn is as simple as running:
Install dependencies:
yarn install
Check if all project files meet the formatting standards:
yarn check-format
Check if all project files meet the linting standards:
yarn check-lint
Run all tests:
yarn test
| Hook | Description |
|---|---|
| pre-commit | Uses lint-staged to lint and format the staged commit files before they are committed |