Skip to content

[Eslint] import/no-unresolved #33

Discussion options

You must be logged in to vote

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:

{
    "rules": {
        "import/no-unresolved": [
            "error",
            {
                "ignore": ["yet-another-react-lightbox/*"]
            }
        ]
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by igordanchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants