[Eslint] import/no-unresolved #33
Answered
by
igordanchenko
minimal-ui-kit
asked this question in
Q&A
-
Do we have a solution for this? Turning off The main import path seems fine. But the sub-path has problems. I use quite a few packages in my . But eslint only gives warning about this package. |
Beta Was this translation helpful? Give feedback.
Answered by
igordanchenko
Oct 20, 2022
Replies: 1 comment
-
It looks like eslint-plugin-import doesn't support sub-path imports (package exports map) - import-js/eslint-plugin-import#1810 You can add .eslintrc.json: {
"rules": {
"import/no-unresolved": [
"error",
{
"ignore": ["yet-another-react-lightbox/*"]
}
]
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
igordanchenko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like eslint-plugin-import doesn't support sub-path imports (package exports map) - import-js/eslint-plugin-import#1810
You can add
yet-another-react-lightbox
to the ignore list until proper support for export maps is implemented in ESLint plugin..eslintrc.json: