.eslintrc.json을 다음과 같이 한번 수정해 보세요.
.eslintrc.json
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-unused-vars": "warn",
"no-console": "off"
}
}
이렇게 수정한 뒤 저장하면, 기존에 빨간색 줄로 나오던 코드가 초록색 줄로 바뀌게 됩니다(수정된 설정을 반영하려면 에디터에서 파일을 닫고 다시 열어 주어야 합니다).