No description
Find a file
hermes 88a873e084
All checks were successful
CI / build (push) Successful in 58s
Preview / preview (push) Successful in 57s
ci: re-run via runner pickup verification
2026-09-26 20:07:05 -07:00
.forgejo/workflows Revert: use original action short names (git.forgejo.org doesn't resolve) 2026-05-15 21:14:50 +00:00
dist Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
public/comics Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
src add error boundary, extract rotation constant, add hashchange listener 2026-03-22 17:36:21 -07:00
.gitignore Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
.pre-commit-config.yaml Add Forgejo CI/CD workflows and pre-commit hooks 2026-03-23 20:59:08 -07:00
AGENTS.md Add AGENTS.md for agentic coding guidelines 2026-03-22 09:20:55 -07:00
components.json Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
eslint.config.js Fix all ESLint and React Compiler issues 2026-03-22 14:36:29 -07:00
index.html Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
info.md Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
package-lock.json Configure React Compiler and expand ESLint with type-aware rules 2026-03-22 14:30:15 -07:00
package.json rename package from my-app to webcomic-reader 2026-03-22 18:08:32 -07:00
postcss.config.js Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
README.md Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
tailwind.config.js Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
tsconfig.app.json Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
tsconfig.json Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
tsconfig.node.json Add everything to git and create .gitignore 2026-03-22 14:20:52 -07:00
vite.config.ts Configure React Compiler and expand ESLint with type-aware rules 2026-03-22 14:30:15 -07: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...
    },
  },
])