eslint

    React에 ESLint + Prettier 적용하기

    1. React 프로젝트 생성 npx create-react-app 현재 위치에 바로 프로젝트를 생성하고 싶을 때 => npx create-react-app . 타입스크립트를 사용하고 싶을 때 => npx create-react-app --template typescript 2. ESLint 설정 npx eslint --init How would you like to use ESLint ? ( ESLint를 어떤 방식으로 사용할건가요 ? ) To check syntax only ( 문법적 오류 체크 ) To check syntax and find problems ( 문법과 에러 ) To check syntax, find problems, and enforce code style ( 문법, 에러, 그리고 ..

    React에 ESLint + Prettier 적용하기

    [ ESLint ] Error while loading rule '@typescript-eslint/dot-notation' 에러

    ESLint를 설정하고 실행하던 도중 해당 에러가 발생했습니다. 해당 에러는 TypeScript 프로젝트에 포함되지 않은 파일을 lint 하려고 할 때 ESLint가 발생시키는 오류입니다. 해결방법 .eslintrc 파일에서 parserOptions 안에 밑에 코드를 추가해 주었습니다. "project": ["./tsconfig.json"]

    [ ESLint ] Error while loading rule '@typescript-eslint/dot-notation' 에러