Chore: Husky commit hook & lint-staged 세팅 #32
Merged
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.
☑️ 완료 태스크
🔎 PR 내용
연서가 push hook 언급해줬는데, 여러 커밋을 한 번에 push하는 경우 lint 에러가 많이 발생했을 때 체크나 수정이 번거로울 수 있다고 생각했어요. 그래서 commit hook으로 걸어주었고 lint-staged까지 세팅했어요.
ts, tsx, js, jsx 파일만 검사하도록 세팅해두었어요. 추가하고 싶은 포맷 있음 말씀주세요!!
📷 스크린샷