Passport/pkg/view
2024-02-26 19:26:04 +08:00
..
public ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
src 💄 Optimized UX 2024-02-26 19:26:04 +08:00
.eslintrc.cjs ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
.gitignore 🔨 Add workflow and dockerfile 2024-01-30 18:34:37 +08:00
bun.lockb ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
embed.go 🔨 Add workflow and dockerfile 2024-01-30 18:34:37 +08:00
index.html ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
package.json 💄 Optimized UX 2024-02-26 19:26:04 +08:00
README.md ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
tsconfig.json ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
tsconfig.node.json ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
uno.config.ts ♻️ New UI Login & Register 2024-02-25 23:12:42 +08:00
vite.config.ts ♻️ New UI Login & Register 2024-02-25 23:12:42 +08: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:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list