Skip to content

Comments

fix: resolve all ESLint errors/warnings, upgrade deps, add CLAUDE.md#22

Open
vagedis74 wants to merge 3 commits intomicrosoft-foundry:mainfrom
vagedis74:main
Open

fix: resolve all ESLint errors/warnings, upgrade deps, add CLAUDE.md#22
vagedis74 wants to merge 3 commits intomicrosoft-foundry:mainfrom
vagedis74:main

Conversation

@vagedis74
Copy link

Summary

  • Fix ESLint config: migrate from broken defineConfig+extends to tseslint.config with explicit plugin registration (ESLint 9 → 10)
  • Resolve all 14 lint errors and warnings (unused vars, no-explicit-any, set-state-in-effect, no-case-declarations, react-refresh/only-export-components)
  • Upgrade eslint ecosystem and add minimatch override to fix 9 of 11 npm audit vulnerabilities (remaining 2 moderate are unfixable ajv in ESLint internals, dev-only)
  • Add CLAUDE.md for Claude Code onboarding context

Test plan

  • npm run build passes (tsc + vite)
  • npm run lint passes with 0 errors, 0 warnings
  • dotnet build passes with 0 errors, 0 warnings
  • npm audit shows 0 high vulnerabilities

🤖 Generated with Claude Code

wouter-bon and others added 3 commits February 19, 2026 11:57
Migrate eslint.config.js from broken defineConfig+extends to tseslint.config
with explicit plugin registration. Fix all 14 lint issues:

- Remove unused _agentId param (AgentPreview)
- Replace setState-in-effect with useMemo + DOM ref (ChatInterface)
- Add missing exhaustive-deps dependency (ChatInput)
- Move FileReader logic out of setState callbacks (FilePreview)
- Replace `as any` with proper type unions (AgentIcon, main, chatService)
- Wrap case-block declaration in braces (chatService)
- Extract DefaultErrorFallback to own file (ErrorBoundary)
- Extract useAppContext hook and AppContext value to own files (AppContext)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Upgrade eslint 9→10, @eslint/js→10, typescript-eslint→8.56,
eslint-plugin-react-refresh→0.5. Add minimatch >=10.2.1 override
to resolve all high-severity npm audit vulnerabilities.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add ability to switch between AI Foundry agents at runtime through a new
Agent dropdown in the Settings panel. Includes backend CRUD endpoints
(GET/POST /api/agents), frontend AgentPicker component, and integration
tests (19/19 passing).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants