eslint로 코드 검사를 하는데 다음과 같은 메시지가 나왔다.
Warning: React version not specified in eslint-plugin-react settings.
See https://github.com/yannickcr/eslint-plugin-react#configuration .

eslint-plugin-react 세팅에 리액트 버전이 명시되어있지 않다고 나오는데
메시지에서 안내해준대로 해당 링크에 적힌대로
settings: {
"react": {
"version": "detect",
},
},
를 추가하여 version을 detect하도록 했다.

다시 eslint 검사를 돌렸을 때, Warning 메시지 사라진 것을 확인 할 수 있었다.
728x90