Go to file
echo f22d331c31
Some checks failed
odin-ci / build-test (push) Has been cancelled
wtf
2026-06-04 20:34:10 +02:00
.github/workflows check point 2026-05-24 12:41:31 +02:00
odin wtf 2026-06-04 20:34:10 +02:00
public init state 2026-05-18 19:58:01 +02:00
src init state 2026-05-18 19:58:01 +02:00
.env.example init state 2026-05-18 19:58:01 +02:00
.gitignore init state 2026-05-18 19:58:01 +02:00
.gitmodules check point 2026-05-24 12:41:31 +02:00
AGENTS.md current state 2026-05-28 15:20:02 +02:00
app current state 2026-05-28 15:20:02 +02:00
eslint.config.js init state 2026-05-18 19:58:01 +02:00
index.html init state 2026-05-18 19:58:01 +02:00
package-lock.json check point 2026-05-21 06:10:32 +02:00
package.json init state 2026-05-18 19:58:01 +02:00
postcss.config.js init state 2026-05-18 19:58:01 +02:00
README.md init state 2026-05-18 19:58:01 +02:00
tailwind.config.js init state 2026-05-18 19:58:01 +02:00
tests current state 2026-05-28 15:20:02 +02:00
tsconfig.app.json init state 2026-05-18 19:58:01 +02:00
tsconfig.json init state 2026-05-18 19:58:01 +02:00
tsconfig.node.json init state 2026-05-18 19:58:01 +02:00
vite.config.ts init state 2026-05-18 19:58:01 +02:00
vitest.config.ts init state 2026-05-18 19:58:01 +02: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...
    },
  },
])