Skip to content

Enable React Compiler eslint rules and fix violations #2698

Description

@aeshub

Context

PR #2695 pins eslint-plugin-react-hooks to v6 because v7 bundles React Compiler rules that produce ~33 violations. Three rules-of-hooks violations in InspectionsContext.tsx are suppressed with eslint-disable comments.

Tasks

  • Fix InspectionsContext.tsx: extract fetchImageData/fetchAnalysisData/fetchValueData as standalone custom hooks (they call useQuery so they are hooks, not context methods)
  • Upgrade eslint-plugin-react-hooks to v7+
  • Fix React Compiler rule violations (~33 total)
  • Remove eslint-disable comments

References

Metadata

Metadata

Assignees

Labels

frontendFrontend related functionalityimprovementImprovement to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions