This is a starter React project using Vite as the build tool and ESLint for code linting.
- react and react-dom — React library and DOM renderer
- vite — Fast build tool and dev server
- eslint — Code linter to keep code clean and consistent
- @babel/eslint-parser — ESLint parser to support modern JS and JSX syntax
- eslint-plugin-react — React specific linting rules
- eslint-plugin-react-hooks — Linting for React Hooks rules
- eslint-plugin-react-refresh — Support for React Fast Refresh in ESLint
- @vitejs/plugin-react — Vite plugin for React support
- prettier — Code formatter (optional)
- Clone the repo:
git clone https://github.com/Charlosus/basic-setup.git cd basic-setup
Install dependencies:
npm install
Start the development server:
npm run dev
Run ESLint to check for code issues:
npm run lint
Build the project for production:
npm run build
Preview the production build:
npm run preview
Notes ESLint config is in eslint.config.js using the flat config system.
React Fast Refresh is enabled via ESLint plugin.
Adjust .eslintrc or eslint.config.js if you want to customize linting rules.