import-js/eslint-plugin-import

import/named for `module.exports`?

Open

#1,145 opened on Jul 30, 2018

View on GitHub
 (10 comments) (6 reactions) (0 assignees)JavaScript (4,946 stars) (1,540 forks)batch import
help wanted

Description

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)

Contributor guide