No description
Find a file
NixLavr ae86514081
All checks were successful
/ build-and-push (push) Successful in 57s
fix proxy
2025-12-04 00:06:32 +05:00
.forgejo/workflows add ci 2025-11-27 09:43:30 +05:00
public Initial commit 2025-07-13 19:55:23 +05:00
src fix proxy 2025-12-04 00:06:32 +05:00
.gitignore Initial commit 2025-07-13 19:55:23 +05:00
.gitlab-ci.yml Initial commit 2025-07-13 19:55:23 +05:00
components.json Initial commit 2025-07-13 19:55:23 +05:00
Dockerfile fix docker 2025-11-27 10:11:55 +05:00
index.html update 2025-08-30 17:37:58 +05:00
nginx.conf fix docker 2025-11-27 10:13:19 +05:00
package-lock.json add theme 2025-12-03 23:11:35 +05:00
package.json add theme 2025-12-03 23:11:35 +05:00
README.md update 2025-09-15 22:14:56 +05:00
tsconfig.app.json Initial commit 2025-07-13 19:55:23 +05:00
tsconfig.json update 2025-09-15 22:14:56 +05:00
tsconfig.node.json Initial commit 2025-07-13 19:55:23 +05:00
vite.config.ts fix 2025-08-16 16:57:27 +05:00

React + TypeScript + Vite

t This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config([
  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 tseslint.config([
  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...
    },
  },
])