recipe_app/frontend
2025-08-21 10:07:16 -07:00
..
public prep/cook times and some fit and finish 2025-07-29 09:34:33 -07:00
src better handling of textbox focus for mobile 2025-08-21 10:07:16 -07:00
.gitignore initial commit 2025-07-08 10:40:49 -07:00
Dockerfile centralize the theming 2025-08-20 10:06:23 -07:00
eslint.config.js initial commit 2025-07-08 10:40:49 -07:00
index.html prep/cook times and some fit and finish 2025-07-29 09:34:33 -07:00
package-lock.json centralize the theming 2025-08-20 10:06:23 -07:00
package.json add typescript to backend 2025-08-15 15:02:11 -07:00
postcss.config.js styling 2025-07-11 17:06:41 -07:00
README.md initial commit 2025-07-08 10:40:49 -07:00
tailwind.config.js centralize the theming 2025-08-20 10:06:23 -07:00
tsconfig.app.json initial commit 2025-07-08 10:40:49 -07:00
tsconfig.json initial commit 2025-07-08 10:40:49 -07:00
tsconfig.node.json initial commit 2025-07-08 10:40:49 -07:00
vite.config.ts remove vite from prod 2025-08-06 18:23:36 +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...
    },
  },
])