video-accessibility/frontend
michael 9436aa4c6b fix: remove useMemo hook after early returns in QCList
The useMemo hook was placed after early returns (isLoading, error),
which violates React's rules of hooks. Hooks must be called
unconditionally on every render.

Replaced with simple inline computation since the operation is cheap.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 19:22:29 -06:00
..
public initial commit 2025-08-24 16:28:33 -05:00
src fix: remove useMemo hook after early returns in QCList 2026-01-03 19:22:29 -06:00
tests initial commit 2025-08-24 16:28:33 -05:00
.env.example initial commit 2025-08-24 16:28:33 -05:00
.env.production added MSAL microsoft authentication 2025-10-10 09:19:39 -05:00
.gitignore initial commit 2025-08-24 16:28:33 -05:00
Dockerfile initial commit 2025-08-24 16:28:33 -05:00
eslint.config.js initial commit 2025-08-24 16:28:33 -05:00
index.html chore: update page title to Video Accessibility Platform 2026-01-01 10:28:00 -06:00
nginx.conf initial commit 2025-08-24 16:28:33 -05:00
package-lock.json added MSAL microsoft authentication 2025-10-10 09:19:39 -05:00
package.json added MSAL microsoft authentication 2025-10-10 09:19:39 -05:00
playwright.config.ts initial commit 2025-08-24 16:28:33 -05:00
postcss.config.js initial commit 2025-08-24 16:28:33 -05:00
README.md initial commit 2025-08-24 16:28:33 -05:00
tailwind.config.js initial commit 2025-08-24 16:28:33 -05:00
tsconfig.app.json bug fixes for frontend when trying to npm run build 2025-10-08 16:47:14 -05:00
tsconfig.json initial commit 2025-08-24 16:28:33 -05:00
tsconfig.node.json initial commit 2025-08-24 16:28:33 -05:00
vite.config.ts added MSAL microsoft authentication 2025-10-10 09:19:39 -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...
    },
  },
])