[#8] Refactor imports and clean up code structure across multiple components #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ 주요 작업 내용
1. 🧹 프로젝트 전체 린트 에러 해결
simple-import-sort/imports
:import
순서가 올바르지 않던 문제를 규칙(외부 라이브러리 → 절대 경로 → 상대 경로)에 맞게 수동으로 정렬했습니다.@typescript-eslint/no-unused-vars
:react/no-unescaped-entities
:react-hooks/rules-of-hooks
:2. 🔩
src/features/matches/api.ts
리팩토링 및 안정화any
타입을 과도하게 사용하여 타입 안정성이 부족하고 유지보수가 어려웠습니다.any
타입을 제거하고 명확한 타입을 정의하려 했으나, Supabase의join
데이터 구조(항상 배열로 반환)와 선수 출전 상태를 판별하는 복잡한 로직 때문에 타입 에러와 연쇄적인 버그가 발생했습니다.substitutions
테이블 정보까지 활용하여 선발/교체/벤치 상태를 가장 정교하게 계산하는 안정적인 버전으로 코드를 복원했습니다.any
타입과eslint-disable
주석을 허용하고,// TODO
주석을 추가하여 향후 리팩토링이 필요함을 명시했습니다.