Skip to content

Code Convention

GY KIM edited this page Oct 20, 2022 · 2 revisions

[ Commit style ]

New File

add: 새로운 파일 추가할 때

Fix Bug

fix: 버그 수정할 때

Feature

feat: 새로운 기능 개발을 완료하였을 때

Edit Markdown

doc: json이나 마크다운 문서를 편집할 때

Refactoring

refactor: 리팩토링 할 때

Test

test: 테스트 커밋 등을 할 때

Setting

setting : npm 등의 설치, 환경 세팅.

코드 리뷰 및 이슈는 해당 커밋의 comment 이용

[ constant : SNAKE_CASE (with Capital Letter) ]

export const SUCCESS_MESSAGE = '성공!' ✅
export const successMessage ='성공!' ❌

[ variable : camelCase ]

const inputVariable ✅
const InputVariable ❌

[ function : camelCase ] => 함수형

const handleClick = () => {} ✅
const handle_click = () => {} ❌

Clone this wiki locally