import-js/eslint-plugin-import
GitHub で見るimport/no-self-import incorrectly identifies self.
Open
#1,247 opened on 2018年12月18日
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