eslint 에러2 [eslint error] Expected blank line between class members.eslint(lines-between-class-members) 문제 상황 강의와 똑같이 코드를 쳤는데도 어째서인지 알 수 없는 빨간 줄 에러가 계속 났다. 한줄 한줄 문법을 따져봐도 틀린 것이 없는데 원인을 알 수 없었다. Expected blank line between class members. eslint(lines-between-class-members) 에러 문구는 위과 같았다. 해결 검색해보니 --fix 명령어로 해결 가능한 부분이라고 해서 npx eslint "**/*{ts,tsx}" --fix 로 해결봤다. 뭐가 바뀐건가 봤더니..... eslint에서 개행해달라고 빨간지렁이 냈던 것.................... . . . 에러 나면 일단 에러문구 잘 보고 구글링부터 해보자 ㅎㅎㅎ 2022. 2. 3. [eslint error] Warning: React version not specified in eslint-plugin-react settings. eslint 실행 중 에러가 났다. 에러 문구는 다음과 같다. Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration . 구글링 결과 해결 방법 두가지가 있는데 .eslintrc.js파일에서 settings: { react: { version: 'detect', }, }, 또는 settings: { react: { version: '999.999.999', }, }, 를 추가하여 해결했다. Reference https://blog.kwonmory.com/tip/react-version-not-specified-in-e.. 2022. 1. 29. 이전 1 다음