This is a starter template for a modern React application using TypeScript, designed for robust development and CI/CD workflows. It includes:
- React + TypeScript: Source code and tests in the
src/
directory. - Jest: Unit testing framework with sample tests and coverage reporting.
- ESLint: Linting for TypeScript and React code, using the latest ESLint flat config.
- Docker: Containerization support with a production-ready Dockerfile.
- GitHub Actions: CI/CD pipeline for linting, testing, and building on every push or pull request.
- CodeRabbit Integration: AI-powered code review enabled via the
.coderabbit.yaml
config file.
- Sample Code: Includes
App.tsx
andmathUtils.ts
with corresponding tests. - Strict TypeScript: Enforced via
tsconfig.json
for type safety. - Automated Workflows: Lint, test, and build steps run automatically in CI.
- AI Code Review: CodeRabbit reviews all TypeScript and React files in PRs.
- Install dependencies:
npm install
- Run the app (if using a bundler):
npm start
- Run lint, tests, and build:
npm run lint npm test npm run build
- Install the CodeRabbit GitHub App and select this repository.
- The
.coderabbit.yaml
file enables AI code review for all TypeScript and React files insrc/
. - Open a pull request to see CodeRabbit review your code automatically.
This template is ideal for teams or individuals looking to start a React + TypeScript project with best practices for code quality, automation, and AI-powered reviews.