Files
lifeforge/docs
Melvin Chia 884a65e14f feat(docs): add preloader component to enhance user experience during loading
Former-commit-id: 3abfaa8bd2b2edbdb70d0c5a172ba70149df2272 [formerly c3b95cb43418f5ac00e12501f20419130515553f] [formerly b5331347b286a7ffb8c2e5c87725aba2d34f3d9b [formerly bf45c0865e9210c697955f080f23be446a2dd0cd]]
Former-commit-id: ee07b01290dd4cd2676ca9265f9c47cbc390e849 [formerly 28c753938c75f57beeb5cb18e84a6599e16a3434]
Former-commit-id: ea1684597d2cd0971bed25c4727a3a2b7e214b87
2025-10-17 22:36:22 +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