import-js/eslint-plugin-import

import/named for `module.exports`?

Open

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

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

描述

Hey, is there any way to enable the import/named rule for module.exports?

Eg:

//lib.js
const toExport = true

module.exports = {
  toExport,
}


//user.js
const {toEpxort} = require('./lib') // here I want it to throw a lint error

console.log(toEpxort)

贡献者指南