함수

// Good
const name = () => {}  // (스니펫 단축키 rafce)

// Bad
function name() {}

함수명

// Good
const onChangeHandler = () => {};

// Bad
const changeHandler = () => {};
const handleChange = () => {};

export

// Good
export const name1 = () => {};
export const name2 = () => {};

// Bad
const name1 = () => {};
const name2 = () => {};
export {name1, name2};

if문

// Good
if(true) { 
  alert("");
  return;
}

// Bad
if(true) {
  return alert("");
}

event는 e로 쓰기

const onChangeHandler = (e) => {}

Typescript 규칙

interface Todo {
id: string;
title: string;
content: string;
isDone: boolean;
}