import-js/eslint-plugin-import

import/no-self-import incorrectly identifies self.

Open

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

在 GitHub 查看
 (4 留言) (1 反應) (0 負責人)JavaScript (4,946 star) (1,540 fork)batch import
bughelp wanted

描述

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

貢獻者指南

import/no-self-import incorrectly identifies self. · import-js/eslint-plugin-import#1247 | Good First Issue