Files
lifeforge/client
melvinchia3636 7073290b6d Merge branch '25w32' of https://github.com/Lifeforge-app/lifeforge into 25w32
Former-commit-id: 14474a77030ce524187562e7c4245d1eb7094218 [formerly 3231bcb72816df8e3f3455abfbd976bbfa475c0c] [formerly e91cbf394b95c88c3844a677854ea2ab31ed672c [formerly b2a3efacb56cf1c94f36856d5ae46ee471d99366]]
Former-commit-id: e9dfa75159a56f210a8a70818011b4e2afe5203a [formerly 0af674c621b2c4053c39a4b09167b6e87fd76c48]
Former-commit-id: 2993be53173fe54adc52da8a5e3783fd9440deb0
2025-08-09 06:30:00 +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-08 10:44:55 +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-08-01 19:11:24 +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
  }
})