placebo.mk/frontend
2026-02-28 18:47:11 +01:00
..
public basic structure setup 2026-01-10 19:41:04 +01:00
src feat: add general category, fix header wrapping, show last 5 live blog updates 2026-02-28 18:47:11 +01:00
.env.example setup completed 2026-02-03 17:45:38 +01:00
.gitignore basic structure setup 2026-01-10 19:41:04 +01:00
components.json basic structure setup 2026-01-10 19:41:04 +01:00
Dockerfile legacy 2026-02-23 05:28:46 +01:00
Dockerfile.dev docker implementation 2026-02-01 13:32:37 +01:00
eslint.config.js basic structure setup 2026-01-10 19:41:04 +01:00
index.html basic structure setup 2026-01-10 19:41:04 +01:00
nginx.conf fix: update CSP headers to allow production API domains 2026-02-24 19:16:22 +01:00
package-lock.json markdown img insert work as intended 2026-02-03 19:53:29 +01:00
package.json markdown img insert work as intended 2026-02-03 19:53:29 +01:00
README.md basic structure setup 2026-01-10 19:41:04 +01:00
session.md live blog implemented 2026-01-29 04:01:55 +01:00
tsconfig.app.json basic structure setup 2026-01-10 19:41:04 +01:00
tsconfig.json basic structure setup 2026-01-10 19:41:04 +01:00
tsconfig.node.json basic structure setup 2026-01-10 19:41:04 +01:00
vite.config.ts auth checkpoint 2026-02-04 19:24:03 +01: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...
    },
  },
])