Go to file
echo be0ccc1539 Phase B: Eliminate duplication
- workspace_nav helper replaces 4x duplicated nav bar patterns
- Hoisted make_diagnostics_action_context call in process_clicks (computed once, reused 4 times)
- Removed duplicate section header comments in workspaces.odin

workspaces.odin: 328 → 280 lines (down 15%)
All 156 tests pass.
2026-05-22 17:36:24 +02:00
.github/workflows another checkpoint 2026-05-22 08:54:22 +02:00
odin Phase B: Eliminate duplication 2026-05-22 17:36:24 +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 another checkpoint 2026-05-22 08:54:22 +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
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...
    },
  },
])