Files
lifeforge/client
Melvin Chia 5860dbfa11 feat(client): put ModalManager from RootLayout back to routeBuilder for the sake of providers
Former-commit-id: 990468d34dd26a996d92934b95a7a0a0b4590a60 [formerly b4aa6db5cbbae3eb8377118d866737d230d1ed59] [formerly 75d10d370bfb592f1883f4902ab01c7252cd2ace [formerly b40fda2cdd7cdbe43bfd085cce0ecf7618ef4cef]]
Former-commit-id: 558976e53aa05955f4d6b4f86c4a38a29851daf1 [formerly afadf0b9279a3aa8f21dec21597891def26060ca]
Former-commit-id: 2df60739209d437aaed180297bde1ba92b8cc528
2025-08-30 04:09:41 +08:00
..
2025-07-17 16:22:37 +08:00
2025-08-01 00:11:35 +08:00
2025-07-19 00:10:10 +08:00
2025-07-28 23:37:06 +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:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname
    }
  }
})

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactDom from 'eslint-plugin-react-dom'
import reactX from 'eslint-plugin-react-x'

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    'react-x': reactX,
    'react-dom': reactDom
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs['recommended-typescript'].rules,
    ...reactDom.configs.recommended.rules
  }
})