import-js/eslint-plugin-import
Vedi su GitHub[import/default]: false negative when importing CJS module which uses dynamic import
Open
#2769 aperta il 27 apr 2023
help wanted
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
I found a weird problem with the import/default rule. See this minimal gist
I import two modules which are very similar, both being CJS with default export.
import ecmaScriptLiteralLoader from 'rdf-loader-code/ecmaScriptLiteral.js'
import ecmaScriptModuleLoader from 'rdf-loader-code/ecmaScriptModule.js'
The first is fine but the second triggers a rule
3:8 error No default export found in imported module "rdf-loader-code/ecmaScriptModule.js" import/default