Matt의 TS 패턴을 기존 프로젝트에 적용
언제 쓸까: 귀하의 프로젝트에는 '모든' 유형이 있고 어깨를 으쓱할 만한 유형이 있으며 원칙에 따른 정리를 원합니다.
흐름
-
ScanUse mattpocock/ts-review. Scan /src and list every
any, every unsafe cast, every type hole. Group by file.✓ 복사됨→ Itemized findings, not a summary -
원칙으로 고치세요Fix the top 20, narrowest fix per case. Respect Matt's "prefer inference" rule — don't explicit-annotate what TS can infer.✓ 복사됨→ Minimal diffs, type-safety gained
-
확인하다Run
tsc --noEmit. Any regressions?✓ 복사됨→ Clean compile or precisely-scoped remaining items
결과: 원칙적인 방법론을 따르는 훨씬 더 유형이 안전한 코드베이스입니다.
함정
- Skill applies Matt's opinions where your team disagrees (e.g. interface vs type) — Override with "skip the interface-vs-type conversion, keep existing style"
함께 쓰기: 파일 시스템