Set of tools for DMing
Find a file
Iain Earl 0740856488
All checks were successful
Lint / biome-check (push) Successful in 14s
Fix linting
2025-12-17 16:44:32 +00:00
.forgejo/workflows Tool versions 2025-12-17 16:43:46 +00:00
public Base react 2025-12-03 10:14:34 +00:00
src Fix linting 2025-12-17 16:44:32 +00:00
.gitignore Base react 2025-12-03 10:14:34 +00:00
biome.json Battle tracker with save/restore 2025-12-05 12:09:57 +00:00
index.html WIP players and battle tracker 2025-12-04 16:04:57 +00:00
mise.toml Tool versions 2025-12-17 16:43:46 +00:00
package.json Tool versions 2025-12-17 16:43:46 +00:00
pnpm-lock.yaml Improve battle tracker 2025-12-05 16:27:05 +00:00
postcss.config.cjs Configure mantine 2025-12-03 10:18:35 +00:00
README.md Base react 2025-12-03 10:14:34 +00:00
tsconfig.app.json Configure @/ alias 2025-12-03 10:31:52 +00:00
tsconfig.json Base react 2025-12-03 10:14:34 +00:00
tsconfig.node.json Base react 2025-12-03 10:14:34 +00:00
vite.config.ts Configure biome 2025-12-03 10:35:51 +00: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...
    },
  },
])