init: biome 세팅#13
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#️⃣ Related Issue
Closes #9
☀️ New-insight
pnpm exec biome init이번에 처음으로 Biome을 설정하고 사용해보면서 알게 된 점...
다만 일부 옵션은 현재 문서화가 부족하고 일부 동작이 예상대로 되지 않아서 더 실험적으로 검증이 필요하다고 느꼈습니다.
Husky와 함께 Git hook에 연동해서 pre-commit 단계에서 biome을 적용해야, 커밋 전 코드 품질을 강제할 수 있기 때문에 husky 설정도 같이 해주었습니다!
참고 명령어
💎 PR Point
biome.json설명특정 파일 포맷 수정하기 (Biome)
pnpm biome format: Biome의 코드 포맷터 실행src/pages/Home.tsx: 포맷을 적용할 대상 파일--write: 포맷 결과를 실제 파일에 적용(저장)사용하는 상황
여러 파일에도 적용 가능
pnpm biome format "src/**/*.ts" --write📸 Screenshot
Summary by CodeRabbit
Chores
Refactor