Files
lifeforge/client
Melvin Chia de83231fe4 refactor(client): remove unused togglable property from module configurations, delete moduleFilters utility as it is no longer needed
Former-commit-id: 82c5b3734ef31a85c949c03a1b6509ce09ded56f [formerly 9f88208490e900614c8e9d0d9a8aea54c34411a1] [formerly 215f296edb46186dc56e2dfcad4f27dd60a17da0 [formerly 540d4f1a3957e32c505756154e0188fabb2d53b7]]
Former-commit-id: 87a78a6a72988589b0442f1e48b048649887366d [formerly 9f029492124ee2c02b31a186a47f8fef8118d26a]
Former-commit-id: 390379d2e8827b2989f3ac7b24ac4e010654e369
2025-10-05 21:51:57 +08:00
..
2025-08-01 00:11:35 +08:00
2025-07-19 00:10:10 +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
  }
})