
게시글 작성 후 새로고침을 위해 location.reload()를 추가 하니 위와 같은 에러 발생했다.
구글링 해보니 // eslint-disable-next-line no-restricted-globals를 추가해주면 된다고 한다. 오류 해결!
// eslint-disable-next-line no-restricted-globals
.then((response) => location.reload())
.catch((error) => console.log(error));
location이나 history 같은 전역 변수를 ESLint가 참조할 수 있게 주석으로 명시해 주는 것이다.
출처 https://hoisharka.github.io/eslint/2017/12/18/specific-global-variables/
정말 잘 읽었습니다, 고맙습니다!