import-js/eslint-plugin-import

import/named for `module.exports`?

開放

#1,145 建立於 2018年7月30日

 (10 則留言) (6 個反應) (0 位負責人)JavaScript (1,548 個分叉)batch import
help wanted

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (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)

貢獻者指南