A modern web application built with React 18, TypeScript, and Vite, featuring fast refresh and comprehensive ESLint configuration. This project provides a robust foundation for building scalable and maintainable web applications.
- React 18 - Latest version of React with improved performance and new features
- TypeScript - Full type safety and enhanced developer experience
- Vite - Lightning fast build tool with Hot Module Replacement (HMR)
- ESLint - Configured for type-aware linting
- Modern Development - Fast Refresh enabled through official Vite plugins
- React 18.3
- TypeScript 5.x
- Vite 5.x
- ESLint with TypeScript support
- Choice of bundlers: Babel or SWC
# Clone the repository
git clone <your-repo-url>
# Navigate to project directory
cd your-project-name
# Install dependencies
npm install
# Start development server
npm run dev
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Run ESLint
npm run lint
Two official plugins are available for Fast Refresh:
-
@vitejs/plugin-react
- Uses Babel
- Documentation
-
@vitejs/plugin-react-swc
- Uses SWC (Rust-based compiler)
- Documentation
- Recommended for larger projects due to faster compilation
For production applications, enable type-aware lint rules with the following configuration:
- Configure Parser Options
export default tseslint.config({
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
});
- Enable Type Checking
- Replace
tseslint.configs.recommended
with either:tseslint.configs.recommendedTypeChecked
tseslint.configs.strictTypeChecked
- Optionally add
...tseslint.configs.stylisticTypeChecked
- Configure React ESLint Plugin
// eslint.config.js
import react from 'eslint-plugin-react';
export default tseslint.config({
settings: {
react: {
version: '18.3'
}
},
plugins: {
react,
},
rules: {
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
});
- Node.js 18.x or higher
- npm 7.x or higher
Create a .env
file in the root directory:
VITE_APP_TITLE=Atoms
GITHUB_API_URL=https://github.com/Ojochogwu866/BE-Atoms
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.