import-js/eslint-plugin-import

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

開放

#1,649 建立於 2020年2月8日

 (4 則留言) (4 個反應) (0 位負責人)JavaScript (1,549 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (5,940 顆星)
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.

貢獻者指南