import-js/eslint-plugin-import

import/named for `module.exports`?

Open

#1145 aperta il 30 lug 2018

Vedi su GitHub
 (10 commenti) (6 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
help wanted

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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)

Guida contributor