No description
  • TypeScript 97.2%
  • CSS 1.4%
  • JavaScript 0.7%
  • HTML 0.4%
  • Dockerfile 0.3%
Find a file
NixLavr 1ac7f6f21c
All checks were successful
/ build-and-push (push) Successful in 20s
fix docker
2026-01-08 02:56:43 +05:00
.forgejo/workflows Initial commit 2025-12-30 20:35:35 +00:00
public Initial commit 2025-12-30 20:35:35 +00:00
src fix docker 2026-01-08 02:10:37 +05:00
.env fix docker 2026-01-08 02:56:43 +05:00
.gitignore add providers 2026-01-08 00:51:53 +05:00
Dockerfile fix docker 2026-01-08 02:56:43 +05:00
eslint.config.js Initial commit 2025-12-30 20:35:35 +00:00
index.html Initial commit 2025-12-30 20:35:35 +00:00
nginx.conf Initial commit 2025-12-30 20:35:35 +00:00
package-lock.json update 2026-01-05 23:59:57 +05:00
package.json update 2026-01-05 23:59:57 +05:00
README.md Initial commit 2025-12-30 20:35:35 +00:00
tsconfig.app.json Initial commit 2025-12-30 20:35:35 +00:00
tsconfig.json Initial commit 2025-12-30 20:35:35 +00:00
tsconfig.node.json Initial commit 2025-12-30 20:35:35 +00:00
vite.config.ts fix 2026-01-08 02:49:06 +05: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...
    },
  },
])