eslint-rule-fixes
ESLint 규칙별 수정 패턴 (보조 파일)
섹션 제목: “ESLint 규칙별 수정 패턴 (보조 파일)”이 파일은 lint-fix 스킬이 필요할 때만 읽는다. 모든 규칙을 다 외우지 말 것.
@typescript-eslint/no-explicit-any
섹션 제목: “@typescript-eslint/no-explicit-any”any→unknown+ 타입 가드. 오버로드가 필요하면 generic으로.
@typescript-eslint/no-unused-vars
섹션 제목: “@typescript-eslint/no-unused-vars”- 인자:
_접두로 의도 표시. 그 외: 삭제.
react-hooks/exhaustive-deps
섹션 제목: “react-hooks/exhaustive-deps”- 누락된 의존성을 추가. 순환 발생 시
useCallback으로 묶음.
prefer-const
섹션 제목: “prefer-const”- 재할당 없으면
const. 재할당 있으면 그대로 두고 무시 주석 금지.
no-console
섹션 제목: “no-console”console.log→logger.debug. 단, 임시 디버그면 명시적으로 사용자에게 확인.