'react-app' 있을 때, eslint 설정 적용하기 본문

code/React.js

'react-app' 있을 때, eslint 설정 적용하기

남우p 2022. 1. 13. 16:57

https://stackoverflow.com/questions/60431931/eslint-error-eslint-couldnt-find-the-config-react-app

 

ESLint error - ESLint couldn't find the config "react-app"

Me with my team, start a new React Project using the create-react-app bootstrap command. We add the eslint section on the project but we stuck with annoying error that we never found it before now....

stackoverflow.com

 

intelij 오류인지 모르겠으나, 한참을 고민...

결국 위의 내용대로

npm ls eslint-config-react-app

react-app 전용 eslint를 설치하고

"eslintConfig": {
    "extends": "react-app"
  },

package.json에 위의 코드를 추가하고

 

위의 2줄을 주석처리하니 적용되더이다....

 

어째서?????

'code > React.js' 카테고리의 다른 글

[React] 브라우저 대응(with.javascript)  (0) 2022.03.07
[REACT] router  (0) 2022.01.18
[styled component] 변수 지정하기  (0) 2022.01.13
[styled component] 기본 내장 함수(?)  (0) 2022.01.11
[REACT] useEffect 사용하기  (0) 2022.01.10
Comments