Files
lifeforge/apps/docs
Melvin Chia 4c976a3ef0 feat(docs): write docs for api construction
Former-commit-id: 7b2512d7f4cdabeb4501f2440381190288e7057c [formerly 5fa5d7014705073fa927676c5a7e0b1d5b72b66f] [formerly 67dced63a7eeee9fd9cb98989835608c1eb752ba [formerly 96b0f220e7c7628a2c0fd47783d6a94b835cfb96]]
Former-commit-id: dfe9ffc358c58c466b32b0133bd594e1439f5ef2 [formerly 0bfedae55cfe8e9702ae972fe8c60394631528a8]
Former-commit-id: c92775235a8ac2a6f8466f2c071524fa33b92073
2025-09-06 14:45:45 +08:00
..
2025-07-21 06:19:36 +08:00
2025-07-21 06:47:01 +08:00
2025-07-21 06:19:36 +08:00
2025-07-21 06:47:01 +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