import-js/eslint-plugin-import

False positive of `no-import-module-exports` on `module` variable defined in the module

Open

#2181 aperta il 9 ago 2021

Vedi su GitHub
 (18 commenti) (3 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
bughelp wanted

Metriche repository

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

Descrizione

import 'something'; // => Cannot use import declarations in modules that export using CommonJS (module.exports = 'foo' or exports.bar = 'hi')  import/no-import-module-exports

export const module = {};
module.foo = 42;

Guida contributor