반응형 eslint1 [React] 개발 환경 설정 ESLint(eslint-config-airbnb-typescript) + Prettier + React + TypeScript 개발 환경 설정 ESLint + Prettier + React + Typescript 1. ESLint 설치하기 yarn add -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser 우선 ESLint와 Typescript용 plugin, parser를 설치한다. 설치과 완료되면 root폴더에 .eslintrc.json 파일을 생성하거나 커맨드 창에 npx eslint --init 을 치면 아래와 같은 순서로 답변하면 그대로 설정파일이 만들어 진다. 1. check syntax and find problems 2. Javascript modules 3. React 4. Yes 5. Browser 6. JSON 7. Yes 설치가 안되는 .. 2023. 3. 2. 이전 1 다음 반응형