import-js/eslint-plugin-import

import/named doesn't work when the target has no exports

Open

#1,147 创建于 2018年7月30日

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

描述

Given:

// a.js
console.log('This file has no exports')

// b.js
import { doesntExist } from './a'

I'd expect the import/named rule to show an error for doesntExist. It doesn't. What am I missing? Is there a way to check for this type of error?

贡献者指南