Files
lifeforge/docs
Melvin Chia aab423695d feat(docs): move docs to the root of the project
Former-commit-id: 2515b68d9804c83a192c95af02246fac790c98d9 [formerly 3b5833ed367d49b92fa5b403c3f502fc77bf4fb1] [formerly 6d76e6e9080c169c91bf06ba63ff3ec27af3df86 [formerly b1d9088176368029a5de5026ec956a862f9161b4]]
Former-commit-id: 93081fe3abbb65feb45bb286eb4fa85ff6af9893 [formerly 9867ce95ca0d03247833c080392fe305f067ed25]
Former-commit-id: 0f2e7c7409168d7eace0e3171aa2bcdf95008ecd
2025-10-17 22:20:13 +08:00
..

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname
  }
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list