rowboat/apps/x/apps/renderer
2026-04-20 10:43:27 +05:30
..
public refactor onboarding: remove welcome screen, streamline model setup, tighten spacing 2026-02-05 23:03:47 +05:30
src render tables in markdown 2026-04-20 10:43:27 +05:30
.gitignore bootstrap new electron app 2026-01-16 12:05:33 +05:30
components.json UI improvements 2026-01-16 12:05:33 +05:30
eslint.config.js bootstrap new electron app 2026-01-16 12:05:33 +05:30
index.html fix startup flash 2026-02-04 22:45:51 +05:30
package.json render tables in markdown 2026-04-20 10:43:27 +05:30
README.md bootstrap new electron app 2026-01-16 12:05:33 +05:30
tsconfig.app.json UI improvements 2026-01-16 12:05:33 +05:30
tsconfig.json UI improvements 2026-01-16 12:05:33 +05:30
tsconfig.node.json bootstrap new electron app 2026-01-16 12:05:33 +05:30
vite.config.ts integrate electron forge 2026-01-17 10:28:44 +05:30

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...
    },
  },
])