import-js/eslint-plugin-import

import/no-self-import incorrectly identifies self.

開放

#1,247 建立於 2018年12月18日

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

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (平均合併 138天 22小時) (30 天內合併 3 個 PR)

描述

The issue seems to be when you have a local directory that has the same name as a global import. For example, I have a project that uses redis, and the code that uses it sits in a redis directory.

e.g. File: redis/index.js

const redis = require('redis'); // <-- import/no-self-import error here

貢獻者指南