Skip to content

fix: resolve react-hooks/set-state-in-effect lint errors from v7 upgrade#213

Merged
coopernetes merged 1 commit into
mainfrom
fix/frontend-lint
May 4, 2026
Merged

fix: resolve react-hooks/set-state-in-effect lint errors from v7 upgrade#213
coopernetes merged 1 commit into
mainfrom
fix/frontend-lint

Conversation

@coopernetes
Copy link
Copy Markdown
Member

Summary

  • Defers setState calls in useEffect bodies via Promise.resolve().then() so they run as microtasks rather than synchronously — satisfies the react-hooks/set-state-in-effect rule added in eslint-plugin-react-hooks@7
  • Wires npmLint into the Gradle check task so frontend lint runs as part of ./gradlew build in CI and blocks future merges
  • Adds concurrency groups to CI and Docker publish workflows so stale main-branch runs are cancelled when superseded; tag runs always complete

Test plan

  • CI passes (lint, build, e2e)
  • Pre-commit hook passes locally (already verified)

@coopernetes coopernetes enabled auto-merge May 4, 2026 05:52
- Defer setState calls in useEffect bodies via Promise.resolve().then()
  so they run as microtasks rather than synchronously (satisfies the
  react-hooks/set-state-in-effect rule added in eslint-plugin-react-hooks@7)
- Wire npmLint into the Gradle check task so frontend lint runs in CI
  and blocks merges going forward
- Add concurrency groups to CI and Docker publish workflows; stale main
  branch runs are cancelled when superseded; tag runs always complete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coopernetes coopernetes force-pushed the fix/frontend-lint branch from 0727651 to 35facec Compare May 4, 2026 05:54
@coopernetes coopernetes merged commit d2e08c7 into main May 4, 2026
16 checks passed
@coopernetes coopernetes deleted the fix/frontend-lint branch May 4, 2026 05:57
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.

1 participant