import-js/eslint-plugin-import

import/named for `module.exports`?

Open

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

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

仓库指标

Star
 (4,946 star)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

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)

贡献者指南