Typescript alias path 설정 후 import를 할 때, ESlint에서는 해당 경로를 인식하지 못해서 에러가 발생합니다.
eslint-import-resolver-typescript
를 설치하면 문제 해결이 가능합니다.
$ npm i -D eslint-import-resolver-typescript
eslint.json
을 아래와 같이 수정합니다.
{
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
🚨 참고사항
해당 출처예요.🧐 eslint-plugin-import Github issue