import-js/eslint-plugin-import

[import/no-unresolved]: Do not report properly configured self resolution

Open

#1,649 创建于 2020年2月8日

在 GitHub 查看
 (4 评论) (4 反应) (0 负责人)JavaScript (1,540 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (4,946 star)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

In one of my modules I decided to use self resolution from testing as this helps to verify that my exports is setup and pointing to the correct file. My package.json contains "exports": "./index.js" and import lib from 'my-pkg-name'; works but import/no-unresolved reports this as an error.

For now I've added // eslint-disable-next-line import/no-unresolved but it would be nice to avoid this.

贡献者指南