PC Connect uses Vite 8 as its development server, which means instant startup times and fast Hot Module Replacement (HMR) while you work. The setup is intentionally lean: clone the repo, install dependencies, and a single command puts the full dashboard in your browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yoelrrg-code/pcconnect/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js 18 or later — Vite 8 requires Node 18+
- A package manager: npm (bundled with Node), yarn, or pnpm
Getting started
Start the development server
Available scripts
All scripts are defined inpackage.json:
| Script | Command | Description |
|---|---|---|
dev | vite | Start Vite dev server with HMR on localhost:5173 |
build | tsc -b && vite build | Type-check then produce a production bundle in dist/ |
lint | eslint . | Run ESLint across all .ts and .tsx files |
preview | vite preview | Serve the production build locally for final checks |
TypeScript configuration
tsconfig.json is a composite root that delegates to two focused configs:
tsconfig.app.json covers src/ with strict linting rules enabled — noUnusedLocals, noUnusedParameters, noFallthroughCasesInSwitch, and erasableSyntaxOnly. The JSX transform is set to react-jsx (no manual React import needed), and moduleResolution is bundler to match Vite’s resolution behaviour.
tsconfig.node.json covers vite.config.ts only, with "types": ["node"] so the config file has access to Node type definitions.
ESLint configuration
PC Connect uses ESLint’s modern flat config format, defined ineslint.config.js:
| Plugin | What it checks |
|---|---|
@eslint/js recommended | Core JavaScript best practices |
typescript-eslint recommended | TypeScript-specific rules |
eslint-plugin-react-hooks | Enforces the Rules of Hooks |
eslint-plugin-react-refresh | Ensures HMR-safe component exports |
dist/ folder is excluded from linting via globalIgnores.
Vite configuration
vite.config.ts is minimal — it registers the @vitejs/plugin-react plugin for JSX/HMR support and raises the chunk-size warning limit to 1000 kB (to accommodate the ApexCharts bundle):