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)

貢獻者指南