Files
lifeforge/client
Melvin Chia fded760dc4 refactor: Remove unnecessary console.log statement from index.tsx
Former-commit-id: bcc0366984c9561b0219326a4dee08d07c0d0645 [formerly 9a859057590957813d9ec4ffe209d7e0ffdc85bb] [formerly 37bd9b2d52e7bc7f098d1e6ac4439916e398f8ef [formerly 423839b71eae0bc74ad0ca785b695063ca3b809c]]
Former-commit-id: a0975337934fe553f6758c083da9d4cf0f33327d [formerly 352b09dd2090c17c1b4cac42b58b05f242e1d586]
Former-commit-id: 7ebb27815887c0ae3d4194ede9324768cef6661d
2025-08-15 23:08:43 +08:00
..
2025-07-17 16:22:37 +08:00
2025-08-01 00:11:35 +08:00
2025-08-01 00:11:35 +08:00
2025-08-12 23:40:48 +08:00
2025-07-19 00:10:10 +08:00
2025-07-28 23:37:06 +08:00
2025-07-26 13:10:07 +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
  }
})