• TypeScript 98.7%
  • JavaScript 0.5%
  • Dockerfile 0.3%
  • CSS 0.3%
  • HTML 0.2%
Find a file
2026-07-14 09:38:34 +09:00
nginx feat: enormous re-implementation to use json rpc by default and add character creation via web ui 2026-06-24 15:13:12 +09:00
src fix: fix references to entity in self editor 2026-07-14 09:38:34 +09:00
.dockerignore feat: containerize for real and begin splitting components 2026-06-19 18:50:12 +09:00
.env.development feat: various ui tweaks, don't ping when not connected, properly show errors, change port for local dev 2026-06-25 12:04:57 +09:00
.env.production feat: update nodejs, tweak routing on login, use proxy when doing local dev 2026-06-24 16:06:00 +09:00
.gitignore initial import 2026-06-19 10:15:45 +09:00
compose.yaml feat: send ping to prevent timeout 2026-06-25 10:44:30 +09:00
Dockerfile feat: rework websocket handling, add UI for managing entities 2026-06-26 18:21:48 +09:00
eslint.config.js fix: ditch use-websocket-react in favor of native websockets for easier use in context 2026-06-29 10:34:13 +09:00
index.html fix: remove some legacy styling 2026-06-24 21:23:49 +09:00
lefthook.yaml feat: redesign most ui dialogs to be bigger and easier to use on mobile 2026-07-03 15:48:36 +09:00
mise.toml feat: update nodejs, tweak routing on login, use proxy when doing local dev 2026-06-24 16:06:00 +09:00
package-lock.json feat: support styling of items, player names 2026-07-10 13:43:56 +09:00
package.json feat: support styling of items, player names 2026-07-10 13:43:56 +09:00
README.md initial import 2026-06-19 10:15:45 +09:00
tsconfig.app.json initial import 2026-06-19 10:15:45 +09:00
tsconfig.json initial import 2026-06-19 10:15:45 +09:00
tsconfig.node.json initial import 2026-06-19 10:15:45 +09:00
vite.config.ts feat: various ui tweaks, don't ping when not connected, properly show errors, change port for local dev 2026-06-25 12:04:57 +09: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...
    },
  },
])