mosh-helpdesk/client
Moshfegh Hamedani a2531b1ce0 Add pagination
2026-02-23 10:16:53 -08:00
..
.claude/agents Improve code for security 2026-02-12 10:43:52 -08:00
src Add pagination 2026-02-23 10:16:53 -08:00
.gitignore Initial commit 2026-02-09 09:55:29 -08:00
bun.lock Add component tests 2026-02-16 12:04:25 -08:00
components.json Add Shadcn 2026-02-11 12:33:34 -08:00
eslint.config.js Initial commit 2026-02-09 09:55:29 -08:00
index.html Create the login page 2026-02-11 09:36:05 -08:00
package.json Add sorting 2026-02-23 09:03:04 -08:00
README.md Initial commit 2026-02-09 09:55:29 -08:00
tsconfig.app.json Add the ability to create users 2026-02-17 09:45:46 -08:00
tsconfig.json Add the ability to create users 2026-02-17 09:45:46 -08:00
tsconfig.node.json Initial commit 2026-02-09 09:55:29 -08:00
vite.config.ts Add sorting 2026-02-23 09:03:04 -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:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // 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,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

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

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

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])