Skip to content

Conversation

@joaquimds
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses lint issues that surfaced after upgrading React to version 19.2.3. The changes primarily consist of code formatting improvements, dependency array optimizations for React hooks, ESLint configuration modernization, and the addition of eslint-disable comments to suppress new linting rules.

Changes:

  • Modernized ESLint configuration to use flat config format with updated import paths
  • Optimized React hook dependency arrays by using whole objects instead of individual properties
  • Updated next-sanity import path from "next-sanity" to "next-sanity/live"

Reviewed changes

Copilot reviewed 11 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsconfig.json Formatting cleanup (collapsed array literals to single lines)
src/sanity/lib/live.ts Updated import path for defineLive from "next-sanity" to "next-sanity/live"
src/components/forms/useForm.tsx Code reformatting with eslint-disable comment for react-hooks/refs rule
src/app/map/[id]/hooks/useInspector.ts Optimized dependency array to use whole selectedBoundary object
src/app/map/[id]/components/inspector/InspectorPanel.tsx Formatting fix for Boolean expression indentation
src/app/map/[id]/components/inspector/InspectorDataTab.tsx Optimized dependency array to use whole selectedBoundary object
src/app/map/[id]/components/inspector/InspectorConfigTab.tsx Removed unnecessary useCallback wrappers around already-memoized functions
src/app/map/[id]/components/inspector/BoundaryDataPanel.tsx Optimized dependency array to use whole data object instead of data?.json
src/app/map/[id]/components/controls/MarkersControl/MarkersControl.tsx Formatting fix for Boolean expression indentation
src/app/map/[id]/components/ZoomControl.tsx Added eslint-disable comment for react-hooks/refs rule
src/app/map/[id]/components/SearchBox.tsx Removed ts-expect-error comment, added eslint-disable for react-hooks/refs
src/app/map/[id]/components/Legend.tsx Extracted VisibilityToggle from nested function to standalone component
src/app/(private)/data-sources/[id]/DataSourceEnrichmentDashboard.tsx Formatting fix for Boolean expression indentation
src/app/(private)/data-sources/[id]/DataSourceDashboard.tsx Formatting fix for Boolean expression indentation
src/app/(auth)/invite/[token]/page.tsx Added eslint-disable comment for react-hooks/immutability rule
eslint.config.mjs Complete refactor to use ESLint 9 flat config with new import paths and configuration structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joaquimds joaquimds merged commit 77d2f8f into main Jan 20, 2026
1 check passed
@joaquimds joaquimds deleted the fix/lint branch January 20, 2026 17:45
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