-
Notifications
You must be signed in to change notification settings - Fork 0
coding convention
Hyeona edited this page Apr 13, 2022
·
1 revision
- ๋ฐฑ์๋
- ํ์ผ๋ช : PascalCase (ex: UserRepository)
- ํจํค์ง๋ช : ์๋ฌธ์
- ํด๋์ค: PascalCase (ex : ClassName)
- ๋ณ์: camelCase (ex : getId, userPassword)
- ๋ฉ์๋ : camelCase (ex : getId, userPassword)
- ์์: snake_case (ex: FILE_NUMBER)
- ํ๋ก ํธ์๋
- ๋ณ์: camelCase
- ํจ์: camelCase (ex. const functionName= function () {})
- ์์: SNAKE_CASE
- vue ํ์ผ๋ช : PascalCase
- js ํ์ผ๋ช : kebab-case
- template๊ตฌ์กฐ
- router: PascalCase
- style๊ตฌ์กฐ
- css ํด๋์ค: kebab-case
- css ์คํ์ผ ๊ฐ์ด๋: https://code-study.tistory.com/18
- ์ ํ์, ์์ฑ ์ ๋ถ ์ํ๋ฒณ ์์
- script๊ตฌ์กฐ(์ดํ ๋ฆฌ์คํธ ์์๋๋ก ์์ฑ)
- name
- components
- props
- data : ๋จ์ผ ๋ฐ์ดํฐ๋ฅผ ์์์ ๋ช ์, form ๊ตฌ์กฐ๋ฅผ ํ์์ ๋ช ์
- methods
- Life Cycle Hook ์์ (beforeCreate โ created โ beforeMount โ mounted โ beforeUpdate โ updated โ beforeDestroy โ destroyed)
1๏ธโฃ ๊ธฐํ
2๏ธโฃ ์ปจ๋ฒค์
3๏ธโฃ ๋์์ธ ์ค๊ณ
4๏ธโฃ ๊ธฐ์ ์ค๊ณ
5๏ธโฃ ํ์
6๏ธโฃ ๊ฐ๋ฐ