Skip to content

fix: 새 ESLint 규칙 대응 + @eslint/js 10 · react-hooks 7 업그레이드 - #308

Merged
BcKmini merged 2 commits into
mainfrom
fix/dependabot-lint-issues
Aug 11, 2026
Merged

fix: 새 ESLint 규칙 대응 + @eslint/js 10 · react-hooks 7 업그레이드#308
BcKmini merged 2 commits into
mainfrom
fix/dependabot-lint-issues

Conversation

@BcKmini

@BcKmini BcKmini commented Aug 11, 2026

Copy link
Copy Markdown
Member

dependabot #303, #307 대응

배경

변경 사항

  • WorkInboxTargetList.tsx: 모든 분기에서 재대입되거나 return으로 빠지는 nextIndex 초기 대입 제거
  • eslint.config.js: react-hooks recommended 전체 spread 대신 rules-of-hooks(error)/exhaustive-deps(warn) 두 개만 명시적으로 켬 — 기존 동작 유지
  • @eslint/js 10.0.1, eslint-plugin-react-hooks 7.1.1로 업그레이드

검증

  • bunx tsc -b 통과
  • bun run lint — 0 errors (기존 13개 react-refresh 경고만 유지)
  • bun run test — 438 tests 전부 통과 (병렬 실행 중 SignupPage 1개 타임아웃 플레이크 있었으나 단독 실행 시 통과 확인)
  • bun run build 통과

머지 후 dependabot #303/#307은 닫습니다.

WorkInboxTargetList.tsx의 nextIndex 초기값이 모든 분기에서 재대입되거나
return으로 빠져나가 실제로 쓰이지 않던 것을 no-useless-assignment 규칙이 잡음
eslint-plugin-react-hooks v6+ recommended는 React Compiler 전제 규칙(set-state-in-effect,
refs, preserve-manual-memoization 등 14개)을 대거 포함하는데, 이 프로젝트는 React Compiler를
쓰지 않고 useApiQuery 등 fetch-then-setState 패턴을 전역에서 쓰고 있어서 그대로 켜면
10개 파일에서 오탐(false positive)이 남. rules-of-hooks/exhaustive-deps 두 개만 명시적으로
켜서 기존 동작은 유지하면서 새 버전으로 업그레이드.

resolves dependabot #303, #307
@BcKmini BcKmini self-assigned this Aug 11, 2026
@BcKmini BcKmini added type:tooling 빌드·Lint·CI 도구 작업 area:platform 빌드·라우팅·공통 인프라 priority:P2 일정에 따라 미룰 수 있는 작업 status:in-review 구현을 마치고 리뷰·병합 대기 labels Aug 11, 2026
@BcKmini
BcKmini merged commit ca8129a into main Aug 11, 2026
1 check passed
@BcKmini
BcKmini deleted the fix/dependabot-lint-issues branch August 11, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform 빌드·라우팅·공통 인프라 priority:P2 일정에 따라 미룰 수 있는 작업 status:in-review 구현을 마치고 리뷰·병합 대기 type:tooling 빌드·Lint·CI 도구 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant