TIL/TypeScript
-
React TypeScript 앱 생성 및 ESLint, Prettier 적용법TIL/TypeScript 2023. 3. 1. 20:42
참고 : Setting up eslint, prettier, airbnb-base and typescript | by Erik Nielsen | Medium (2023년 2월 업데이트된 게시물의 내용을 바탕으로 일부 설정을 수정했습니다.) 1. create-react-app으로 새로운 리액트 앱을 생성합니다. npx create-react-app typescript-react-app --template typescript typescript-react-app 폴더를 열어보면 App.tsx등의 파일이 생성된 것을 확인할 수 있습니다. 2. 사용하지 않는 파일들을 제거합니다. src 폴더에서 App.tsx와 index.tsx만 남기고 안의 내용도 정리합니다. 3. 터미널에서 필요한 패키지를 모두 설치합니다...