Go to file
2025-07-18 17:35:37 -05:00
.firebase Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 17:35:37 -05:00
docs Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 11:26:56 -05:00
functions Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 14:20:06 -05:00
public app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
src Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 17:35:37 -05:00
.firebaserc Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 17:35:37 -05:00
.gitignore app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
database.rules.json Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 14:20:06 -05:00
DEPLOYMENT.md Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 17:35:37 -05:00
env.template Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-17 11:55:41 -05:00
eslint.config.js app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
firebase.json Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 17:35:37 -05:00
index.html app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
package-lock.json Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-17 16:16:00 -05:00
package.json Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-18 17:35:37 -05:00
postcss.config.js Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-17 11:55:41 -05:00
README.md app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
tailwind.config.js Signed-off-by: Matt Bruce <mbrucedogs@gmail.com> 2025-07-17 09:40:17 -05:00
tsconfig.app.json app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
tsconfig.json app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
tsconfig.node.json app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05:00
vite.config.ts app setup, but no real source at this time other than defaults 2025-07-17 08:59:01 -05: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...
    },
  },
])