Go to file
James Pace bb35a80e97 Display image. 2026-03-02 12:34:20 +00:00
.yarn/cache version page first draft. 2026-03-01 19:14:43 -05:00
src Display image. 2026-03-02 12:34:20 +00:00
.gitignore Init commit. 2026-03-01 07:31:43 -05:00
.pnp.cjs version page first draft. 2026-03-01 19:14:43 -05:00
.pnp.loader.mjs version page first draft. 2026-03-01 19:14:43 -05:00
.yarnrc.yml Fix cache location. Add deps. 2026-03-01 12:48:19 +00:00
CMakeLists.txt Init commit. 2026-03-01 07:31:43 -05:00
README.md Make some content. 2026-03-01 15:27:10 -05:00
eslint.config.js Make some content. 2026-03-01 15:27:10 -05:00
index.html Make some content. 2026-03-01 15:27:10 -05:00
package.json version page first draft. 2026-03-01 19:14:43 -05:00
package.xml Make some content. 2026-03-01 15:27:10 -05:00
tsconfig.app.json Init commit. 2026-03-01 07:31:43 -05:00
tsconfig.json Init commit. 2026-03-01 07:31:43 -05:00
tsconfig.node.json Init commit. 2026-03-01 07:31:43 -05:00
vite.config.ts Make some content. 2026-03-01 15:27:10 -05:00
yarn.lock version page first draft. 2026-03-01 19:14:43 -05:00

README.md

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