-
Notifications
You must be signed in to change notification settings - Fork 3
개발 일지
Kal-MH edited this page Mar 13, 2023
·
1 revision
prettier
//.prettierrc.js
module.exports = {
printWidth: 80,
semi: true,
singleQuote: true,
tabWidth: 2,
useTabs: false,
endOfLine: 'auto',
jsxSingleQuote: true,
bracketSameLine: true,
quoteProps: 'as-needed',
trailingComma: 'es5',
arrowParens: 'always',
bracketSpacing: true,
};컴포넌트
- 컴포넌트 파일 → `camelCase.tsx` : ie. `MyComponent.tsx`
-
컴포넌트 선언 방식
const MyComponent = ({ propA, propB }) => { } export default MyComponent; const Container = styled.div` `;
페이지
- 페이지 파일→ `kebab-case.tsx` : ie. `about-us.tsx`
-
페이지 선언 방식
const AboutUsPage = ({ propA, propB }) => { } export default AboutUsPage;
이벤트 핸들러
- 컴포넌트 내에서 →
handle[동작][기능]: ie.handleClickUpdate - props로 받을때 →
on[동작]: ie.onSubmit
-
prefix: 메세지 내용feature 새로운 기능을 추가할 경우 fix 버그를 고친 경우 rename 파일 혹은 폴더명을 수정하거나 옮기는 경우 remove 파일을 삭제하는 작업만 수행한 경우 design CSS등 사용자 UI 디자인 변경 comment 필요한 주석 추가/삭제/수정한 경우 docs 문서를 수정한 경우 style 코드 포맷(세미 콜론, prettier) 수정한 경우 refactor 프로덕션 코드 리팩토링(변수명 개선 등) chore 빌드 태스크 업데이트, 패키지 매니저 설정
//이슈 템플릿 양식
작업 내용: 도메인 관련.
상세 작업 내용: 작업의 상세한 내용.이슈 카테고리를 명시할 label은 다음과 같습니다.
- feature
- refactor
- style
- bug
- design
- docs
- test
- chore
- fix
//PR 템플릿 양식
#이슈 번호
1. 작업내용: 포스트 curd 기능 만들었음.
2. 작업 하면서 겪은 이슈
3. PR 포인트