prettier란,
정해진 규칙에 맞게 자동으로 코드를 고쳐주는 툴이다.
1. VS Code - Extension

2. VS code ▶️ File ▶️ Preferences ▶️ Settings
Default Formatter → Prettier - Code formatter로 변경Format On save에 ✅ 체크 표시하기
3. 🎨 prettier 커스텀이 하고 싶을 때,
.prettierrc.json 파일 생성{} 안에 원하는 옵션을 작성해주면 된다.{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"trailingComma": "all"
}