Skip to content

Code Convention

KangYongSu edited this page Feb 2, 2024 · 5 revisions

Prettier

{
  "printWidth": 80,
  "tabWidth": 2,
  "useTabs": false,
  "semi": true,
  "singleQuote": false,
  "quoteProps": "consistent",
  "trailingComma": "es5",
  "bracketSpacing": true,
  "arrowParens": "avoid"
}

Function

JSX를 리턴하는 컴포넌트는 ParscalCase를 사용합니다.   
ex) function FunctionName() {}

함수명은 camelCase를 사용합니다. JSX를 리턴하는 컴포넌트 제외 arrow function만을 사용합니다.
ex) const functionName = () => {}
Clone this wiki locally