Files
zeekayandHanzo Dev be166dcbda Give the frontend a lockfile that resolves
The version sweep raised typescript to 7.0.2 and @hanzo/ui to 8.27.0 in
the manifest and left the lockfile behind, so npm install resolved
neither: typescript-eslint peers on typescript >=4.8.4 <6.1.0, and the
lockfile still pinned eslint-plugin-react-hooks 5, which peers below the
eslint 10 the manifest now asks for. typescript drops to 6.0.3, the
newest release the linter accepts.

@hanzo/ui 8.27 reaches react-hook-form from its gui form backend as an
optional peer. It was not installed, so the bundle stopped at a missing
useFormState export rather than at a missing dependency.

npm run build is green.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-08 16:08:47 -07:00
..
2025-10-03 20:50:51 +00:00
2025-10-03 20:50:51 +00:00
2025-10-03 20:50:51 +00:00
2025-10-03 20:50:51 +00:00
2025-10-03 20:50:51 +00:00
2025-10-03 20:50:51 +00:00
2025-10-03 20:50:51 +00: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:

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